NATD Port Forwarding question

Jon Kurjakovich arazoth at iinet.net.au
Sun Jul 4 01:57:21 PDT 2004


Hi there,

I am currently using FreeBSD 4.8-RELEASE. I do plan on upgrading to
5.2-CURRENT shortly but I know people who are using 5.2-CURRENT and are
experiencing the same problem as me. If this email is not appropriate in
this mailing list, could you please forward me to the correct one. Thank
you.

My problem: I am trying to use NATD to forward packets to machines on
the internal network using the redirect_port command. I am specifically
trying to connect to a Terminal Server on a Windows 2000 machine. It
never seems to work for me. I am running natd using the following
command: natd -f /etc/natd.conf with the following options in my
natd.conf file.

interface tun0
same_ports yes
use_sockets yes
unregistered_only
redirect_port tcp 192.168.1.2:3389 3389

When I create an SSH tunnel using putty, that works fine. It is only
when I try and use natd w/ port-forwarding that it doesn't work. I
configure an extremely open firewall to ensure it is not my firewall
causing the problems. The commands I use are:

/sbin/ipfw -f flush
/sbin/ipfw add 50 divert natd all from any to any via tun0
/sbin/ipfw add pass all from any to any

If anybody could shine any light on this problem for me - it'd be
greatly appreciated. I have been trying to resolve the problem
on-and-off for months now to no avail. I finally decided I should try
the mailing list.

Thanks.

Regards,
Jon




More information about the freebsd-questions mailing list