From owner-freebsd-questions Sat Feb 23 5:25:56 2002 Delivered-To: freebsd-questions@freebsd.org Received: from ulixes.esc.ac.at (ulixes.esc.ac.at [193.170.216.34]) by hub.freebsd.org (Postfix) with ESMTP id 6DF0737B402 for ; Sat, 23 Feb 2002 05:25:50 -0800 (PST) Received: from ulixes.esc.ac.at (localhost.esc.ac.at [127.0.0.1]) by ulixes.esc.ac.at (8.12.2/8.12.2) with ESMTP id g1NDPnHr012112; Sat, 23 Feb 2002 14:25:49 +0100 (CET) (envelope-from flo@ulixes.esc.ac.at) Received: (from flo@localhost) by ulixes.esc.ac.at (8.12.2/8.12.2/Submit) id g1NDPn6D012111; Sat, 23 Feb 2002 14:25:49 +0100 (CET) (envelope-from flo) Date: Sat, 23 Feb 2002 14:25:49 +0100 From: Florian Nigsch To: Pascal Poschenrieder , freebsd-questions@freebsd.org Subject: Re: Question about Port Forwarding Message-ID: <20020223142549.E11409@nigsch.com> References: <000001c1bc5e$b0c988b0$0100000a@DOCMOD> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <000001c1bc5e$b0c988b0$0100000a@DOCMOD>; from DOCMOD@t-online.de on Sat, Feb 23, 2002 at 12:38:58PM +0100 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Feb 23, 2002 at 12:38:58PM +0100, Pascal Poschenrieder wrote: > Dear FreeBSD Team! > I've got an old Computer with FreeBSD as its OS. This Computer is > connected to the internet. It is a DSL connection. > The Computer has the function of a router and it works. > But there is just one problem: > I wanna to forward every ports to my other computer, which is on > 10.0.0.2, but I can't emagine how to do this. > It is FreeBSD version 4.3. Please help me!! > THX, Pascal. ---end quoted text--- The first method of which I would think of is using a kernel which is capable of divert sockets (options IPDIVERT or so) and ipfw (options IPFIREWALL). You then have to setup a divert rule at the beginning of your firewall ipfw add 100 divert natd ip from any to any via and setup a redirect directive for natd to work. see natd(8) for the correct syntax, buzt for you it will be something like redirect_adress 10.0.0.2 which would redirect anything destined for to 10.0.0.2. Hope that helps. flo -- --- Florian Nigsch http://flo.nigsch.com/ PGP key: http://flo.nigsch.com/fnigsch.asc To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message