Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 5 Jul 2001 16:00:57 -0400
From:      Greg Skouby <gskouby@sitesnow.com>
To:        freebsd-isp@freebsd.org
Subject:   source routing
Message-ID:  <20010705160057.C95034@sitesnow.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010705160057.C95034>