Centos6.8防火墙设置

# 查看防火墙状态

service iptables status
 
# 停止防火墙
service iptables stop
 
# 启动防火墙
service iptables start
 
# 重启防火墙
service iptables restart
 
# 永久关闭防火墙
chkconfig iptables off
 
# 永久关闭后重启
chkconfig iptables  on
 
2、查看防火墙状态,防火墙处于开启状态并且只开放了22端口

猜你喜欢

转载自www.cnblogs.com/toov5/p/9887035.html