linux下配置防火墙

查看状态service iptables status

1) 临时生效,重启后复原
开启: service iptables start
关闭: service iptables stop
重启: service iptables stop

2) 永久性生效,重启后不会复原
开启: chkconfig iptables on
关闭: chkconfig iptables off

 

vim /etc/sysconfig/iptables

 

posted @ 2017-03-15 09:34  帽子戏法  阅读(255)  评论(0编辑  收藏  举报
全部 html css js Linux php MySQL seo web git other 联系 管理