![]() |
Web Server on private IP
I have my NAT set up and a web server inside the nat and i want to set it up so the nat forwards the web packets (port 80) to an address inside my internal network any help on that? .... RH9...
|
If everything else is good the a line like this will do it
iptables -t nat -A PREROUTING -p tcp -d my_external_ip_address -dport 80 -j DNAT --to-destination my_web_server_internal_ip or swap -d my_external_ip_address for -i eth0 or whatever card is the external one |
thanks will try it out and get back to ya!
|
iptables -t nat -A PREROUTING -p tcp -d my_external_ip_address -dport 80 -j DNAT --to-destination my_web_server_internal_ip
i did this and got: iptables v1.2.7a: multiple -d flags not allowed Try `iptables -h' or 'iptables --help' for more information. |
got it the correct syntax is:
iptables -t nat -A PREROUTING -p tcp --dport 80 -i eth0 -j DNAT --to 192.168.0.8 if that helps ne one other than me ! |
| All times are GMT -5. The time now is 09:21 PM. |