Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2001 13:29:34 -0800
From:      "3phase" <phase3@worldnet.att.net>
To:        "Salvo Bartolotta" <bartequi@inwind.it>
Cc:        <freebsd-questions@FreeBSD.ORG>
Subject:   Routing problem (Was: Re: (longish) CHAP will not work)
Message-ID:  <002201c0985f$b4f45380$4de8480c@sisyphus2>
References:  <001101c0968e$42f74e40$d9a1480c@sisyphus2> <20010214.23520200@bartequi.ottodomain.org>

next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message ----- 
From: "Salvo Bartolotta" <bartequi@inwind.it>
To: "3phase" <phase3@worldnet.att.net>
Cc: <freebsd-questions@FreeBSD.ORG>
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" <phase3@worldnet.att.net> wrote
regarding CHAP will not work:
>                                         HELP!  PLEASE!
<snip>
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.
<snip>

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<POINTOPOINT,LINK2,MULTICAST> mtu 552
ppp0: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
ppp1: flags=8010<POINTOPOINT,MULTICAST> mtu 1500
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4 
 inet6 ::1 prefixlen 128 
 inet 127.0.0.1 netmask 0xff000000 
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif1: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif2: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
gif3: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=8000<MULTICAST> mtu 1280
faith0: flags=8000<MULTICAST> mtu 1500
ds0: flags=8008<LOOPBACK,MULTICAST> mtu 65532
tun0: flags=8010<POINTOPOINT,MULTICAST> 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  <Link#1>                                   0       0             0       0       0
ppp0* 1500 <Link#2>                                   0       0             0       0       0
ppp1* 1500 <Link#3>                                   0       0             0       0       0
lo0   16384 <Link#4>                                    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  <Link#5>                                     0       0             0       0       0
gif1* 1280  <Link#6>                                     0       0             0       0       0
gif2* 1280  <Link#7>                                     0       0             0       0       0
gif3* 1280  <Link#8>                                     0       0             0       0       0
stf0* 1280  <Link#9>                                     0       0             0       0       0
faith 1500  <Link#10>                                   0       0             0       0       0
ds0*  65532 <Link#11>                                 0       0             0       0       0
tun0* 1500  <Link#12>                                  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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002201c0985f$b4f45380$4de8480c>