清除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 (CMS)。

如何以 » Linux » 清除iptables规则-清除/删除iptables规则。
发表评论