From owner-freebsd-questions@FreeBSD.ORG Mon Jan 12 17:55:09 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 6E28516A4CE for ; Mon, 12 Jan 2004 17:55:09 -0800 (PST) Received: from mpls-qmqp-04.inet.qwest.net (mpls-qmqp-04.inet.qwest.net [63.231.195.115]) by mx1.FreeBSD.org (Postfix) with SMTP id 6DD6643D45 for ; Mon, 12 Jan 2004 17:55:06 -0800 (PST) (envelope-from budec@qwest.net) Received: (qmail 6134 invoked by uid 0); 13 Jan 2004 01:55:06 -0000 Received: from mpls-pop-12.inet.qwest.net (63.231.195.12) by mpls-qmqp-04.inet.qwest.net with QMQP; 13 Jan 2004 01:55:06 -0000 Received: from unknown (HELO abby) (63.231.238.226) by mpls-pop-12.inet.qwest.net with SMTP; 13 Jan 2004 01:55:05 -0000 Date: Mon, 12 Jan 2004 19:50:27 -0600 Message-ID: From: "Budec" To: "'FreeBSD-questions list'" 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 IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal In-Reply-To: <20040113015258.GDTN3322.fed1mtao01.cox.net@SAMBA> Subject: Port forwarding 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: Tue, 13 Jan 2004 01:55:09 -0000 Hello, I have been trying to get this working for days and am obviously doing something wrong and was wondering if any Guru's out there could give a little guidance. Basically I'm looking to run a game server behind a FreeBSD firewall. Here is my setup: {internet} <-> [public address] - Firewall <-> (internal address) Game server Lets say public address is 1.2.3.4 and private address is 192.168.17.25 port is 5122 In the /etc/rc.conf I set the firewall policy to "OPEN" and enabled natd, I gave it the natd options of "-f /etc/natd.conf"... for "ipnat" I have that set to "NO" (not sure what it does) In the natd.conf file I have this: redirect_port tcp 192.168.17.25:5122 5122 redirect_port udp 192.168.17.25:5122 5122 I restart natd and theatrically everything that hits 1.2.3.4 on port 5122 should be automatically redirected to 192.168.17.25 port 5122, right? I have also tried this (since the public interface is aliases (has more than one public address associated with it)): redirect_port tcp 192.168.17.25:5122 1.2.3.4:5122 redirect_port udp 192.168.17.25:5122 1.2.3.4:5122 Which doesn't seem to work either. Any ideas? Regards, Jack