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