概要-Linuxはファイアウォールを閉じます(CentOS 6、CentOS 7)
Summary Linux Closes Firewall Centos 6
-
CentOS6ファイアウォールを閉じる
service iptables status # View firewall status service iptables stop # Temporarily close the firewall and restart the system to fail chkconfig iptables off # Turn off the firewall and turn on
実行効果を図に示します。
-
CentOS7はファイアウォールをオフにします
firewall-cmd --state # View firewall status systemctl stop firewalld.service # Temporarily close the firewall and restart the system to fail systemctl disable firewalld.service # Turn off the firewall and turn on
実行効果は以下のとおりです。