From owner-freebsd-questions Mon Sep 24 11:39:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from out4.mx.nwbl.wi.voyager.net (out4.mx.nwbl.wi.voyager.net [169.207.1.77]) by hub.freebsd.org (Postfix) with ESMTP id AA31237B61F for ; Mon, 24 Sep 2001 11:39:44 -0700 (PDT) Received: from shell.core.com (IDENT:2525@shell.voyager.net [169.207.1.89]) by out4.mx.nwbl.wi.voyager.net (8.11.1/8.11.1) with ESMTP id f8OIdh947642; Mon, 24 Sep 2001 13:39:43 -0500 (CDT) Received: (from dpoland@localhost) by shell.core.com (8.11.6/8.11.6/1.3) id f8OIdgH11944; Mon, 24 Sep 2001 13:39:42 -0500 (CDT) Date: Mon, 24 Sep 2001 13:39:42 -0500 From: Doug Poland To: "P. U. (Uli) Kruppa" Cc: Joe Clarke , FreeBSD User Questions List Subject: Re: Gateway? (I read all TFM's - really!) Message-ID: <20010924133942.A11203@polands.org> References: <20010924135500.M68286-100000@shumai.marcuscom.com> <20010924182733.K977-100000@big> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010924182733.K977-100000@big>; from root@pukruppa.de on Mon, Sep 24, 2001 at 06:33:08PM +0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Mon, Sep 24, 2001 at 06:33:08PM +0000, P. U. (Uli) Kruppa wrote: > On Mon, 24 Sep 2001, Joe Clarke wrote: > > > Did you put the following in /etc/rc.conf: > > > > gateway_enable="YES" > > > > on big? > Yes! > > > What do you have configured on small with reagrds to /etc/resolv.conf > > (i.e. DNS servers)? > domain pukruppa.de > nameserver 192.168.10.1 > > (My machines' full names are small.pukruppa.de and > big.pukruppa.de , these names also can be pinged by both.) > > Uli. > big needs to run some type of Network Address Translation in order to map unroutable IPs (192.168.255.255) to public IP. You can do this with ipfw and natd or user-land ppp with -nat argument. HTH -- Doug > > > On Mon, 24 Sep 2001, P. U. (Uli) Kruppa wrote: > > > > > Please could someone tell me THE TRICK: > > > > > > This is my small home-lan: > > > > > > > > > > > > rl0 rl1 rl0 > > > *---------* *----------* > > > | small *-------* big *----* > > > *---------* *----------* | tun0 > > > 192.168.10.2 192.168.10.1 | > > > *---*-------* > > > | DSL-modem *-----* > > > *-----------* | > > > | > > > * > > > internet > > > > > > > > > small and big run FreeBSD4.3-RELEASE . small and big can > > > ping, ftp and telnet each other (by name as well as by > > > IP-address). big can reach the colourful world of the internet. > > > But: small cannot get there. > > > # ping www.freebsd.org > > > will result in > > > cannot resolve www.freebsd.org: hostname lookup failure > > > > > > I will give you the output of big's and small's > > > # netstat -r > > > > > > big: > > > Routing tables > > > > > > Internet: > > > Destination Gateway Flags Refs Use Netif Expire > > > default 217.5.116.17 UGSc 4 383 tun0 > > > localhost localhost UH 0 0 lo0 > > > 192.168.10 link#2 UC 0 0 rl1 > > > 217.5.116.17 pD90172ED.dip.t-di UH 5 0 tun0 > > > > > > small: > > > Routing tables > > > > > > Internet: > > > Destination Gateway Flags Refs Use Netif Expire > > > default big UGSc 0 0 rl0 > > > localhost localhost UH 0 0 lo0 > > > 192.168.10 link#1 UC 1 0 rl0 > > > big 0:50:fc:3a:f1:1a UHLW 1 35 rl0 1200 > > > > > > > > > Thanks for your help. > > > (I hope I did not publish any sensitive data with this.) > > > > > > > > > Uli. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message