portforwarding
hi list
my buddie is trying to get his webserver working behind his debian router. this is what i gave him (we tried once with --dport and once with --dports):
iptables -t nat -A PREROUTING -i $WAN_IFACE -p tcp -m multiport --dports 22,80 -j DNAT --to-destination $SERVER
i'm not able to connect to his webserver with http://his_ip/
what am i doing false? got any ideas?
thanx
eric
well make sure apache is first installed correctly and loads up just fine.. Try doing an apache -S to make sure it loads fine
secondly theres 2 things needing to be done
first need to forward the port
iptables -t nat -A PREROUTING -d externalip -p tcp --dport 80 -j DNAT --to webserverip:80
and also make sure the port you want is opened in your FORWARD as well
iptables -A FORWARD -p tcp --dport 80 -j ACCEPT
will prob have to change around those cmds a lil bit to suit your needs, but hopefully that gets you on the right track.
-paul
Quoted 13 lines · --- Eric Marchionni
hi list
my buddie is trying to get his webserver working behind his
debian router.
this is what i gave him (we tried once with --dport and once with
--dports):iptables -t nat -A PREROUTING -i $WAN_IFACE -p tcp -m multiport
--dports 22,80 -j DNAT --to-destination $SERVER
Quoted 8 lines
i'm not able to connect to his webserver with
http://his_ip/
what am i doing false? got any ideas?thanx
eric
__________________________________
Do you Yahoo!?
The New Yahoo! Search - Faster. Easier. Bingo.
http://search.yahoo.com