From owner-freebsd-questions Thu Sep 25 02:20:16 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id CAA07326 for questions-outgoing; Thu, 25 Sep 1997 02:20:16 -0700 (PDT) Received: from htsa.htsa.hva.nl (htsa.htsa.hva.nl [145.92.3.33]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id CAA07300 for ; Thu, 25 Sep 1997 02:20:03 -0700 (PDT) Received: from htsa.hva.nl (asd03-13.dial.xs4all.nl) by htsa.htsa.hva.nl with ESMTP (1.39.111.2/16.2) id AA268499170; Thu, 25 Sep 1997 11:19:30 +0200 Message-Id: <342A2CD2.FB37F65D@htsa.hva.nl> Date: Thu, 25 Sep 1997 11:20:20 +0200 From: Robin Huiser Reply-To: robinh@htsa.hva.nl X-Mailer: Mozilla 4.02b7 [en] (X11; I; FreeBSD 2.2.2-RELEASE i386) Mime-Version: 1.0 To: "Daniel C. Konnoff" Cc: questions@FreeBSD.ORG Subject: Re: ppp and ed1 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Daniel C. Konnoff wrote: > Hello: > > I have a freebsd 2.2 machine that is connect to my isp through > the ppp interface tun0. There is also an ethernet card in the > machine connected to a local LAN. I would like packets that come > in on the local LAN interface (ed1) to automatically be routed to > the isp through tun0 so that local LAN people may see the isp > also. > How do I set up the correct route? > > Thanks for your time. > > Daniel Konnoff > email: daniel@myson.com.tw You don't. When you start the ppp USER mode program with the following options, ppp will route the packets between the interfaces! Make sure that you have NO routing daemon running at your machine!! /usr/sbin/ppp -auto -alias demand This mode of USER ppp will automatically connect to the internet when necessarily. Greets, -- Robin Huiser ,,, (o o) ()========================oOO==(_)==OOo==========================() Robin Huiser HVA Faculteit Electrotechniek & Informatica E-mail: robinh@htsa.hva.nl Important Unix command: echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq' | dc