LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Good News!! (https://www.linuxquestions.org/questions/linux-networking-3/good-news-9246/)

santiagodelgado 11-26-2001 09:37 PM

Good News!!
 
You can access your PC behind the NAT'ed Linux box from the internet. Try using these commands:

iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j DNAT --to 5.6.7.8:8080

This should send all the requests you get on the server that does the NAT on port 80 and sends them to the machine with the IP 5.6.7.8 port 8080.

If you're interested in NAT this is a great HOWTO.

santiagodelgado 11-26-2001 09:40 PM

Sorry!!
 
This was a response to the questions about NAT and getting servers inside a NAT to receive requests from the net, that by accident became an individual Post.


All times are GMT -5. The time now is 06:48 PM.