From owner-freebsd-questions Fri Feb 21 13:33: 2 2003 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 58A3537B406 for ; Fri, 21 Feb 2003 13:33:00 -0800 (PST) Received: from smtp.infracaninophile.co.uk (smtp.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id E0B9543FDD for ; Fri, 21 Feb 2003 13:32:58 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost [127.0.0.1]) by smtp.infracaninophile.co.uk (8.12.7/8.12.7) with ESMTP id h1LLWq5U011231 for ; Fri, 21 Feb 2003 21:32:52 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.7/8.12.7/Submit) id h1LLWqHt011230 for questions@FreeBSD.ORG; Fri, 21 Feb 2003 21:32:52 GMT Date: Fri, 21 Feb 2003 21:32:52 +0000 From: Matthew Seaman To: questions@FreeBSD.ORG Subject: Re: Routing problem Message-ID: <20030221213252.GB7082@happy-idiot-talk.infracaninophi> Mail-Followup-To: Matthew Seaman , questions@FreeBSD.ORG References: <20030221192443.GA74608@vusa.lt> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030221192443.GA74608@vusa.lt> User-Agent: Mutt/1.5.3i X-Spam-Status: No, hits=-2.7 required=5.0 tests=IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_03_05, USER_AGENT,USER_AGENT_MUTT version=2.44 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 Fri, Feb 21, 2003 at 09:24:44PM +0200, molotov wrote: > I have a little problem with my home network. I had a Linux router > before and now I have FreeBSD set up and running on the same box. > The problem is, that I don't know what manual could speak about > that kind of routing: there are three additional IP addresses > routed to my gateway. I want an internal box to use the given > external IP address or an internal address, while gateway > configuration stays untouched. The external interface of > the gateway is a wireless orinoco card and I do not have an > ethernet-wireless converter, so the external interface should > be published to inside network in a way, that any chosen > machine from inside could use an external IP adress as it's IP > and the external IP address of the router as it's gateway. > Please help me to solve this problem. I know, that the solution > is trivial, but I admit, I still think in Linux... ;) Hmmm... the keywords here are "Static NAT". Start with the natd(8) manual page. That should give you a handle on the terminology used for the different concepts. There's basically three possibilities to do what you want: ipfw(8) + natd(8) ipf(8) + ipnat(8) ppp(8) The ppp(8) option of course, only applies if you're using PPP in some form for your internet connectivity. Otherwise, use which ever one of the other two suits you best. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message