From owner-freebsd-questions@FreeBSD.ORG Sun Aug 22 13:57:07 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 A365016A4CE for ; Sun, 22 Aug 2004 13:57:07 +0000 (GMT) Received: from pluto.isd-holland.nl (pluto.isd-holland.nl [62.221.254.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 70D7F43D1F for ; Sun, 22 Aug 2004 13:57:07 +0000 (GMT) (envelope-from dontspamhenk@xs4all.nl) Received: from shell.dds.nl (shell.dds.nl [213.196.11.31]) by pluto.isd-holland.nl (Postfix) with ESMTP id 4E1F42FC426 for ; Sun, 22 Aug 2004 15:57:06 +0200 (CEST) Date: Sun, 22 Aug 2004 16:02:50 +0200 (CEST) From: Henk X-X-Sender: msmits@yafa.dds.nl To: freebsd-questions@freebsd.org Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: 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 13:57:07 -0000 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