Jeffrey’s Blog

IPTABLES防火墙脚本实例

@ 阅读全文 | 2007/12/20 03:57pm | Category: 系统管理 | 1,573 views  

#!/bin/bash
# zhangjianfeng.com
# etho 接外网──ppp0
# eth1 接内网──192.168.0.0/24
################################################################

modprobe ipt_MASQUERADE #IP(数据包伪装)伪装
modprobe ip_conntrack_ftp # ftp自动追踪模块
modprobe ip_nat_ftp  #加载对ftp协议支持的模块
iptables -F #清空filter表中所有规则
iptables -t nat -F
iptables -X #Delete  the  optional  user-defined Continue Reading ...

京ICP备06038449号