From owner-freebsd-questions@FreeBSD.ORG Mon Apr 28 14:35:18 2003 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 D122537B436 for ; Mon, 28 Apr 2003 14:35:18 -0700 (PDT) Received: from shrike.submonkey.net (pc1-cdif2-5-cust38.cdif.cable.ntl.com [81.101.150.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB12943FA3 for ; Mon, 28 Apr 2003 14:35:17 -0700 (PDT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.12) id 19AGHL-000LqK-00; Mon, 28 Apr 2003 22:35:15 +0100 Date: Mon, 28 Apr 2003 22:35:15 +0100 From: Ceri Davies To: massey@rmci.net Message-ID: <20030428213515.GA83782@submonkey.net> References: <4928.216.222.104.2.1051555885.squirrel@webmail.velocitus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4928.216.222.104.2.1051555885.squirrel@webmail.velocitus.net> User-Agent: Mutt/1.5.4i Sender: Ceri Davies cc: freebsd-questions@freebsd.org Subject: Re: IPFW and 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: Mon, 28 Apr 2003 21:35:19 -0000 On Mon, Apr 28, 2003 at 12:51:25PM -0600, massey@rmci.net wrote: > Using NATD and IPFW, working great by the way, I need to forward a port > into a specific box. Where can I find some examples of properly doing > this. $ grep natd /etc/rc.conf ## natd - goes with Firewall section above natd_enable="YES" natd_interface="vr0" natd_flags="-s -m -u -dynamic -punch_fw 2850:48 -redirect_port tcp 192.168.10.1:2234 2234" If you need a whole boatload then you'd be better off putting them in a config file; check the -config option of natd. Ceri --