Although iptables in the UNIX system is not a service, but in order to facilitate the usual management of Iptables wrote a chkconfig startup script (chkconfig startup script can see http://jim123.blog.51cto.com/ 4763600/1845648), defined in the/etc/init.d/-rc.d/init.d directory, but Iptables and normal service services have several more commands
Usage:/etc/init.d/iptables {start|stop|reload|restart|condrestart|status|panic|save}
The following 5 items are commonly used:
Start: Startup (read the rules in the configuration file) Stop: Stop (purge rule) Restart: Restart (purge rules to read the rules in the configuration file) Save: Save (rule saved to profile) Status: View status (view currently used rules)
The other 3 types are as follows:
Reload: Overloads, effects and restart, many new systems generally do not use Condrestart: The additional modules used to load iptables, and restart a bit like, if the service is currently running, it can restart the service, However, if the service is not running, Condrestart is unable to start the service, panic: Empty the rules and set all the table's policy to drop, this is generally used on the remote production server do not use, it is not connected to the
This article from the "Technical essay" blog, reproduced please contact the author!
8 commands for the management of iptables under Linux system