溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

linux無法啟動iptables如何解決

發(fā)布時間:2022-07-27 17:17:14 來源:億速云 閱讀:775 作者:iii 欄目:建站服務器

這篇文章主要介紹了linux無法啟動iptables如何解決的相關知識,內容詳細易懂,操作簡單快捷,具有一定借鑒價值,相信大家閱讀完這篇linux無法啟動iptables如何解決文章都會有所收獲,下面我們一起來看看吧。

解決方法:1、新建一條規(guī)則,語法為“iptables -P ...”;2、利用“service iptables save”保存,并且利用“l(fā)s /etc/sysconfig/”查看新建的配置文件;3、利用“service iptables start”啟動iptables即可。

本教程操作環(huán)境:linux7.3系統(tǒng)、Dell G3電腦。

linux無法啟動iptables怎么辦

問題描述:

輸入“service iptables status”查看狀態(tài),提示:iptables: Firewall is not running.。

linux無法啟動iptables如何解決

輸入“service iptables start”啟動iptables,提示:iptables: No config file.    [WARNING]。

linux無法啟動iptables如何解決

輸入“l(fā)s /etc/sysconfig/”查看,未找到配置文件iptables。

linux無法啟動iptables如何解決

解決方法:

1、任意新建一條規(guī)則(本例中為iptables -P OUTPUT ACCEPT)。

linux無法啟動iptables如何解決

2、輸入“service iptables save”保存,提示已經(jīng)成功保存到/etc/sysconfig/iptables。

iptables: Saving firewall rules to /etc/sysconfig/iptables: [   OK    ]

linux無法啟動iptables如何解決

再次輸入“l(fā)s /etc/sysconfig/”查看可發(fā)現(xiàn)配置文件(下圖藍色框內)。

linux無法啟動iptables如何解決

3、輸入“service iptables start”即可啟動。

linux無法啟動iptables如何解決

關于“l(fā)inux無法啟動iptables如何解決”這篇文章的內容就介紹到這里,感謝各位的閱讀!相信大家對“l(fā)inux無法啟動iptables如何解決”知識都有一定的了解,大家如果還想學習更多知識,歡迎關注億速云行業(yè)資訊頻道。

向AI問一下細節(jié)

免責聲明:本站發(fā)布的內容(圖片、視頻和文字)以原創(chuàng)、轉載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內容。

AI