tags: Failed to start iptables.servi
The following error message:
service iptables start
Redirecting to /bin/systemctl start iptables.service
Failed to start iptables.service: Unit iptables.service failed to load: No such file or directory.
Solutions are as follows:
Because centos7 default firewall is firewalld firewall management tool, rather than using iptables. So we need to shut down firewalld service, or use the default firewalld firewall.
(1) Close firewalld:
systemctl stop firewalld
systemctl mask firewalld
(2) use the iptables service:
1. Installation iptables-services:
yum install iptables-services
2. Set the boot:
systemctl enable iptables
3. iptables startup, shutdown, save:
systemctl [stop|start|restart] iptables
#or
service iptables [stop|start|restart]
service iptables save
#or
/usr/libexec/iptables/iptables.init save
Firewall by firewall in CentOS 7 or RHEL 7 or Fedora is managed by firewalld Add to Reload Check delete Open firewall View the running status Reference blog Centos7 Failed to Start iptables.service: U...
iptables -A INPUT -p tcp --dport 22 -j ACCEPT iptables -A OUTPUT -p tcp --sport 3322 -j ACCEPT # Restart the firewall configuration file to take effect systemctl restart iptables.service # Ipta...
original: Execution in CentOS7 Failed to start iptables.service: Unit iptables.service failed to load: No such file or directory. Firewalls are managed by firewalld in CentOS 7 or RHEL 7 ...
Executed in CentOS7 Failed to start iptables.service: Unit iptables.service failed to load: No such file or directory. The firewall is managed by firewalld in CentOS 7 or RHEL 7 or Fedora. If you want...
Error, firewall in CentOS 7 or RHEL 7 or Fedora is managed by FireWallD, of course, you can restore traditional management methods. Or use the new command to manage. If you use the tradition, please p...
Re-run the network configuration...
Centos 7 can not access, Job for iptables.service failed because the control process exited with error code. Original May 20, 2017 14:21:41 label: centos / The internet A firstan examinationOwn n...
One, firstan examinationOwn network configuration information: Path: vi /etc/sysconfig/network-scripts/ifcfg-eno16777736 As shown in the figure Command to restart network configuration:service network...
First, the problem description After installing MySQL under the Linux system (CentOS7), it is found that the database is not connected due to the firewall problem: Turn off the firewall problem: Secon...
An error is as follows the reason: The meaning of this is to let you redirect to SystemctL and then enable, whitening is to start using SystemctL Enter systemctl start iptables...