Guest gpaz Posted May 15, 2003 Report Share Posted May 15, 2003 I need redirect a subdomain of "mydomain.com" to a machine inside my local network. I'm using iptables to make it. The rule is this: iptables -t nat -A PREROUTING -p tcp -d subdomain.mydomain.com --dport 80 -j DNAT --to-destination 192.168.0.2:80 is correct? It don't works. Samebody can helpme? Thanks. Quote Link to comment Share on other sites More sharing options...
aru Posted May 15, 2003 Report Share Posted May 15, 2003 Not sure at all, but for what I've seen googling, you might want to replace "-d subdomain.mydomain.com" with "-d IP_NUMBER_of_subdomain.mydomain.com" HTH Quote Link to comment Share on other sites More sharing options...
Guest gpaz Posted May 16, 2003 Report Share Posted May 16, 2003 ok, very thanks for the tip. I will prove it. "Espero que funcione... ;-)" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.