Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Adding 100 port forwarding Firewall Rules in bulk or automatically?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Adding 100 port forwarding Firewall Rules in bulk or automatically? (Read 715 times)
ezhik
Newbie
Posts: 17
Karma: 0
Adding 100 port forwarding Firewall Rules in bulk or automatically?
«
on:
September 23, 2024, 08:52:31 pm »
Hey!
I need to add 100 port forwarding firewall rules and I'd like to find a way to do so automatically or via API.
It will be a 1:1 mapping of external to internal port to a single internal IP. For example 1234 will be directed to 1234, 1235 to 1235 and so on.
Any help is greatly appreciated!
Logged
Patrick M. Hausen
Hero Member
Posts: 6825
Karma: 573
Re: Adding 100 port forwarding Firewall Rules in bulk or automatically?
«
Reply #1 on:
September 24, 2024, 12:57:09 am »
All to the same internal IP?
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
ezhik
Newbie
Posts: 17
Karma: 0
Re: Adding 100 port forwarding Firewall Rules in bulk or automatically?
«
Reply #2 on:
September 24, 2024, 02:49:58 am »
Yes.
Logged
Patrick M. Hausen
Hero Member
Posts: 6825
Karma: 573
Re: Adding 100 port forwarding Firewall Rules in bulk or automatically?
«
Reply #3 on:
September 24, 2024, 10:51:11 am »
Then you need just a single rule with a port range or essentially an arbitrary list of single ports and ranges. Define the ports in Firewall > Aliases.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
ezhik
Newbie
Posts: 17
Karma: 0
Re: Adding 100 port forwarding Firewall Rules in bulk or automatically?
«
Reply #4 on:
September 24, 2024, 05:08:20 pm »
Interesting, will check it out. Thanks!
Logged
ezhik
Newbie
Posts: 17
Karma: 0
Re: Adding 100 port forwarding Firewall Rules in bulk or automatically?
«
Reply #5 on:
October 05, 2024, 03:29:18 am »
So this worked!
For those who are wondering, you need to set "Content" to your port range, for example: 15000:15100
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Adding 100 port forwarding Firewall Rules in bulk or automatically?