From owner-freebsd-questions Sun Mar 31 15: 0:18 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailhost.gu.edu.au (kraken.itc.gu.edu.au [132.234.250.31]) by hub.freebsd.org (Postfix) with ESMTP id 40C4437B419 for ; Sun, 31 Mar 2002 15:00:12 -0800 (PST) Received: from kurango.cit.gu.edu.au (daemon@kurango.cit.gu.edu.au [132.234.86.1]) by mailhost.gu.edu.au (8.10.1/8.10.1) with ESMTP id g2VN0Bi13073; Mon, 1 Apr 2002 09:00:11 +1000 (EST) Received: from localhost (steve@localhost) by kurango.cit.gu.edu.au (8.12.2/8.12.2) with SMTP id g2VN06mT000604; Mon, 1 Apr 2002 09:00:06 +1000 (EST) Date: Mon, 1 Apr 2002 09:00:06 +1000 (EST) From: Steven Goodwin To: Philip Pereira Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Gateway setup problem In-Reply-To: <000e01c1d8f6$bc7197c0$bc9801d4@wintellect.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 You need to have a line in your gateway's rc.conf that reads gateway_enable="YES" that should set things up fine next time you reboot. If you don't feel like rebooting, try sysctl net.inet.ip.forwarding=1 at the command line. Good luck Steve On Sun, 31 Mar 2002, Philip Pereira wrote: > Hey brainy people of FreeBSD, > > I am having great trouble setting up a gateway. Here's what I have and how > it's set up: > > Box 1 (The server - and the one I want as the gateway) > hostname : freeserver.wintellect.com > IP address : 192.168.1.1 > OS : FreeBSD > > Box 2 (The working box) > hostname : freework.wintellect.com > IP address : 192.168.1.2 > OS : FreeBSD > > I can connect to the Internet on Box1 using: > > bash> ppp -nat > ppp> dial papchap > > which gives me a tunnel connection (tun0) by default, and then I use > netscape navigator. Box2 has a line in the /etc/rc.conf file to define the > default router as follows: > defaultrouter="192.168.1.1" > > The problem is that Box2 can't connect to the internet via Box1 - where am I > going wrong? > > The 'netstat -r' command from Box1 when it is connected to the internet is > as follows: > > Internet: > Destination Gateway Flags Refs Use > Netif Expire > default 10.0.0.2 UGSc 0 0 > tun0 > 10.0.0.2 213-48-248-201.cro UH 2 0 > tun0 > localhost localhost UH 1 > 26 lo0 > 192.168.1 link#1 UC 2 0 > de0 > freework UHLW 32 32 de0 > 1087 > 192.168.1.255 ff:ff:ff:ff:ff:ff UHLWb 1 5 > de0 > > PLEASE HELP ME!!!!! AM GOING MAD!!! > > Many thanks in advance > > Phil. > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message