linux正确关闭防火墙命令,linux关闭防火墙命令

  • Post author:
  • Post category:linux


1.  Linux系统:Red Hat Enterprise Linux Server release 6.5 (Santiago)

临时关闭防火墙命令:

service iptables stop

service ip6tables stop

永久关闭防火墙命令:

chkconfig iptables off

chkconfig ip6tables off

查看防火墙状态命令:

service iptables status

[root@hadoop ~]# cat /etc/redhat-release

Red Hat Enterprise Linux Server release6.5(Santiago)

[root@hadoop~]# service iptables stop

iptables: Setting chains to policy ACCEPT: filter [ OK ]

iptables: Flushing firewall rules: [ OK ]

iptables: Unloading modules: [ OK ]

[root@hadoop~]# service ip6tables stop

ip6tables: Setting chains to policy ACCEPT: filter [ OK ]

ip6tables: Flushing firewall rules: [ OK ]

ip6tables: Unloading modules: [ OK ]

[root@hadoop~]# service iptables status

iptables: Firewallisnot running.