|
发表于 2003-7-22 09:18:40
|
显示全部楼层
最初由 osoftware 发表
我的也是这样,
我的设置:
R9.0通过eth0上网,eth1接hub
eth0:192.168.0.1 255.255.255.0
eth1:192.168.0.2 255.255.255.0
内网机子均为XP
:ip 192.168.0.X 255.255.255.0
网关 192.168.0.1
DNS 192.168.0.1(不行)
isp没给 我DNS
内网机子192.168.0.X能ping通192.168.0.1但ping不通外网
R9.0也能ping通内网机子
R9.0能上网,
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth1 -j MASQUERADE
~
~
[root@localhost root]# lsmod | grep ip_tables
ip_tables 14648 6 [ipt_REJECT iptable_filter ipt_MASQUERADE iptable_nat]
还望高手解答爱
你ping 不通外网?
查一下你的output和input吧!最好是自定义防火墙规则 |
|