内外网

交换机:ip route 0.0.0.0 0.0.0.0 10.95.2.200
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 116.112.*.*
netmask 255.255.255.240
gateway 116.112.*.*

auto eth1
iface eth1 inet static
address 10.95.*.*
netmask 255.255.255.0

iptables -F
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

你可能感兴趣的:(F#,J#)