Hello.
I want to save all ipfw rules to a file. And then, these rules load on another server from this file. Can you please tell me how to do this?
ipfw show > firewall.sh Then pens remove the first three columns and add at the beginning of each row.
ipfw add Do not forget about ipfw table and ipfw nat . But it is better to refer to the script loading rules / etc / rc.firewall . And also pay attention to the option firewall_script in the /etc/rc.conf script
Source: https://ru.stackoverflow.com/questions/243563/
All Articles