From owner-freebsd-questions Sat Dec 29 13:59: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from cody.jharris.com (cody.jharris.com [205.238.128.83]) by hub.freebsd.org (Postfix) with ESMTP id 0EDB037B638 for ; Sat, 29 Dec 2001 13:57:24 -0800 (PST) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id fBTLvMb26044; Sat, 29 Dec 2001 15:57:22 -0600 (CST) (envelope-from nick@rogness.net) Date: Sat, 29 Dec 2001 15:57:22 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Joao Carlos Cc: questions@FreeBSD.ORG Subject: Re: SOURCE ROUTING In-Reply-To: <003601c190b8$e2086df0$b0ccb0c8@pchome> 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 On Sat, 29 Dec 2001, Joao Carlos wrote: > Is there any way that I can create routes based on the source network? > > I want that packets coming from network X go to the X link with the > Internet, and that packets coming from network Y go to the Internet > through link Y. Your best bet is using ipfw fwd like so: ipfw add fwd $LINK_Y ip from $NET_Y to any out man ipfw for more details. Nick Rogness - Don't mind me...I'm just sniffing your packets To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message