恢复iptables的默认设置
来源:互联网 发布:c 二维数组初始化 编辑:程序博客网 时间:2024/05/18 01:08
/usr/local/sbin/iptables -P INPUT ACCEPT
/usr/local/sbin/iptables -P FORWARD ACCEPT
/usr/local/sbin/iptables -P OUTPUT ACCEPT
#
# reset the default policies in the nat table.
#
/usr/local/sbin/iptables -t nat -P PREROUTING ACCEPT
/usr/local/sbin/iptables -t nat -P POSTROUTING ACCEPT
/usr/local/sbin/iptables -t nat -P OUTPUT ACCEPT
#
# flush all the rules in the filter and nat tables.
#
/usr/local/sbin/iptables -F
/usr/local/sbin/iptables -t nat -F
#
# erase all chains that's not default in filter and nat table.
#
/usr/local/sbin/iptables -X
/usr/local/sbin/iptables -t nat -X'
/usr/local/sbin/iptables -P FORWARD ACCEPT
/usr/local/sbin/iptables -P OUTPUT ACCEPT
#
# reset the default policies in the nat table.
#
/usr/local/sbin/iptables -t nat -P PREROUTING ACCEPT
/usr/local/sbin/iptables -t nat -P POSTROUTING ACCEPT
/usr/local/sbin/iptables -t nat -P OUTPUT ACCEPT
#
# flush all the rules in the filter and nat tables.
#
/usr/local/sbin/iptables -F
/usr/local/sbin/iptables -t nat -F
#
# erase all chains that's not default in filter and nat table.
#
/usr/local/sbin/iptables -X
/usr/local/sbin/iptables -t nat -X'
- 恢复iptables的默认设置
- 恢复vs2005的默认设置
- 怎么恢复VC的默认设置"
- 恢复Word默认设置的方法
- 恢复Myeclipse安装的默认设置
- 恢复 Ubuntu 的面板到默认设置
- visual studio恢复默认设置的方法
- VS恢复默认设置的2种方法
- 恢复 Ubuntu 的面板到默认设置
- VS恢复默认设置的2种方法
- VS恢复默认设置的2种方法
- 恢复 Ubuntu 的面板到默认设置
- linux 恢复面板默认设置
- VS2008恢复默认设置
- firefox恢复默认设置
- word恢复默认设置
- VS2008恢复默认设置
- VS2008 恢复默认设置
- 计算机图形第一课
- 构筑防火墙之IPtables搭建防火墙的规则
- 05/12/22
- 用Iptables实现简单的上网和过滤初试
- [原创]快速过滤HTML标签
- 恢复iptables的默认设置
- LTP.Net代码自动生成器 1.9版发布
- 明白一个道理
- delphi中flash-Active控件右键屏蔽
- 想拧了。
- 程序员打油诗
- 整理了论坛很多关于dotnet(C#)的试题,大家共享一下
- 再探结构化设计和面向对象设计方法
- 夫妻相