CentOS 配置防火牆操作執行個體(啟、停、開、閉端口):
注:防火牆的基本操作指令:
查詢防火牆狀态:
[root@localhost ~]# service iptables status<回車>
停止防火牆:
[root@localhost ~]# service iptables stop <回車>
啟動防火牆:
[root@localhost ~]# service iptables start <回車>
重新開機防火牆:
[root@localhost ~]# service iptables restart <回車>
永久關閉防火牆:
[root@localhost ~]# chkconfig iptables off<回車>
永久關閉後啟用:
[root@localhost ~]# chkconfig iptables on<回車>
<a href="https://s5.51cto.com/wyfs02/M00/9C/6D/wKiom1lwT1_gXKpOAAA4Lx3mmG4465.png" target="_blank"></a>
<a href="https://s5.51cto.com/wyfs02/M00/9C/6D/wKioL1lwT2CBP9qaAAArsG72TeQ429.png" target="_blank"></a>
<a href="https://s4.51cto.com/wyfs02/M01/9C/6D/wKiom1lwT2CR32b8AABZt7kGcP4493.png" target="_blank"></a>
<a href="https://s5.51cto.com/wyfs02/M01/9C/6D/wKiom1lwT2HTU3XuAAA8anZfvj4809.png" target="_blank"></a>
<a href="https://s4.51cto.com/wyfs02/M01/9C/6D/wKioL1lwT2GTMO65AABP2RkUyj8080.png" target="_blank"></a>
本文轉自 是阿傑啊 51CTO部落格,原文連結:http://blog.51cto.com/jschinamobile/1949319