From owner-freebsd-questions Wed Sep 10 23:39:57 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id XAA02145 for questions-outgoing; Wed, 10 Sep 1997 23:39:57 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id XAA02127 for ; Wed, 10 Sep 1997 23:39:53 -0700 (PDT) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id HAA05357; Thu, 11 Sep 1997 07:35:37 +0100 (BST) Message-Id: <199709110635.HAA05357@awfulhak.demon.co.uk> X-Mailer: exmh version 2.0zeta 7/24/97 To: Antonio Bemfica cc: freebsd-questions@FreeBSD.ORG Subject: Re: FreeBSD box as a router using ppp In-reply-to: Your message of "Wed, 10 Sep 1997 22:28:19 -0300." Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Date: Thu, 11 Sep 1997 07:35:36 +0100 From: Brian Somers Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by hub.freebsd.org id XAA02135 Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > I have a FreeBSD box at home which connects via user ppp to the net. It > all works fine, I can reach and be reached. I use a fixed IP for dialing > out. > > I also have a Win95 machine at home, and I would like to have it use the > FreeBSD box to access the net. I got network cards for both PC's and they > can ping eachother, I can telnet to the Unix side from the Windows PC. > > I understand that I have to set gateway_enable="YES" on the FreeBSD side, > and also set: > > ifconfig_ed1="inet A.B.C.D netmask 255.255.255.0" > ifconfig_lo0="inet 127.0.0.1" > ifconfig_tun0="inet X.Y.W.Z X.Y.W.1 netmask 0xffffff00" Read the handbook. It explains why your ifconfig_tun0 line is bogus. You can get at all the ppp docs from http://www.awfulhak.org/ppp.html. > On the Windows side I would set the IP to A.B.C.E and set the Gateway to > be the IP I assigned for ed1, A.B.C.D - the problem is I don't have two IP > addresses on a different network. I read the FAQ and the handbook but > couldn't figure how to do it. Any help would be appreciated. Use 10.0.0 as A.B.C. Check /etc/hosts for the IPs that are reserved for internal use. > Antonio > -- -------------------------------------------------------------------------- > Antonio Bemfica, DalTech, Dalhousie U. | Hay épocas hechas para diezmar los > => Support free software, use FreeBSD | rebaños, confundir las lenguas > => http://www.FreeBSD.org | y dispersar las tribus. A.C. > > -- Brian , Don't _EVER_ lose your sense of humour....