Date: Tue, 28 Sep 1999 17:00:35 +0100 From: "Richard Morte" <richard@sinclairassoc.force9.co.uk> To: "Kent Stewart" <kstewart@3-cities.com> Cc: <FreeBSD-questions@FreeBSD.ORG> Subject: RE: pppctl configuration Message-ID: <LOBBKEGHCNEHPLGFIAKPCENACAAA.richard@sinclairassoc.force9.co.uk> In-Reply-To: <37F0CC7E.1D310253@3-cities.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Kent,
Many thanks for your reply. Yes, your suggestion works:
    pppctl /var/run/internet close
I have just recompiled the kernel to cut out all the extraneous stuff and I
discover the original shell scripts now work. Whether this is through the
make depend command or not I have absolutely no idea...
The short script in the pppctl man page is also very useful for showing the
current status of the connection. I just removed the -p '' bit because I
don't use a password to access pppctl.
The other effect of recompiling the kernel is that ppp no longer seems to
get triggered when I use Netscape for local browsing. It behaves itself
until the URL contains http:// etc etc. However, I will still need to do
something about this when I come to set up Apache for the local intranet.
But that's for another day...
Thanks again,
ric
-----Original Message-----
From: Kent Stewart [mailto:kstewart@3-cities.com]
Sent: 28 September 1999 15:11
To: Richard Morte
Subject: Re: pppctl configuration
Richard Morte wrote:
>
> Hi,
>
> I would like to be able to control ppp running in -auto mode by using
> pppctl, but I cannot get it to work properly.
>
> The appropriate entries in ppp.conf appear to be:
>
>  set server /var/run/internet "" 0177   # (taken from the FreeBSD Boook)
This is what I use. I have a section in ppp.conf called pmdemand and
the "set server" line was added at the end of the pmdemand setup. I
invoke "ppp -auto -alias pmdemand" to start ppp.
>
>  or, with a password:
>
>  set server /var/tmp/internet "MySecretPassWord 0177
>
> to close the connection the following can be issued via a shell script:
>
>  #!/bin/sh
>  exec pppctl /var/run/internet set timeout 300\;close
I haven't used this but I have entered "pppctl /var/run/internet
close" on numerous occasions and had it dropped the link.
Kent
>
> But all I get is the message "Socket operation on non-socket". Any ideas
> what else I need to do?
>
> Cheers
>
> ric
>
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-questions" in the body of the message
--
Kent Stewart
Richland, WA
mailto:kstewart@3-cities.com
http://www.3-cities.com/~kstewart/index.html
FreeBSD News http://daily.daemonnews.org/
SETI(Search for Extraterrestrial Intelligence) @ HOME
http://setiathome.ssl.berkeley.edu/
Hunting Archibald Stewart, b 1802 in Ballymena, Antrim Co., NIR
http://www.3-cities.com/~kstewart/genealogy/archibald_stewart.html
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?LOBBKEGHCNEHPLGFIAKPCENACAAA.richard>
