1.

How Do I Save Iptables Rules Or Settings?

Answer»

Fedora Linux you can use FOLLOWING COMMANDS to SAVE and restore firewall rules. To Save the rules to /etc/sysconfig/iptables file: # /etc/init.d/iptables save To restore the rules from /etc/sysconfig/iptables file: # /etc/init.d/iptables start If you are using DEBIAN / Ubuntu Linux open /etc/network/interfaces: # vi /etc/network/interfaces Append the LINE to eth0 section: post-up iptables-restore Close and save the file. Reboot the system.

Fedora Linux you can use following commands to save and restore firewall rules. To Save the rules to /etc/sysconfig/iptables file: # /etc/init.d/iptables save To restore the rules from /etc/sysconfig/iptables file: # /etc/init.d/iptables start If you are using Debian / Ubuntu Linux open /etc/network/interfaces: # vi /etc/network/interfaces Append the line to eth0 section: post-up iptables-restore Close and save the file. Reboot the system.



Discussion

No Comment Found