CENTOS7 installation Iptables

Source: Internet
Author: User
Using CentOS 7 o'clock to discover the error when using the iptables firewall, unit Iptables.service failed to load, which means that the firewall failed to start, then how to handle it.

has been used in CentOS 6 habit, a bit did not adapt to come over. Firewall configuration after performing service iptables save appears "Failed to restart Iptables.service:Unit iptables.service Failed to load:no such file or Directory. " Error, the firewall is managed by FIREWALLD in CentOS 7 or Rhel 7 or Fedora, and of course you can restore the traditional way of management. or use the new command to manage it.

If you use tradition, execute the command:


Systemctl Stop Firewalld
Systemctl Mask Firewalld

and install Iptables-services:


Yum Install Iptables-services
Set boot up:


Systemctl Enable Iptables

Systemctl [Stop|start|restart] Iptables
#or
Service iptables [Stop|start|restart]

Service Iptables Save
#or
/usr/libexec/iptables/iptables.init Save

From the above solution to see this is the firewall does not start, iptables Firewall service does not start caused by OH.

CENTOS7 installation Iptables

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.