I've got a webserver running on port 80. Why can't external sites access it
after I execute the following? The intended port gets through... but I
suspect everything else goes to the forwarded
port too...
################################################## ######################
ports=5678
dest=192.168.0.95
echo Forwarding udp ports $ports to $dest...
iptables -t nat -A PREROUTING -i $ethinet -p udp --dport $ports -j
DNAT --to-dest $dest
iptables -A FORWARD -p udp -i $ethinet --dport $ports -d $dest -j ACCEPT
echo Forwarding tcp ports $ports to $dest...
iptables -t nat -A PREROUTING -i $ethinet -p tcp --dport $ports -j
DNAT --to-dest $dest
iptables -A FORWARD -p tcp -i $ethinet --dport $ports -d $dest -j ACCEPT
################################################## ######################
I know, I know. I don't know much about all this... so help me out here!
Thanks!
|