[Techtalk] iptables NAT forwarding...

Walt pippin at freeshell.org
Tue May 28 10:38:43 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

-~





     Multiplication is vexation,

     Division is as bad;

     The rule of three doth puzzle me,

     And practice drives me mad.

                    Elizabethan Manuscript 1570









More information about the Techtalk mailing list