8 commands for the management of iptables under Linux system

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.