From owner-freebsd-isp Fri Jul 6 8:17:47 2001 Delivered-To: freebsd-isp@freebsd.org Received: from obfs.sitesnow.com (ns0.sitesnow.com [63.166.182.130]) by hub.freebsd.org (Postfix) with ESMTP id 63AAC37B407 for ; Fri, 6 Jul 2001 08:17:45 -0700 (PDT) (envelope-from gskouby@obfs.sitesnow.com) Received: from gskouby by obfs.sitesnow.com with local (Exim 3.22 #5) id 15IXMW-000Ipt-00 for freebsd-isp@freebsd.org; Fri, 06 Jul 2001 11:17:44 -0400 Date: Fri, 6 Jul 2001 11:17:44 -0400 From: Greg Skouby To: freebsd-isp@freebsd.org Subject: source routing (again) Message-ID: <20010706111744.A72361@sitesnow.com> References: <20010705160057.C95034@sitesnow.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010705160057.C95034@sitesnow.com>; from gskouby@sitesnow.com on Thu, Jul 05, 2001 at 04:00:57PM -0400 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Is there a way to specify which interface the traffic should go out of if the address is x.x.x.x? Thanks. n Thu, Jul 05, 2001 at 04:00:57PM -0400, Greg Skouby wrote: > Hello, > > > I am attempting to set up source routing with my FreeBSD > router/firewall using ipfw fwd. > > > > I have all outbound traffic coming in through an > interface ed1 which is at 192.168.1.5. If it is > coming from 10.0.1.0/24 I want to send it out of > interface dc0 which is at 192.168.1.4. If it is > coming from 10.0.2.0/24 I want to set it out of xl0 > which is at 192.168.1.3. > > 192.168.1.1 is the gateway out of xl0 and > 192.168.1.2 is the gateway out of dc0 > > > I through the following commands would get the job done: > > ipfw add fwd 192.168.1.1 ip from 10.0.2.0/24 to any out via xl0 > ipfw add fwd 192.168.1.2 ip from 10.0.1.0/24 to any out via dc0 > > > but those commands produce this error: > > ipfw: getsockopt(IP_FW_ADD): Invalid argument > > any ideas?? > Thanks for the time. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-isp" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message