Hi All,
I have two systems and I would like all packets that come to system 1 to
be forwarded to system 2.
So, let say the system 2 is running web browser on 80. I would like to
be able to say:
curl
http://system2:8080
and get the page running on system2 on 80.
So I tried the following:
iptables --append PREROUTING -t nat --protocol tcp --dport 8080 --jump
DNAT --to-destination system2:80
iptables --append FORWARD --protocol tcp --dport 8080 --jump ACCEPT
but it did not work.
Any idea on what am I doing wrong?
Thanks.
Andy