In ubuntu linux, by default where does the iptable rules gets saved ?
bsd unix
I believe this is what your looking for:
Quote: Save your firewall rules to a file
Code: $ sudo sh -c "iptables-save > /etc/iptables.rules"
spd106
The short answer is... they don't.
You can view the current rules with
iptables -L
Usually you would add the commands to create these rules into the /etc/network/interfaces file or to a shell script file and place that somewhere in the init system.
Since Network Manager took over it's a little bit different and I'm not entirely sure how it works. I think you need to place a script in the /etc/NetworkManager/dispatcher.d/ folder.
See https://help.ubuntu.com/community/IptablesHowTo
NB:- tested on ubuntu 8.04
No comments:
Post a Comment