From owner-freebsd-questions Mon Apr 1 10:23:58 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp-1.visp.telinco.net (smtp-1.visp.telinco.net [212.1.130.1]) by hub.freebsd.org (Postfix) with ESMTP id 923F537B405 for ; Mon, 1 Apr 2002 10:23:46 -0800 (PST) Received: from [212.1.152.129] (helo=me01) by smtp-1.visp.telinco.net with smtp (Exim 3.32 #1) id 16s6Eo-00006N-00; Mon, 01 Apr 2002 19:09:03 +0100 Message-ID: <001401c1d9aa$6e840ca0$0301a8c0@me01> From: "Philip Pereira" To: "Joe & Fhe Barbish" Cc: References: Subject: Gateway setup problem - need a bit more help Date: Mon, 1 Apr 2002 19:23:18 +0100 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0011_01C1D9B2.AD9C6B00" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 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 This is a multi-part message in MIME format. ------=_NextPart_000_0011_01C1D9B2.AD9C6B00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Thanks for all the help so far - am still having trouble. The machines can ping eachother and can ping their network cards respectively. "Can box1 ping ip address of ISP's DNS?" - How on earth do I check this? Or how can I find the ISP's DNS once connected? 'ppp -ddial -nat papchap' allowed my server box (Box1) to connect to the internet, but didn't seem to do any routing for Box2. Attached are my 'ppp.conf' and 'rc.conf' files on my server box - hope they give you the info you need. PLEASE continue to help me!!! With much thanks in advance Phil. ----- Original Message ----- From: "Joe & Fhe Barbish" To: "Philip Pereira" Sent: Sunday, March 31, 2002 11:37 PM Subject: RE: Gateway setup problem > I'm taking a shot in the dark, Do you have gateway_enable="YES" in rc.conf? > > Posting some key files would help a lot. > > /etc/rc.conf /etc/ppp/ppp.conf > > Can box1 ping ip address of box2? > Can box1 ping ip address of ISP's DNS? > > Can box2 ping ip address of box1? > Can box2 ping ip address of ISP's DNS? > > > By the way entering ppp -ddial -nat papchap > > Will do it all with one command > > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Philip Pereira > Sent: Sunday, March 31, 2002 3:58 PM > To: freebsd-questions@FreeBSD.ORG > Subject: Gateway setup problem > > 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 > > ------=_NextPart_000_0011_01C1D9B2.AD9C6B00 Content-Type: application/octet-stream; name="ppp.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ppp.conf" #################################################################=0A= # PPP Sample Configuration File=0A= # Originally written by Toshiharu OHNO=0A= # Simplified 5/14/1999 by wself@cdrom.com=0A= #=0A= # See /usr/share/examples/ppp/ for some examples=0A= #=0A= # $FreeBSD: src/etc/ppp/ppp.conf,v 1.2.2.5 2001/07/13 10:55:23 brian Exp = $=0A= #################################################################=0A= =0A= default:=0A= set log Phase Chat LCP IPCP CCP tun command=0A= ident user-ppp VERSION (built COMPILATIONDATE)=0A= =0A= # Ensure that "device" references the correct serial port=0A= # for your modem. (cuaa0 =3D COM1, cuaa1 =3D COM2)=0A= #=0A= set device /dev/cuaa1=0A= =0A= set speed 115200=0A= set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \=0A= \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"=0A= set timeout 180 # 3 minute idle timer (the default)=0A= enable dns # request DNS info (for resolv.conf)=0A= =0A= =0A= papchap:=0A= #=0A= # edit the next three lines and replace the items in caps with=0A= # the values which have been assigned by your ISP.=0A= #=0A= =0A= set phone 02087810700=0A= set authname pp003a8723=0A= set authkey ewtrvgay=0A= =0A= set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0=0A= add default HISADDR # Add a (sticky) default route=0A= ------=_NextPart_000_0011_01C1D9B2.AD9C6B00 Content-Type: application/octet-stream; name="rc.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="rc.conf" =0A= # -- sysinstall generated deltas -- # Sat Mar 23 17:04:25 2002=0A= # Created: Sat Mar 23 17:04:25 2002=0A= # Enable network daemons for user convenience.=0A= # Please make all changes to this file, not to /etc/defaults/rc.conf.=0A= # This file now contains just the overrides from /etc/defaults/rc.conf.=0A= gateway_enable=3D"YES"=0A= hostname=3D"freeserver.wintellect.com"=0A= ifconfig_de0=3D"inet 192.168.1.1 netmask 255.255.255.0"=0A= inetd_enable=3D"YES"=0A= kern_securelevel_enable=3D"NO"=0A= keymap=3D"uk.iso"=0A= linux_enable=3D"YES"=0A= moused_enable=3D"YES"=0A= nfs_client_enable=3D"YES"=0A= nfs_reserved_port_only=3D"YES"=0A= nfs_server_enable=3D"YES"=0A= saver=3D"logo"=0A= sendmail_enable=3D"YES"=0A= sshd_enable=3D"YES"=0A= usbd_enable=3D"YES"=0A= ------=_NextPart_000_0011_01C1D9B2.AD9C6B00-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message