ifconfig eth1:30 down
ifconfig eth1:30 10.9.62.136/24

iptables -t filter -F
iptables -t nat -F
iptables -t nat -I PREROUTING -i eth1 -d 10.9.62.136/32 -j DNAT --to-destination 10.9.62.36
iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

ifconfig eth1:37 down
ifconfig eth1:37 10.9.62.37/24
iptables -t nat -I PREROUTING -i eth1 -d 10.9.62.37/32 -j DNAT --to-destination 10.9.62.137
Copyright © opschina.org 2017 with zzlyzq@gmail.com all right reserved,powered by Gitbook该文件修订时间: 2017-07-11 11:32:48

results matching ""

    No results matching ""