From owner-freebsd-net@FreeBSD.ORG Thu Jun 5 21:01:32 2008 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 77384106567A for ; Thu, 5 Jun 2008 21:01:32 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from shiva.jussieu.fr (shiva.jussieu.fr [134.157.0.129]) by mx1.freebsd.org (Postfix) with ESMTP id 0B22C8FC0A for ; Thu, 5 Jun 2008 21:01:31 +0000 (UTC) (envelope-from arno@heho.snv.jussieu.fr) Received: from heho.snv.jussieu.fr (heho.snv.jussieu.fr [134.157.184.22]) by shiva.jussieu.fr (8.14.2/jtpda-5.4) with ESMTP id m55L1QxZ053153 ; Thu, 5 Jun 2008 23:01:27 +0200 (CEST) X-Ids: 168 Received: from heho.snv.jussieu.fr (localhost [127.0.0.1]) by heho.snv.jussieu.fr (8.13.3/jtpda-5.2) with ESMTP id m55L1OVf003613 ; Thu, 5 Jun 2008 23:01:24 +0200 (MEST) Received: (from arno@localhost) by heho.snv.jussieu.fr (8.13.3/8.13.1/Submit) id m55L1J00003610; Thu, 5 Jun 2008 23:01:19 +0200 (MEST) (envelope-from arno) To: Bakul Shah References: <20080605000622.6481A5B46@mail.bitblocks.com> From: "Arno J. Klaassen" Date: 05 Jun 2008 23:01:18 +0200 In-Reply-To: <20080605000622.6481A5B46@mail.bitblocks.com> Message-ID: Lines: 34 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (shiva.jussieu.fr [134.157.0.168]); Thu, 05 Jun 2008 23:01:27 +0200 (CEST) X-Virus-Scanned: ClamAV 0.92/7373/Thu Jun 5 18:55:14 2008 on shiva.jussieu.fr X-Virus-Status: Clean X-Miltered: at jchkmail.jussieu.fr with ID 48485426.002 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)! X-j-chkmail-Enveloppe: 48485426.002/134.157.184.22/heho.snv.jussieu.fr/heho.snv.jussieu.fr/ X-j-chkmail-Score: MSGID : 48485426.002 on jchkmail.jussieu.fr : j-chkmail score : . : R=. U=. O=. B=0.013 -> S=0.013 X-j-chkmail-Status: Ham Cc: Petar Bogdanovic , net@freebsd.org Subject: Re: IP-forwarding (help) X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 05 Jun 2008 21:01:32 -0000 Bakul Shah writes: > On 05 Jun 2008 01:33:05 +0200 "Arno J. Klaassen" wrote: > > Petar Bogdanovic writes: > > > > > On Wed, Jun 04, 2008 at 11:06:01PM +0200, Arno J. Klaassen wrote: > > > > > > > > [ problem description ] > > I feel this is /me still not fully understand routing tables. > > This is your topology, right? yes > test-box main-box gateway > [192.168.1.1]------[192.168.1.254 172.16.1.240]-------[172.16.1.254 > > On the test-box set default route to 192.168.1.254. > On the main-box set net.inet.ip.forwarding 1 but remove the > static routes. > > But how would machines on the 172.16.1.0/24 net know they > must send packets for 192.168.1.0/24 to 172.16.1.240? For > that you need static routes on all the machines on > 172.16.1.0/24 that need to read your test box. Yes, of course ... Thank you very much (I felt it were a simple problem, but somehow blocked finding the solution). Best regards, Arno