Redirecting to / bin / systemctl restart iptables.service / failed to restart iptables.service: Unit Not asked

tags: Operation and maintenance  linux  iptables

Firewall by firewall in CentOS 7 or RHEL 7 or Fedora is managed by firewalld

Add to

FireWall-cmd --zone = public --Add-port = 80 / tcp --Permanent (--Permanent is permanently effective, there is no failure after the parameter is restarted)

firewall-cmd --zone=public --add-port=1000-2000/tcp --permanent

Reload

firewall-cmd --reload

Check

firewall-cmd --zone=public --query-port=80/tcp

delete

firewall-cmd --zone=public --remove-port=80/tcp --permanent

Open firewall

systemctl start firewalld.service

View the running status

FireWall-cmd --state // running means running
View status:
systemctl status sshd.service

 Start service:
systemctl start sshd.service

 Restart the service:
systemctl restart sshd.service

 Boot start:
systemctl enable sshd.service

Reference blog
Centos7 Failed to Start iptables.service: Unit Not Found Firewall

Intelligent Recommendation

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

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

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

Restart SSH Services Redirecting to / Bin / Systemctl Restart Sshd.Service

The restart service in the cloud server ECS Linux Centos 7 is no longer via the SystemCTL operation. The instructions are as follows: 1. Check if the SSHD service is started: It can be determined to b...

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

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

More Recommendation

[Docker] Docker start stop restart Redirecting to /bin/systemctl start docker.service

When starting, shutting down and restarting docker This Redirecting to /bin/systemctl start docker.service appears. https://docs.docker.com/config/daemon/systemd/ Most Linux distributions usesystemctl...

Dressing MySQL Restart Service Service MySQLD Restart How to Solve Redirecting To / Bin / Systemctl Restart MySqld.Service

After reloading MySQL, when restarting the service, how to solve the service that cannot be restarted? Figure: Remove this folder and restart the service again....

centos7 Failed to start iptables.service: Unit not found

In CentOS 7 or Fedora or RHEL 7 firewall to manage the firewalld Add to Reload View delete   ...

Redirecting to /bin/systemctl start mysqld.service Failed to start mysqld.service: Unit not found.

In order to build svn under the local server, install mysql in CentOS, use yum install mysql-server mysql mysql-devel to install mysql but the mysql service cannot be started Use service mysqld start ...

sudo systemctl restart docker Failed to restart docker.service: Unit docker.service not found.

1. Error source When learning docker, when I add a mirror container, restart the docker service error 2. Reasons for errors One of the reasons is that the new version of CentOS has built -in container...

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

Top