Fix RHEL 7/centos 7/fedora appears unit Iptables.service failed to load

Source: Internet
Author: User

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 Firewalldsystemctl Mask firewalld

and install Iptables-services:

Yum Install Iptables-services

Set boot up:

systemctl Enable Iptablessystemctl [Stop|start| Restart] Iptables#orservice iptables [Stop|start|restart]
service iptables save#or/usr/libexec/iptables/iptables.init Save

Fix RHEL 7/centos 7/fedora appears unit Iptables.service failed to load

Related Article

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.