防火墙 iptables开启和关闭

查看iptables规则的话,就用iptables -L
清除iptables规则的话,用iptables -F ,that‘s aaaaalllllll~~
关闭,可以有两种命令,一种是敲击 /etc/init.d/iptables stop 另一种是 services iptables stop
chkconfig状态
chkconfig iptables off(设置自动启动为关闭)

chkconfig iptables on(设置自动启动为启动)

chkconfig –del iptables(移除开启自启动)

chkconfig –add iptables(增加开启自启动)

© 版权声明
THE END
喜欢就支持一下吧
点赞6 分享
评论 共2条
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情