From owner-freebsd-questions Fri Feb 16 13:30:27 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mtiwmhc25.worldnet.att.net (mtiwmhc25.worldnet.att.net [204.127.131.50]) by hub.freebsd.org (Postfix) with ESMTP id 741E437B684 for ; Fri, 16 Feb 2001 13:30:04 -0800 (PST) Received: from sisyphus2 ([12.72.232.77]) by mtiwmhc25.worldnet.att.net (InterMail vM.4.01.03.10 201-229-121-110) with SMTP id <20010216213002.KVPX2326.mtiwmhc25.worldnet.att.net@sisyphus2>; Fri, 16 Feb 2001 21:30:02 +0000 Message-ID: <002201c0985f$b4f45380$4de8480c@sisyphus2> Reply-To: "3phase" From: "3phase" To: "Salvo Bartolotta" Cc: References: <001101c0968e$42f74e40$d9a1480c@sisyphus2> <20010214.23520200@bartequi.ottodomain.org> Subject: Routing problem (Was: Re: (longish) CHAP will not work) Date: Fri, 16 Feb 2001 13:29:34 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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 X-Loop: FreeBSD.ORG ----- Original Message ----- From: "Salvo Bartolotta" To: "3phase" Cc: Sent: Wednesday, February 14, 2001 03:52 PM Subject: Re: (longish) CHAP will not work >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 2/14/01, 2:57:39 PM, "3phase" wrote regarding CHAP will not work: > HELP! PLEASE! I am running 4.2-S (sources as of February 7, 2001) and right now I am surfing the 'Net after authenticating via the CHAP mechanism. I think I have found part of the problem - routing and the ISP. :( Using my backup ISP allowed me to log on but that did not solve the CHAP problem. It does not work with either ISP but the backup ISP at least allows a manual login with username and password. After the login the system trys to set up ppp and fails. Routing. The system warns tun0 does not exist when I first boot up. It does exist but running ifconfig confirms it does not exist as far as the system is concerned. The ifconfig tun0 line in /etc/rc.conf is being ignored. So I booted from the GENERIC kernel, turned off all the appropriate toggles in /etc/rc.conf and /etc/defaults/rc.conf and tried again. Same thing, so I went back to my custom kernel. :| After running ppp interactive the tun0 device will show up because the ppp.conf file has: set device /dev/cuaa1 which apparently links tun0 to the system and set ifaddr 0 0 add default HISADDR which supposedly allows setting all the routing information. The ppp.log still shows ppp and my ISP disconnecting after the link negotiation fails. Neither side receives any response and they give up but now the tun0 device exists for the system. # ifconfig sl0: flags=c010 mtu 552 ppp0: flags=8010 mtu 1500 ppp1: flags=8010 mtu 1500 lo0: flags=8049 mtu 16384 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 inet6 ::1 prefixlen 128 inet 127.0.0.1 netmask 0xff000000 gif0: flags=8010 mtu 1280 gif1: flags=8010 mtu 1280 gif2: flags=8010 mtu 1280 gif3: flags=8010 mtu 1280 stf0: flags=8000 mtu 1280 faith0: flags=8000 mtu 1500 ds0: flags=8008 mtu 65532 tun0: flags=8010 mtu 1500 The docs say User ppp has to be started before natd. But natd is configured before user ppp in /etc/defaults/rc.conf. I tried moving the whole User ppp section before the natd section hoping that would work but it did not. # netstat -i Routing tables Internet: Destination Gateway Flags Netif Expire localhost localhost UH lo0 ^^^^^^^^ Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%lo0 fe80::1%lo0 Uc lo0 ff01:: ::1 U lo0 ff02::%lo0 fe80::1%lo0 UC lo0 It looks to me as if tun0 is not being used and there is no external interface. # routed -T tracefile shows routed struggling valiently to tell me it can not find a route to the ISP nameserver (probably because I am not actually on-line :)) then it sleeps for a while. # netstat -r Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll sl0* 552 0 0 0 0 0 ppp0* 1500 0 0 0 0 0 ppp1* 1500 0 0 0 0 0 lo0 16384 0 0 0 0 0 lo0 16384 fe80:4::1 fe80:4::1 0 0 0 0 0 lo0 16384 ::1 ::1 0 0 0 0 0 lo0 16384 127 localhost 0 0 0 0 0 gif0* 1280 0 0 0 0 0 gif1* 1280 0 0 0 0 0 gif2* 1280 0 0 0 0 0 gif3* 1280 0 0 0 0 0 stf0* 1280 0 0 0 0 0 faith 1500 0 0 0 0 0 ds0* 65532 0 0 0 0 0 tun0* 1500 0 0 0 0 0 The other part of the problem is I keep getting side-tracked reading docs, This List, source code and configuring other parts of the system without crashing or destroying any existing data. So far, so good. :) I haven't really needed to use the Internet because most of the docs and information for using the system are included in the install. This is the type of system I really wish I had twenty years ago and there are some real gems in there along with the pabos. -3p To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message