How to start / stop iptables

Solved1.59K views

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

selected answer

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

selected as best answer
Bloom Email Optin Plugin
Scroll to top