Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Jul 2004 18:57:16 +1000
From:      "Jon Kurjakovich" <arazoth@iinet.net.au>
To:        <freebsd-questions@freebsd.org>
Subject:   NATD Port Forwarding question
Message-ID:  <000001c461a4$e7f747d0$0301a8c0@glamdring>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000001c461a4$e7f747d0$0301a8c0>