View Single Post
  #9  
Old 27th September 2006, 21:38
amussa amussa is offline
Junior Member
 
Join Date: Aug 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I solved part of the problem.

Now I can access the vm01 http page from the outside if I use the same port (80).
Code:
iptables -A PREROUTING -t nat -p tcp -i eth0 --dport 80 -j DNAT --to 10.0.0.1:80
When I try to redirect from the outside port 8080 to the vm01 port:80 I don't have a conexion.

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

Is there any problem with DNAT?? I read the netfilters tutorial and they say it is possible.

Thanks for any help.
Reply With Quote