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

October 9, 2009 · Filed Under Linux Commands 

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

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.

Kailash

Related Posts

  1. command to restart DNS service
  2. Requirement of Boot.ini file on Windows
  3. System is not booting
  4. WHM error while adding IP address – Skipping xxx.xxx.xxx.xxx already added
  5. Munin MySQL monitoring graph is not updating or blank

Comments

One Response to “How To Start/Restart/Stop iptables and auto start at boot”

  1. seoracer on April 20th, 2010 12:11 PM

    Thank you this nice post.

Leave a Reply

You must be logged in to post a comment.

Untitled Document