suggested patch for small user ppp annoyance
Once in a while, user ppp is killed rather abruptly and it leaves a diagnostic socket behind, which blocks the creation of a diagnostic socket after reboot. Anyway, I propose adding another variable to rc.conf, something along the lines of the three patches here. The default value for pppctl_socket would be NO or just "". In my case however, I'll set it to "/var/ppp/ppp". Whaddayall think? --- usr/src/etc/defaults/rc.conf.orig Sun Oct 6 02:21:33 2002 +++ usr/src/etc/defaults/rc.confSun Oct 6 12:59:53 2002 @@ -115,6 +115,7 @@ ppp_nat="YES" # Use PPP's internal network address translation or NO. ppp_profile="papchap" # Which profile to use from /etc/ppp/ppp.conf. ppp_user="root"# Which user to run ppp as +pppctl_socket="NO" # Delete old pppctl diagnostic socket at boot (or NO). ### Network daemon (miscellaneous) ### syslogd_enable="YES" # Run syslog daemon (or NO). --- usr/src/etc/rc.d/ppp-user.orig Sun Oct 6 01:58:05 2002 +++ usr/src/etc/rc.d/ppp-user Sun Oct 6 12:59:17 2002 @@ -15,7 +15,16 @@ start_cmd="ppp_start" stop_cmd=":" ppp_start() -{ +{ + # Check for orphaned pppctl diagnostic socket, delete it. + [ "${pppctl_socket}" ] && case ${pppctl_socket} in + [Nn][Oo]) + # Do nothing + ;; + *) + [ -S "${pppctl_socket}" ] && rm ${pppctl_socket} + esac + # Establish ppp mode. # if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \ --- usr/src/etc/rc.network.orig Sat Sep 21 01:36:18 2002 +++ usr/src/etc/rc.network Sun Oct 6 12:57:29 2002 @@ -272,6 +272,16 @@ network_pass1() { # case ${ppp_enable} in [Yy][Ee][Ss]) + # Check for orphaned pppctl diagnostic socket + [ "${pppctl_socket" ] && case ${pppctl_socket} in + [Nn][Oo]) + # Don't do anything + ;; + *) + # Delete socket if it still exists + [ -S "${pppctl_socket}" ] && rm ${pppctl_socket} + esac + # Establish ppp mode. # if [ "${ppp_mode}" != "ddial" -a "${ppp_mode}" != "direct" \ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: USER PPP
better yet why not have your email client automatically download your email every 4 minutes... Leif Neland wrote: > On Wed, 9 Aug 2000, justin wrote: > > > Hey fellas... > > > > What I would like to do right now, however, is guarantee that > > anytime, anyday, barring a problem with my ISP, that my box is > > connected to the internet. I have it currently setup to dial the > > internet when it boots and that seems, so far to work ok. My problem > > you ask? My ISP implements a 5 minute no transfer policy, they > > disconnect my connection after 5 minutes of 'idling'. What I would > > like to do is have some kind of check to verify if I am still > > connected to the internet and if not, execute it. I was thinking some > > type of script running from crontab every 5 minutes. If I am not > > connected, then automatically reconnect to the internet. > > > Why do you want to be online all the time? Are you running a server which > should be accessible from the internet? > Do you have adsl or the like available? > > Perhaps we will see questions on the radius- or isp-lists: > > How do I disconnect an user when the traffic is below a certain limit? > How do I limit the number of connects daily from an user? > How do I limit the number of minutes daily per user? > > Leif > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-current" in the body of the message -- Cheers, Mikel +~+ | Optimized Computer Solutions, Inchttp://www.ocsny.com | 39 W14th Street, Suite 203 212 727 2238 x132 | New York, NY 10011 +~+ begin:vcard n:King;Mikel tel;fax:2124638402 tel;home:http://www.upan.org tel;work:2127272100 x-mozilla-html:TRUE org:Optimized Computer Solutions version:2.1 email;internet:[EMAIL PROTECTED] title:Director of Network Operations & Technology adr;quoted-printable:;;39 W14th St.=0D=0ASte 203;New York;NY;10011;US note;quoted-printable:fBSD, PHP, MySql and OCS Rule!!!=0D=0A=0D=0AGoal is to be MS free by the end of 2k. x-mozilla-cpt:;7312 fn:Mikel King end:vcard
Re: USER PPP
On Wed, 9 Aug 2000, justin wrote: > Hey fellas... > > What I would like to do right now, however, is guarantee that > anytime, anyday, barring a problem with my ISP, that my box is > connected to the internet. I have it currently setup to dial the > internet when it boots and that seems, so far to work ok. My problem > you ask? My ISP implements a 5 minute no transfer policy, they > disconnect my connection after 5 minutes of 'idling'. What I would > like to do is have some kind of check to verify if I am still > connected to the internet and if not, execute it. I was thinking some > type of script running from crontab every 5 minutes. If I am not > connected, then automatically reconnect to the internet. > Why do you want to be online all the time? Are you running a server which should be accessible from the internet? Do you have adsl or the like available? Perhaps we will see questions on the radius- or isp-lists: How do I disconnect an user when the traffic is below a certain limit? How do I limit the number of connects daily from an user? How do I limit the number of minutes daily per user? Leif To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: USER PPP
[Wrap text at 72 columns.] On Wed, 9 Aug 2000, justin wrote: >What I would like to do right now, however, is guarantee that anytime, anyday, >barring a problem with my ISP, that my box is connected to the internet. I have it >currently setup to dial the internet when it boots and that seems, so far to work ok. >My problem you ask? My ISP implements a 5 minute no transfer policy, they disconnect >my connection after 5 minutes of 'idling'. What I would like to do is have some kind >of check to verify if I am still connected to the internet and if not, execute it. I >was thinking some type of script running from crontab every 5 minutes. If I am not >connected, then automatically reconnect to the internet. Read the ppp(8) manpage and you will discover the -ddial flag which implements the functionality you have discussed. It would probably be more advisable to use the -auto flag though, but that's your own decision to make. Read the manpage. This is really a -questions issue. Now you know, don't ask questions like this here again, it's the wrong place for it. Read the mailing list charters at: http://www.freebsd.org/handbook/eresources.html#ERESOURCES-MAIL for more information. Brandon D. Valentine -- bandix at looksharp.net | bandix at structbio.vanderbilt.edu "Truth suffers from too much analysis." -- Ancient Fremen Saying To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
Re: USER PPP
On Wed, Aug 09, 2000 at 07:17:37PM -0500, justin wrote: > Hey fellas... > > Allright, here is the situation. I just had a second phone line installed in my >house, a POTS (plain old telephone service) line. I have plugged it directly into my >FreeBSD 4.1-STABLE workstation/server. I allready have PPP setup and when I execute >it, it runs fine. Now then, what I would eventually like to do is have all of my >windows based machines connect to this one and use it as a gateway for internet >traffic. However, that will come later. > > What I would like to do right now, however, is guarantee that anytime, anyday, >barring a problem with my ISP, that my box is connected to the internet. I have it >currently setup to dial the internet when it boots and that seems, so far to work ok. >My problem you ask? My ISP implements a 5 minute no transfer policy, they disconnect >my connection after 5 minutes of 'idling'. What I would like to do is have some kind >of check to verify if I am still connected to the internet and if not, execute it. I >was thinking some type of script running from crontab every 5 minutes. If I am not >connected, then automatically reconnect to the internet. > > Now there is another possible solution I cannot find an answer to. Is there a >BSD option to 'keep-alive' the connection so I do not time out? I would prefer not to >leave an X session opening refreshing CNN every five minutes :P > Firstly, please set your mailer to wrap lines at ~70 chars please. Add `` set reconnect'' to /etc/ppp/ppp.conf. From the manpage: set reconnect timeout ntries This command tells ppp to re-establish the connection ntries times on loss of carrier with a pause of timeout seconds before each try.For example, > Your help and/or scripts are welcome :) > > Justin W. Pauler > JWPages Web Development > [EMAIL PROTECTED] > > -- 4.4 - The number of the Beastie 51.44°N FreeBSD - The Power To Serve http://www.freebsd.org 2.057°W My Webpage http://ukug.uk.freebsd.org/~mark mailto:[EMAIL PROTECTED]http://www.radan.com To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
USER PPP
Hey fellas... Allright, here is the situation. I just had a second phone line installed in my house, a POTS (plain old telephone service) line. I have plugged it directly into my FreeBSD 4.1-STABLE workstation/server. I allready have PPP setup and when I execute it, it runs fine. Now then, what I would eventually like to do is have all of my windows based machines connect to this one and use it as a gateway for internet traffic. However, that will come later. What I would like to do right now, however, is guarantee that anytime, anyday, barring a problem with my ISP, that my box is connected to the internet. I have it currently setup to dial the internet when it boots and that seems, so far to work ok. My problem you ask? My ISP implements a 5 minute no transfer policy, they disconnect my connection after 5 minutes of 'idling'. What I would like to do is have some kind of check to verify if I am still connected to the internet and if not, execute it. I was thinking some type of script running from crontab every 5 minutes. If I am not connected, then automatically reconnect to the internet. Now there is another possible solution I cannot find an answer to. Is there a BSD option to 'keep-alive' the connection so I do not time out? I would prefer not to leave an X session opening refreshing CNN every five minutes :P Your help and/or scripts are welcome :) Justin W. Pauler JWPages Web Development [EMAIL PROTECTED]
Re: user-ppp, logging what triggered call
Leif Neland wrote: > Can user-ppp do that? > Looking through the manpage, it can't, but... "set log +tcp/ip" and then grep logs for string containing "DIAL". -Maxim To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message
user-ppp, logging what triggered call
Can user-ppp do that? Looking through the manpage, it can't, but... Leif To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message