|
|

楼主 |
发表于 2006-4-25 15:56:32
|
显示全部楼层
ifconfig
eth0 inet adddr:221.6.197.145 bcast :221.6.197.191 mask 255.255.255.192
eth1 inet addr:192.168.0.1 bcast:192.168.0.255 mask 255.255.255.0
route -n
221.6.197.128 *255.255.255.192 U eth0
192.168.0.0 * 255.255.255.0 U eth0
169.254.0.0 * 255.255.0.0 U eth0
127.0.0.0 * 255.0.0.0 U lo
0.0.0.0 221.6.197.145 0.0.0.0.UG eth0
iptables -L -n
accept udp 221.6.4.66 0.0.0.0 udp spt:53 dpts:1025:65535
accept all 0.0.0.0 0.0.0.0
iptables -L -n -t nat
chain prerouting (policy accept)
target port opt source destination
chain postrouting (policy accept)
target port opt source destination
masquerade all -- 0.0.0.0/0 0.0.0.0
chian output (policy accept)
target port opt source destination
cat /proc/sys/net/ipv4/ip_forward 是1
LINUX PING外网可以,上外网也可以
客户机也可以PING外网 |
|