[Techtalk] iptables NAT forwarding...

Walt pippin at fred.net
Mon May 27 20:21:54 EST 2002


I'm kind of lost as to why this isn't working..

All I'm trying to do is forward a connection
to port 2346 on my server's external iface to
an internal computer on the same port.

My iptables command is simply this:
iptables -A INPUT -p udp --dport 2346 -d [EXT_IP] -j ACCEPT
iptables -A PREROUTING -t nat -p udp -i ppp0 --dport 2346 -j DNAT --to 
10.0.0.9:2346

But the connection cannot be established and
when I 'nc -u -v -z localhost 2346' it tells me
connection refused.

Do I need to add a rule to my INPUT chain to
allow connections to that port?

Any input would be appreciated!

Thanks,
Walt

-~

     Proverbs are mental gems gathered in the diamond districts
     of our minds.
                         W.R. Alger




More information about the Techtalk mailing list