在centos7上面关闭防火墙,除了要关闭iptables,还要关闭firewalld
[root@localhost share]# service iptables status
Redirecting to /bin/systemctl status iptables.service
iptables.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@localhost share]# service ip6tables status
Redirecting to /bin/systemctl status ip6tables.service
ip6tables.service
Loaded: not-found (Reason: No such file or directory)
Active: inactive (dead)
[root@localhost share]# systemctl list-unit-files |grep ip
ipsec.service disabled
multipathd.service enabled
[root@localhost share]# service firewalld status
Redirecting to /bin/systemctl status firewalld.service
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: active (running) since 四 2014-12-25 14:13:05 CST; 1h 51min ago
Main PID: 807 (firewalld)
CGroup: /system.slice/firewalld.service
└─807 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid
12月 25 14:13:05 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
[root@localhost share]# service firewalld stop
Redirecting to /bin/systemctl stop firewalld.service
[root@localhost share]# systemctl status firewalld.service
firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled)
Active: inactive (dead) since 四 2014-12-25 16:04:56 CST; 15s ago
Process: 807 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUCCESS)
Main PID: 807 (code=exited, status=0/SUCCESS)
12月 25 14:13:05 localhost.localdomain systemd[1]: Started firewalld - dynamic firewall daemon.
12月 25 16:04:55 localhost.localdomain systemd[1]: Stopping firewalld - dynamic firewall daemon...
12月 25 16:04:56 localhost.localdomain systemd[1]: Stopped firewalld - dynamic firewall daemon.