双网卡,做网关服务器共享上网.,学习
eth0(内网)
DEVICE=eth0
ONBOOT=yes
BO.OTPROTO=static电影
IPADDR=192.16.8.0.124.
NETMA.SK=255.255.255.0--------------彩票
--------------------------------.-.-- 乙肝
eth1(外网)
DEVICE=eth1
ONBOOT=yes
BOOTP.ROTO=static 外汇
IPADDR=121.33.212..4 美容
NETMASK=255.255.25.5.248域名
GE.TWAY=121.33.212.1 健康
HWADDR=00:02:B3.:12:A4:84 健康
~
网卡都配好的情况下,在ip.tables里写如下规则,重起.后却发生错误 女人
IPTABLES=./sbin/iptables教育
sb.in/mo.dprobe ipt_MASQUERADE 女人
/sbin/modpr.obe ip_nat_ftp 汽车
/sbin/modprobe. ip_conntrack._ftp电脑
$IPTABLES -F
$IPTABLES -F -t .filter( 游戏 )
$IPTABLES -F. FORWARD 电子
$IPTABLES. -F INPUT教育
echo 1 > /proc/sys/net/ipv4/ip_forwardiptables -t nat -A POSTROUTING -o eth1 -s 192..1.68.0.0/24 -j SNAT --to 121.33.2.12.4 婚庆
重起iptables发生如下.错误 建材
[root@localhost. ~]# /etc/init.d/iptables re.start外贸
清除防火墙规则: . . [ 确定 ] 健康
把 chains 设置为 ACCEPT 策略:filter . . [ 确定 ]健康
正在卸载 Iiptables 模块: . [ 确定 .].
应用 iptables 防火墙规则:Bad argument `IPTABL.ES=/sbin/ipta.bles' 女人
Er.ror occurred at .line: 55--- 印刷
Try `iptables-restore -h' or 'iptables.-restore --help' f.or more informati.on.服务器
. [失败.]电脑
请大.虾指点下是什么原因!!!谢谢 乙肝