设为首页
加入收藏
帮助中心
首页 | 红盾通告 | 信息中心 | ASP技术 | 数据库 | 网页设计 | 网管专栏 | OICQ攻略 | 墨客频道 | 网站运营 |
当前位置:首页 >> 网管专栏 >> 防火墙和路由 >> 正文
最新信息
·做个ADSL+Linux软路由器
·使用iptable实现动态防火墙
·防火墙软件Netfilter之NAT…
·Linux2.4中netfilter框架实…
·一个实用的防火墙配置范例
·企业网中用Linux作为路由器
·用iptales实现包过滤型防火…
·用iptales实现包过滤型防火…
·Linux做WAP网关
·使用Linux创建网桥式防火墙
资料搜索
热点信息
·ARP欺骗技术
·Linux网络的多播IP技术
·防火墙软件Netfilter之NAT…
·做个ADSL+Linux软路由器
·用iptales实现包过滤型防火…
·使用iptable实现动态防火墙
·教你将Linux配置为代理防火…
·linux内核防火墙netfilter…
·Linux环境下基于策略的路由…
·用iptales实现包过滤型防火…
推荐信息
·一个实用的防火墙配置范例
·Linux网络的多播IP技术
·防火墙技术综述
·路由器基础
·用iptales实现包过滤型防火…
·用iptales实现包过滤型防火…
·Linux架设防火墙
·Linux下IP巧设置
·防火墙分析报告
·iptables配置工具比较


Google
 
恢复IpTables的默认设置(Script)
〖编辑:Cloudy | 浏览:人次〗

##!/bin/sh
#
# Resets the iptables to default values, in case you screw something up
# while setting your rc.firewall up - as I did quite a few times;)
#
# Author: Oskar Andreasson
# (c) of BoingWorld.com, use at your own risk, do whatever you please with
# it as long as you don't distribute this with due credits to
# BoingWorld.com

#
# reset the default policies in the filter table.
#
/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

 


录入时间:2006-05-08 22:38:47 [打印本页] [关闭窗口] [返回顶部]
特别声明: 本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作者。文章版权归文章原始作者所有。对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转载的文章有版权问题请联系编辑人员,我们尽快予以更正。

Copyright © 2006-2014 0733168.Com Inc All Rights Reserved
关于我们 | 广告合作 | 联系我们 | 法律声明 | 友情链接 | 意见反馈
本站所收录信息、社区话题、及本站所做之广告均属其个人行为,与本站立场无关
湘ICP备06008436号