|
|

楼主 |
发表于 2005-11-25 11:14:09
|
显示全部楼层
多谢楼上的朋友的关注!
我按照您的方法,在/etc/rc.d/rc.local中做了如下修改:
touch /var/lock/subsys/local
echo 1 > /proc/sys/net/ipv4/ip_forward
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
然后运行:
[root@linux root]# iptables -L -n -t nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
SNAT all -- 192.168.0.0/24 0.0.0.0/0 to:203.94.26.2
MASQUERADE all -- 192.168.0.0/24 0.0.0.0/0
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@linux root]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
改完后,我把所有客户端的网关都设为:192.168.96.22后,又把Linxu代理服务器重新启动了一次,还是不行,我现在该怎么做,谢谢关注! |
|