Unit iptables.service could not be found

tags: notes  linux  centos  Operation and maintenance

Unit iptables.service could not be found

Centos7 has replaced iptables, systemctl replaces Service with FireWallD.

First check your own virtual machine version is 6 or 7

I started to put the CentOS6 command to 7 on 7, and the following error occurred.

View the firewall status

Redirecting to /bin/systemctl status iptables.service
Unit iptables.service could not be found.

In fact, CentOS7's command has been updated.

1, check the firewall status

systemctl status firewalld.service

[ , , (img-nJepPqPe-1642944315805)(../../source/images/Unit%20iptables.service%20could%20not%20be%20found/image-20220123211937798.png)]

If you have a green label "Active (Running)", the firewall is turned on.

2. Open firewall

systemctl start firewalld.service

[ , , (img-L3EtnCwx-1642944315806)(../../source/images/Unit%20iptables.service%20could%20not%20be%20found/image-20220123212305542.png)]

3. Turn off the firewall

systemctl stop firewalld.service 

And check the firewall status

systemctl status firewalld.service

[ , , (img-aiWnNADb-1642944315806)(../../source/images/Unit%20iptables.service%20could%20not%20be%20found/image-20220123212401591.png)]

Intelligent Recommendation

Linux_ exception _netfilter firewall _failed to restart iptables.service: Unit Not Found.

Reference: How can i use iptables on centos 7? [closed]...

Unit firewalld.service could not be found

The default firewall under Centos7 is Firewall, which replaces the previous iptables. Firewall has two methods of graphical interface management and command line management. This article briefly intro...

Unit sshd.service could not be found.

wrong reason: I just installed the Ubuntu 18.04 system, but failed to connect to the server with Xshell, because the server has not enabled the remote connection function. Command input: systemctl sta...

Unit sshd.service could not be found

When Linux checks the status of the ssh service, the message "Unit sshd.service could not be found" is displayed. 1. Check whether ssh and sshd are installed: ps -e|grep ssh 2. It shows that...

CentOS7:Unit iptables.service not loaded

Today, I rented a few new cloud servers, configured the environment, and first set up a wave of Zookeeper clusters. Like the previous machine, turn off the firewall service iptables stop first, and su...

More Recommendation

Failed to stop iptables.service: Unit iptables.service not loaded.

When the firewall is closed, it appears: Solution: yum install iptables-services In fact, after centos7 is based on iptable systemctl stop firewalld...

Pit when configuring fastDfs: Restart the firewall on CentOs7 to report Unit not found or Job for iptables.service failed because the control pr...

Pit when configuring fastDfs: restart firewall on CentOs7 or Reference blog: Difference between CentOs7 and CentOs6 The default firewall for centos7 is firewalld firewall, not using iptables, so you m...

[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...

centos7 linux ailed to stop iptables.service: Unit iptables.service not loaded.

Because virtual machines under use win install Linux. But the win is can ping of Linux. But using the browser method Linux service win the next time, can not access. Suspected to be a firewall problem...

CentOS 7 appears Failed to start iptables.service: Unit iptables.service failed to load

    The following error message: (1) Close firewalld: systemctl stop firewalld systemctl mask firewalld (2) use the iptables service: 1. Installation iptables-services:  yum install ipt...

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

Top