| 0 comments ]

You can check the status of the iptables program, and view the iptables rules currently being enforced on your machine from a terminal window command line.

Note

Root privileges is required for the iptables commands. In this document, examples show the use of sudo.

Stopping or starting the iptables program

Remember that iptables starts at system boot time. It is not advised to stop iptables altogether.

Platform Start command Stop command Restart command
RHEL and Fedora
sudo /sbin/service iptables start
sudo /sbin/service iptables stop
sudo /sbin/service iptables restart
OCDC
sudo /etc/init.d/iptables start
sudo /etc/init.d/iptables stop
sudo /etc/init.d/iptables restart


OCDC example:

0 comments

Post a Comment