From owner-freebsd-questions Wed Mar 14 7:36:23 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 2269B37B71B for ; Wed, 14 Mar 2001 07:36:20 -0800 (PST) (envelope-from nick@rogness.net) Received: from localhost (nick@localhost) by cody.jharris.com (8.11.1/8.9.3) with ESMTP id f2EG1ig34856; Wed, 14 Mar 2001 10:01:44 -0600 (CST) (envelope-from nick@rogness.net) Date: Wed, 14 Mar 2001 10:01:44 -0600 (CST) From: Nick Rogness X-Sender: nick@cody.jharris.com To: Marcius Cc: freebsd-questions@FreeBSD.ORG Subject: Re: question about source routing In-Reply-To: <002901c0ac84$c0ac6d00$d20ca8c0@otpaba> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 14 Mar 2001, Marcius wrote: > Hello, I have the following situation: a router running FreeBSD 4.2 > with 3 ethernet cards. One of them is for LAN (192.168.0.0/24) and two > ethernets is for two different ISP. One part of LAN users must have > default route trough 1 ISP and the other part of LAN users must have > default route trough the other ISP. In documentation (Handbook, > manuals and howto) I didn't find information about source routing. > With linux it was simple - I used iproute2. Can you explain me how to > do this with FreeBSD? ipfw fwd X.X.X.X ip from A.A.A.A to any out via ISP#1_interface Where X.X.X.X is the default-gateway for ISP#2 and A.A.A.A is the ip subnet of the machines that need access to ISP#2. Nick Rogness - Keep on routing in a Free World... "FreeBSD: The Power to Serve!" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message