You can use the following commands to start/restart/stop iptables on your Linux server:

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

You can also configured iptables to start automatically on boot. You will need to use chkconfig command to turn it on:

chkconfig iptables on

To use above commands, you will need the root access of your server.


How To Start/Restart/Stop iptables and auto start at boot

Last Updated on

One thought on “How To Start/Restart/Stop iptables and auto start at boot

  • April 20, 2010 at 12:11 PM

    Thank you this nice post.


Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.