From owner-freebsd-net Sun Oct 27 9:17:54 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BF9F37B401 for ; Sun, 27 Oct 2002 09:17:53 -0800 (PST) Received: from tesla.foo.is (tesla.reverse-bias.org [217.151.166.96]) by mx1.FreeBSD.org (Postfix) with ESMTP id 709B943E42 for ; Sun, 27 Oct 2002 09:17:52 -0800 (PST) (envelope-from baldur@foo.is) Received: from there (eniac.foo.is [192.168.1.25]) by tesla.foo.is (Postfix) with SMTP id DF666AB93; Sun, 27 Oct 2002 17:17:39 +0000 (GMT) Content-Type: text/plain; charset="iso-8859-1" From: Baldur Gislason To: Subject: Re: Freebsd multiple gateways Date: Sun, 27 Oct 2002 17:17:39 +0000 X-Mailer: KMail [version 1.3.2] References: <000601c27dd9$15c0b040$0200a8c0@b1> In-Reply-To: <000601c27dd9$15c0b040$0200a8c0@b1> Cc: freebsd-net@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20021027171739.DF666AB93@tesla.foo.is> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The solution is simple. Compile your kernel with: options IPFW2 options IPFIREWALL options IPFIREWALL_DEFAULT_TO_ACCEPT options IPFIREWALL_FORWARD Then, sysctl net.inet.ip.sourceroute=1 Finally: ipfw add fwd 69.1.78.1 ip from 69.1.78.8 to not 69.1.78.8 and you should have a working route from 69.1.78.1 Baldur To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message