Hi Everyone,
I am trying to set up an environment where I want to forward any request coming in on my Linux Cent OS machine on port 8081 to a Windows XP machine port No 8081. Both the machines have got single Interface and are on the same LAN.
I tried using iptables and shorewall for achieving the same but somehow they didn't seem to work.
For iptables I used the following rules:
iptables -t nat -A PREROUTING -p tcp -d 192.168.152.xx --dport 8081 -j DNAT --to-destination 192.168.152.yy:8081
I am not sure why it is not working. Does it have to do anythg the single Ethernet card on the source machine(192.168.152.xx). Do I need to necessarily have two interfaces on the source to get this working.
Please guide me how can I achieve the same and the best possible way to debug if I am using the correct steps.
Bookmarks