Quote:
Originally Posted by ochienged
I set iptable rules but i cant remember the command for saving them. Someone remind me please. Regards
|
The generic way:
Code:
iptables-save > /somewhere/example.txt
As you can see, you can save the config to any text file you want, but you should probably find-out which file your distro is configured to automatically restore them from at boot time and then save to that. Usually it's something like
/etc/sysconfig/iptables or similar.
The Red Hat-based distro way:
Code:
service iptables save