Adding 100 port forwarding Firewall Rules in bulk or automatically?

Started by ezhik, September 23, 2024, 08:52:31 PM

Previous topic - Next topic
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!

All to the same internal IP?
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


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.
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do. (Isaac Asimov)


So this worked!

For those who are wondering, you need to set "Content" to your port range, for example: 15000:15100