[Techtalk] iptables NAT forwarding...
Julie
jockgrrl at austin.rr.com
Tue May 28 09:46:45 EST 2002
Walt wrote:
>
> 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!
Based on what I learned a few weeks back, the answer is "Yes".
--
Julianne Frances Haugh Life is either a daring adventure
jockgrrl at austin.rr.com or nothing at all.
-- Helen Keller
More information about the Techtalk
mailing list