From owner-freebsd-questions@FreeBSD.ORG Sun Jul 4 08:57:21 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D20A916A4CE for ; Sun, 4 Jul 2004 08:57:21 +0000 (GMT) Received: from mail.iinet.net.au (mail-09.iinet.net.au [203.59.3.41]) by mx1.FreeBSD.org (Postfix) with SMTP id 7248743D3F for ; Sun, 4 Jul 2004 08:57:20 +0000 (GMT) (envelope-from arazoth@iinet.net.au) Received: (qmail 22874 invoked from network); 4 Jul 2004 08:57:18 -0000 Received: from unknown (HELO glamdring) (203.217.68.32) by mail.iinet.net.au with SMTP; 4 Jul 2004 08:57:18 -0000 From: "Jon Kurjakovich" To: Date: Sun, 4 Jul 2004 18:57:16 +1000 Message-ID: <000001c461a4$e7f747d0$0301a8c0@glamdring> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2616 Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 Subject: NATD Port Forwarding question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Jul 2004 08:57:21 -0000 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