iptables -t nat -A PREROUTING -d 192.168.230.9 -j DNAT --to-destination 192.168.160.11-192.168.160.12
iptables -t nat -A POSTROUTING -m iprange --dst-range 192.168.160.11-192.168.160.12 -j SNAT --to-source 192.168.230.9
[root@localhost bin]# cat /proc/sys/net/ipv4/ip_forward
1
Ãß°¡·Î ¶ó¿ìÆõǴ ¼¹ö Ä«¿îÆÃÁ¤º¸ È®ÀÎÇÏ·Á¸é...
iptables -t nat -I POSTROUTING -d 192.168.160.11
iptables -t nat -I POSTROUTING -d 192.168.160.12
¼¼¼ÇÈ®ÀÎ
cat /proc/net/ip_conntrack