From owner-freebsd-doc Mon May 12 09:33:55 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id JAA19995 for doc-outgoing; Mon, 12 May 1997 09:33:55 -0700 (PDT) Received: from awfulhak.demon.co.uk (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id JAA19980 for ; Mon, 12 May 1997 09:33:48 -0700 (PDT) Received: from awfulhak.demon.co.uk (localhost.lan.awfulhak.org [127.0.0.1]) by awfulhak.demon.co.uk (8.8.5/8.8.5) with ESMTP id RAA10749; Mon, 12 May 1997 17:32:38 +0100 (BST) Message-Id: <199705121632.RAA10749@awfulhak.demon.co.uk> X-Mailer: exmh version 1.6.9 8/22/96 To: Dirk-Willem van Gulik cc: freebsd-doc@FreeBSD.ORG, brian@awfulhak.org, nik@blueberry.co.uk Subject: Re: PPP (user side) In-reply-to: Your message of "Sun, 11 May 1997 17:09:06 +0200." <3375E112.103F@jrc.it> Mime-Version: 1.0 Content-Type: text/plain Date: Mon, 12 May 1997 17:32:38 +0100 From: Brian Somers Sender: owner-doc@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk > Is someone currently giving the user-side PPP section > an over haul ? I just worked my way trhough it; as I > was moving form kernel ppp to user ppp; and found > the following things a bit lacking... I guess I've got the hat on :) > Reading throuhg the ppp, handbook and ppp.conf.example > files I missed the very common case of having a FreeBSD > box acting as a dialin for a normal flat LAN, and where > you want the dialin client to be proxy-ed onto the LAN > with no routing or anything fancy. > > If so; please consider these additions.. (or let me > know where to send them...) The got to the right place :) > 13.1.2 > If you plan to act as a PPP server or gateway > between the machines connected over the PPP > lines and your local area (ether)network; you > will also have to enable the GATEWAY in the > kernel; and quite possible the IPFIREWALL. > > Just add the lines > > options GATEWAY > # options IPFIREWALL [.....] I've added a reference to the firewalls section, but "options GATEWAY" is no longer required. If you want to forward packets (this is what options gateway does), you just need to set the sysconfig (now rc.conf) variable. In your suggested files below, the "enable proxy" circumvents the need for forwarding (enable proxy does the forwarding inside ppp). > 13.1.3 Additional check... > > Using 'ifconfig -a' should give an entry like > > tun0: flags=8050 mtu 1500 Added. > 13.1.X Specific to dial-in user-PPP server on a normal > LAN (with not nessesarily routing) where you want > the LAN connected machine to fully proxy for the > connected PPP box. > [.....] Most of this stuff has turned into links to other bits of the handbook. > Configurations used > 1. Server-side kernel config > tun 1 , GATEWAY > 2. Client-side kernel config [.....] > And that is it. Hope this helps someone. Should do. Thanks for your contribution. > Dw. > > http://ewse.ceo.org http://enrm.ceo.org > DWvGulik@Dialis.xs4all.nl Dirk.vanGulik@jrc.it > +39 332 78 0014 +39 332 78 9549 > fax +39 332 78 9185 > > ISEI/ESBA; The Center For Earth Observation > Joint Research Centre of the European Communities, Ispra, Italy -- Brian , Don't _EVER_ lose your sense of humour....