tobyheywood
IS-IT--Management
Hi,
I have two machines, box 1 used as a gateway to the Internet and box 2 amongst other things is being used to provide remote video monitoring by way of a webcam or two. In additional ADSL connection with single public IP.
Now on the internal network I can access box 2 no problems, and I can access the internet, thus proving that box 1 is masquerading properly.
I would like to configure it so that, if I try to access box 1 via the internet using port 8080 that it will redirect it to box number 2.
I have added the following to the nat PREROUTING table
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport -j DNAT --to 192.168.0.100
Is the above enough? If it should work, then can someone please advise me on the best way to troubleshoot, as it is not in actual fact working.
If the above isn't enough, I would be greatful if some one could point out what I am doing wrong.
Kind regards
Toby Heywood
I have two machines, box 1 used as a gateway to the Internet and box 2 amongst other things is being used to provide remote video monitoring by way of a webcam or two. In additional ADSL connection with single public IP.
Now on the internal network I can access box 2 no problems, and I can access the internet, thus proving that box 1 is masquerading properly.
I would like to configure it so that, if I try to access box 1 via the internet using port 8080 that it will redirect it to box number 2.
I have added the following to the nat PREROUTING table
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport -j DNAT --to 192.168.0.100
Is the above enough? If it should work, then can someone please advise me on the best way to troubleshoot, as it is not in actual fact working.
If the above isn't enough, I would be greatful if some one could point out what I am doing wrong.
Kind regards
Toby Heywood