NavigationUser loginSpam?See spam posts on this site? If so, please don't reply to the spam! Instead, just report the URL to the webmaster. |
Port ForwardingAlright, I have a small network. The gateway runs firewall/NAT/forwarding. I already have test web server running on the firewall computer at this point. It has a firewall script via iptables. It accepts external connections on port 81, and that works fine. But I want to forward port 5222 to another host. Here's the lines in my script that are significant: iptables -t nat -A PREROUTING -i ppp0 -d $EXTIP -p tcp --dport 5222 -j DNAT --to 192.168.0.9:81 ----- $EXTIP is for my dynamic IP. That part works fine. No server found on external connect however. Works fine connecting directly to 192.168.0.9 from the internal network. |
Re: Port Forwarding
my answer from yesterday is gone??
anyway.
without all rules it is a little bit difficult to answer. maybe forwarding not enabled?
echo 1 > /proc/sys/net/ipv4/ip_forward