|
|

楼主 |
发表于 2006-6-5 17:13:15
|
显示全部楼层
[root@localhost ~]# iptables-save
# Generated by iptables-save v1.3.5 on Mon Jun 5 17:10:09 2006
*nat
REROUTING ACCEPT [5:451]
OSTROUTING ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
-A POSTROUTING -s 192.168.150.0/255.255.255.0 -o eth0 -j SNAT --to-source 192.16
8.100.250
COMMIT
# Completed on Mon Jun 5 17:10:09 2006
[root@localhost ~]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.100.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.150.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
192.168.140.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth2
0.0.0.0 192.168.100.254 0.0.0.0 UG 0 0 0 eth0 |
|