From owner-freebsd-questions Mon Mar 18 12: 4:48 2002 Delivered-To: freebsd-questions@freebsd.org Received: from asmodean.nks.net (asmodean.nks.net [216.139.201.16]) by hub.freebsd.org (Postfix) with ESMTP id B56A837B404 for ; Mon, 18 Mar 2002 12:04:42 -0800 (PST) Received: from localhost (joeo@localhost) by asmodean.nks.net (8.9.3/8.9.3) with ESMTP id PAA21882; Mon, 18 Mar 2002 15:05:12 -0500 Date: Mon, 18 Mar 2002 15:05:11 -0500 (EST) From: X-Sender: To: Diego Linke - GAMK Cc: Subject: Re: Advanced Routing In-Reply-To: <20020318164116.12c7667c.linke@magicwebdesign.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 Ah... you also need the source address nat'd so return traffic comes back over the correct WAN link... You might be able to get both the "nat" and the "fwd" working with a clever usage of the some "via" modifiers to those ipfw rules, I'm not familiar enough with the way packets flow through the ipfw code to offer more help. On Mon, 18 Mar 2002, Diego Linke - GAMK wrote: > Hi > > The ipfw fwd ... > > Not alter header package :-) > > natd -> use routing table > > I need define a default gateway... The natd send package for default gateway... :-) > > -- > Diego Linke > System/Network Administrator - Magic Web Design > ----------------------------------------------------------- > linke@magicwebdesign.com.br > www.magicwebdesign.com.br > (41) 342-6434 Curitiba - PR - Brasil > > On Mon, 18 Mar 2002 14:26:40 -0500 (EST) > wrote: > > > Look at the IPFW man page. Look for the "fwd" action. > > > > On Mon, 18 Mar 2002, Diego Linke - GAMK wrote: > > > > > Hi, > > > > > > I had a machine with linux and a package called "ip advanced routing". That > > > computer's disk got burned and then I chose to use BSD instead of > > > reinstalling linux. The problem now follows: > > > > > > It has 3 networks cards, one to the internal network (192.168.0.X) , another > > > to an ADSL router and the third to a leased line Internet link (NIC). > > > > > > I need to NAT the internal network, being able to choose which IPs go > > > "nated" for the ADSL or for the leased line. The company's Directors already > > > asked me to return to Linux, since it has "ip advanced routing". I'm struggling > > > to mantain BSD on our servers, and I cannot believe it's not possible to > > > perform this function under this so advanced system. > > > > > > Any help is much appreciated. > > > > > > Thanks, > > > > > > -- > > > Diego Linke > > > System/Network Administrator - Magic Web Design > > > ----------------------------------------------------------- > > > linke@magicwebdesign.com.br > > > www.magicwebdesign.com.br > > > (41) 342-6434 Curitiba - PR - Brasil > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-questions" in the body of the message > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message