From owner-freebsd-questions@FreeBSD.ORG Sun Aug 22 23:47:45 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 B659016A4CE for ; Sun, 22 Aug 2004 23:47:45 +0000 (GMT) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [216.148.227.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id A5C6643D1F for ; Sun, 22 Aug 2004 23:47:45 +0000 (GMT) (envelope-from mailist@whoweb.com) Received: from h000092a708fc.ne.client2.attbi.com ([24.131.157.19]) by comcast.net (rwcrmhc12) with SMTP id <20040822234744014007oolbe>; Sun, 22 Aug 2004 23:47:44 +0000 From: mailist@whoweb.com To: Henk , freebsd-questions@freebsd.org Date: Sun, 22 Aug 2004 19:49:01 -0400 User-Agent: KMail/1.5.4 References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200408221949.01563.mailist@whoweb.com> Subject: Re: IPFW portforwarding / kernel 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, 22 Aug 2004 23:47:45 -0000 I'd suggest using port forwarding with NATD instead since I'm assuming you are already running NAT between 192.168.1.1 and your ADSL public address. The natd man page covers port and address forwarding pretty well. On Sunday 22 August 2004 10:02 am, Henk wrote: > Dear FreeBSD addict, > > I am running FreeBSD 4.9-RELEASE on a machine with 4 ehternet devices. > 192.168.1.1 is connected to my ADSL router. My FreeBSD machine nicely > routs all traffic between the 4 devices. > rl0 192.168.1.1/24 (WAN-side) > rl1 10.0.10.1/24 (LAN) > rl2 10.0.20.1/24 (LAN) > rl3 10.0.30.1/24 (LAN) > > My wish is to forward all incoming tcp traffic that arrives on > 192.168.1.1:4265 to 10.0.10.151:4265 in the local network. > > Question 1: > Can somebody help me out with the right ipfw command to achieve this (or a > link to where *forwarding* is explained). > > Question 2: > Do I need to recompile my kernel with the IPFIREWALL_FORWARD option? > > My kernel is compiled with the following options: > # options for IPFW / NATD > options IPFIREWALL > options IPFIREWALL_VERBOSE > options IPFIREWALL_VERBOSE_LIMIT=10 > options IPDIVERT > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to > "freebsd-questions-unsubscribe@freebsd.org"