清除iptables規則-清除/刪除iptables規則。

之前做一般的清潔 確保你知道如何根據自己的需要進行配置

重設 / Debian的iptables規則 .

centos

下面的命令行按以下順序:

1. iptables -P INPUT ACCEPT
2. iptables -P FORWARD ACCEPT
3. iptables -P OUTPUT ACCEPT
4. iptables -F
5. iptables -X
6. iptables -t nat -F
7. iptables -t nat -X
8. iptables -t mangle -F
9. iptables -t mangle -X

iptables –幫助 :

-P(策略)=鏈 target

–Flush -F [鏈]刪除鏈中的所有規則或所有鏈

-table -t table對錶進行操作(default:`filter')

-X [鏈]刪除用戶定義的鏈

創始人兼編輯 Stealth Settings,從 2006 年至今。 操作系統方面的經驗 Linux (特別是 CentOS), Mac OS X, Windows XP> Windows 10 si WordPress (內容管理系統)。

如何 » Linux » 清除iptables規則-清除/刪除iptables規則。
發表評論