From owner-freebsd-questions Sun May 26 23:35:52 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA06597 for questions-outgoing; Sun, 26 May 1996 23:35:52 -0700 (PDT) Received: from who.cdrom.com (who.cdrom.com [204.216.27.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA06554 for ; Sun, 26 May 1996 23:35:47 -0700 (PDT) Received: from hoover.stanford.edu (hoover.Stanford.EDU [36.33.0.99]) by who.cdrom.com (8.6.12/8.6.11) with ESMTP id XAA27497 for ; Sun, 26 May 1996 23:18:02 -0700 Received: from HOOVER.STANFORD.EDU by HOOVER.STANFORD.EDU (PMDF V4.3-10 #13307) id <01I56G20HJKG007N8T@HOOVER.STANFORD.EDU>; Sun, 26 May 1996 23:18:21 -0700 (PDT) Date: Sun, 26 May 1996 23:18:21 -0700 (PDT) From: Annelise Anderson Subject: PPP Server Question To: freebsd-questions@freebsd.ORG Message-id: <01I56G20ICIA007N8T@HOOVER.STANFORD.EDU> X-VMS-To: IN%"freebsd-questions@freebsd.org" X-VMS-Cc: ANDRSN MIME-version: 1.0 Content-type: TEXT/PLAIN; CHARSET=US-ASCII Content-transfer-encoding: 7BIT Sender: owner-questions@freebsd.ORG X-Loop: FreeBSD.org Precedence: bulk I'm trying to get my office machine to function as a ppp server using user ppp (this happens to be the one I got working first). The office machine is running 2.1-STABLE and has options GATEWAY in the kernel; sysctl shows that ip forwarding is turned on. The ppp connection works fine, and I can ping the office machine from home and vice versa. I have an ip address to use for the home machine (and another one if I need it). What I can't do is ping or reach any host beyond the office computer from the computer at home. It seemed from the handbook that running gated would be the right thing to do, so I installed it and changed sysconfig accordingly, turning off routed. So I would appreciate some help; I'd guess there's something wrong with gated.conf. In the following: 36.33.0.163 is the office computer with 3COM509, ep0 36.33.0.1 is the default router in sysconfig 36.33.0.99 is the Hoover VAX 36.33.0.75 is the IP address I'm using for the home computer 36.33.0.157 is another IP address that belongs to me that I haven't used; the kernel ppp description in the handbook suggests it may be necessary to use this second IP address on the office machine somehow Thanks very much. Annelise Here's gated.conf: #gated configuration file #tracing options traceoptions "/var/tmp/gated.output" replace size 100k files 2 general ; # #interfaces { # interface 36.33.0.163 passive ; # interface ep0 passive ; #} ; # configuration for rip protocols rip yes { interface ep0 ripin ripout version 1 ; interface tun ripin ripout version 1 ; traceoptions route ; } ; static { default gateway 36.33.0.1 retain; host 36.33.0.75 gateway 36.33.0.163 retain; } ; # Propagate route out Ethernet interface via RIP export proto rip interface ep0 { proto direct { 36.33.0.163 mask 255.255.0.0 metric 1; } ; } ; # Accept routes import proto rip interface ep0 { all ; } ; Here's ifconfig -a: lp0: flags=8810 mtu 1500 ep0: flags=8843 mtu 1500 inet 36.33.0.163 netmask 0xffff0000 broadcast 36.33.255.255 ether 00:20:af:be:eb:e0 lo0: flags=8009 mtu 16384 inet 127.0.0.1 netmask 0xff000000 ppp0: flags=8010 mtu 1500 sl0: flags=c010 mtu 552 sl1: flags=c010 mtu 552 tun0: flags=8051 mtu 1500 inet 36.33.0.163 --> 36.33.0.75 netmask 0xff000000 And netstat -rn: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 36.33.0.1 UGSc 5 8 ep0 36.33 link#2 UC 0 0 36.33.0.1 0:0:c:2:78:4c UHLW 6 40 ep0 1150 36.33.0.75 36.33.0.163 UH 1 53 tun0 36.33.0.99 aa:0:4:0:1:4 UHLW 1 11 ep0 909 36.33.0.163 0:20:af:be:eb:e0 UHLW 0 0 lo0 127 127.0.0.1 URc 0 0 lo0 127.0.0.1 127.0.0.1 UH 0 0 lo0 224 link#2 UCS 0 0 224.0.0.9 127.0.0.1 UH 0 0 lo0