[root@bakrouter ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:77:36:8F
inet addr:192.168.83.11 Bcast:192.168.83.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2781 errors:0 dropped:0 overruns:0 frame:0
TX packets:2042 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:241321 (235.6 KiB) TX bytes:207224 (202.3 KiB)
[root@bakrouter ~]# ssh 192.168.83.10
root@192.168.83.10's password:
Last login: Sun Oct 7 06:56:15 2012 from 192.168.83.1
[root@actrouter ~]# exit
logout
Connection to 192.168.83.10 closed.
[root@bakrouter ~]# iptables -t nat -A OUTPUT --destination 192.168.83.10 -p tcp --dport 22 -j DNAT --to-destination 192.168.83.12
[root@bakrouter ~]# ssh 192.168.83.10
root@192.168.83.10's password:
Last login: Sun Oct 7 18:18:32 2012 from 192.168.83.11
[root@web1 ~]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:5A:A0:F0
inet addr:192.168.83.12 Bcast:192.168.83.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1010 errors:0 dropped:0 overruns:0 frame:0
TX packets:562 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:76735 (74.9 KiB) TX bytes:56420 (55.0 KiB)
[root@web1 ~]# exit
logout
Connection to 192.168.83.10 closed.