解決CentOS 6.6,/etc/sysconfig/下沒有iptables的問題

新裝的CentOS 6.6,搭建ftp,用自帶的。添加防火牆規則的時候,發現/etc/sysconfig/目錄下,沒有iptables文件。

解決辦法:

1.任意運行一條iptables防火牆規則配置命令:

iptables -P OUTPUT ACCEPT

2.對iptables服務進行保存:

service iptables save

3.重啓iptables服務:

service iptables restart


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章