How to start / stop iptables

User1984 59 Rep.

How can I start and stop iptables on Linux server? Also I want to auto start it on every reboot as well.

Kailash selected answer

Best answer

Kailash 152 Rep.

To start iptables:
service iptables start

To stop iptables:
service iptables stop

To restart iptables:
service iptables restart

You can determine whether iptables is running or not using following command:

service iptables status

If “service” command doesn’t work, you can use the following command

/etc/init.d/iptables start/stop/restart

To start it automatically on boot, run following command:

chkconfig iptables on

Kailash selected as best answer


Login to see your profile links
Bloom Email Optin Plugin