Date: Fri, 6 Jul 2001 11:17:44 -0400 From: Greg Skouby <gskouby@sitesnow.com> To: freebsd-isp@freebsd.org Subject: source routing (again) Message-ID: <20010706111744.A72361@sitesnow.com> In-Reply-To: <20010705160057.C95034@sitesnow.com>; from gskouby@sitesnow.com on Thu, Jul 05, 2001 at 04:00:57PM -0400 References: <20010705160057.C95034@sitesnow.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010706111744.A72361>