From owner-freebsd-isp Thu Jul 5 13: 0:59 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 7F1E137B403 for ; Thu, 5 Jul 2001 13:00:57 -0700 (PDT) (envelope-from gskouby@obfs.sitesnow.com) Received: from gskouby by obfs.sitesnow.com with local (Exim 3.22 #5) id 15IFJ3-000P08-00 for freebsd-isp@freebsd.org; Thu, 05 Jul 2001 16:00:57 -0400 Date: Thu, 5 Jul 2001 16:00:57 -0400 From: Greg Skouby To: freebsd-isp@freebsd.org Subject: source routing Message-ID: <20010705160057.C95034@sitesnow.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 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