From owner-freebsd-net@FreeBSD.ORG Fri Oct 1 20:21:18 2004 Return-Path: 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 B0FFF16A4CE for ; Fri, 1 Oct 2004 20:21:18 +0000 (GMT) Received: from beer.ux6.net (beer.ux6.net [64.62.253.29]) by mx1.FreeBSD.org (Postfix) with SMTP id 83B4343D4C for ; Fri, 1 Oct 2004 20:21:18 +0000 (GMT) (envelope-from miha@ghuug.org) Received: (qmail 33979 invoked by uid 113); 1 Oct 2004 13:21:16 -0700 Received: from 205.177.65.128 by beer.ux6.net (envelope-from , uid 112) with qmail-scanner-1.23 (clamdscan: 0.70. spamassassin: 2.64. Clear:RC:0(205.177.65.128):SA:0(4.7/6.0):. Processed in 3.806583 secs); 01 Oct 2004 20:21:16 -0000 X-Spam-Status: No, hits=4.7 required=6.0 X-Spam-Level: ++++ Received: from unknown (HELO ?192.168.0.3?) (miha@beer.ux6.net@205.177.65.128) by localhost with SMTP; 1 Oct 2004 13:21:12 -0700 From: "Mikhail P." Organization: Ghana Unix Users Group To: freebsd-net@freebsd.org Date: Fri, 1 Oct 2004 20:21:10 +0000 User-Agent: KMail/1.7 References: <20041001232632.Y93609@localhost> In-Reply-To: <20041001232632.Y93609@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200410012021.10200.miha@ghuug.org> cc: Leon Garde Subject: Re: confusion with natd X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: miha@ghuug.org List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Oct 2004 20:21:18 -0000 On Friday 01 October 2004 16:21, Leon Garde wrote: > The other way =A0to route by source is to use a rule like this > > 'ipfw add =A01 fwd =A0192.168.10.2 =A0from 192.168.0.3 to any ' Thanks! That did the job, and now 192.168.0.3 is being routed to the inet v= ia=20 tun0. on HOST_B (local router), rules now look like: ipfw add 1 allow ip from 192.168.0.0/24 to me ipfw add 2 fwd 192.168.10.1 ip from 192.168.0.3 to any if I delete 2nd rule, 192.168.0.3 is being routed as the rest of the LAN. and HOST_A (remote host), has natd running on rl0 + the following routing: route add 192.168.0.0/24 192.168.10.2 kind regards, M.