Centos turns off the firewall 7 and before 7, and Unit iptables.service could not be found.

tags: Centos  

Today, when the firewall was turned off, Unit iptables.service could not be found. After inspection, it was found that it was caused by the centos version, so I made this document to record
Let’s talk about Centos7 first

Centos7 and later versions

First check the status of the firewall

firewall-cmd state

There is also a way of checking, judging the active result in the result

systemctl status firewalld.service

Then the method of turning off the firewall is also very simple, similar to the previous one

systemctl stop firewalld.service 

Permanently closed is

systemctl disable firewalld.service

Previous versions of centos7

Later, I will talk about the traditional closing method before 7. Of course, 7 does not have this method. If necessary, you can choose yum to install. Personally, it is unnecessary. Since people have made changes, it must have his advantage
View firewall status

service iptables status  

Turn off firewall

service iptables stop  

Permanently turn off the firewall

chkconfig iptables off 

There is no explanation when it is turned on. I believe that you can find a way by looking for a pattern.
If I hope to help you, please give me a thumbs up 🤨🤭🤭

Intelligent Recommendation

CentOS7 Turn off the firewall: failed to stop iptables.service: unit iptables.service not loaded.

Project scene: CentOS7 closes the firewall appearance: Failed to stop iptables.service: Unit iptables.service not loaded. Problem Description: CentOS7 executes: Service iptables stops appears when the...

[Centos-Firewall] CentOS7 starts the firewall and reports an error Failed to start iptables.service: Unit not found.

Original address: Execute in CentOS7   Error: Redirecting to /bin/systemctl restart iptables.service Failed to restart iptables.service: Unit not found. The reason is because CentOS7 uses firewal...

centos 7 turn off the firewall

Temporarily closed Prohibit boot Output: Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service. Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.servic...

CentOS 7 Turn off firewall

CentOS 7.0 uses FireWall as a firewall by default, using iptables must be reset 1, close the firewall directly 2, set iptables service If you want to modify the firewall configuration, if you increase...

Unit iPtables.service core be found. (Firewall problem)

View the firewall status error instruction Report an error Install iptables-services Start iPtables-Services Set the boot self -starting start up View firewall status Firewall open status Firewall clo...

More Recommendation

Centos 6 and Centos 7 turn off the firewall

Centos 6 and Centos 7 turn off the firewall remember! Almost half of the big data cluster problems I have now are caused by not turning off the firewall. Centos 6 turns off the firewall Centos 7 turns...

Logstash.service: Unit not found (CentOS 7)

1, generate logstash.service  ...

Copyright  DMCA © 2018-2026 - All Rights Reserved - www.programmersought.com  User Notice

Top