Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Feb 2005 14:37:00 -0600
From:      "Andrew L. Gould" <algould@datawok.com>
To:        freebsd-questions@freebsd.org
Cc:        Jonathan Chen <jonc@chen.org.nz>
Subject:   Re: PPP Connection.
Message-ID:  <200502251437.00381.algould@datawok.com>
In-Reply-To: <200502251512.42796.hindrich@worldchat.com>
References:  <200502251211.34426.hindrich@worldchat.com> <20050225190906.GA58614@osiris.chen.org.nz> <200502251512.42796.hindrich@worldchat.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Friday 25 February 2005 02:12 pm, Peterhin wrote:
> On February 25, 2005 14:09, you wrote:
> > On Fri, Feb 25, 2005 at 12:11:34PM -0500, Peterhin wrote:
> > > I have 5.3 installed, and am trying to get my dial-up going.
> > > In the handbook under 21.2.1.2 when 	I try to do a
> > > 'cd /dev'
> > > 'sh MAKEDEV tun0'
> > >  I get "can't open makedev: No such file or directory"
> >
> > The 5.x series uses a devfs filesystem which creates devices on the
> > fly. You don't have to make the devices manually anymore.
> >
> > > I also tried using G. Lehey instructions from his book, I get to
> > > the point where  the external modem dials at reboot, but no
> > > connection. I have looked in the log files and it looks like
> > > Authentication failure is my problem.
>
> OK, finger trouble on my part I have a connection now.
>
> > Username and password is incorrect? Post us the actual contents of
> > the logs and your ppp.conf (with the username/password blanked out)
> > and we will have a better idea just what is going wrong with your
> > system.
>
> I have a good connection however if I try to disconnect by typing
> at the 'PPP ON localhost>' close
>             'PPP ON Localhost>
> or use the 'q'
> I get back to the #
> however the modem has not disconnected. I did a 'ping' to confirm on
> (ttyv1)

Is ppp still active in the background?  What does 'ps ax | grep ppp' 
return?

I used to kill ppp using a "hangup" python script:


#!/usr/local/bin/python
# /usr/local/bin/hangup.py

import os, string, sys

a = 'ps ax | grep ppp'
b = os.popen(a).readlines()
c = b[0]
d = string.split(c)
os.popen('kill ' + d[0])



Best regards,

Andrew Gould



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200502251437.00381.algould>