Date: Mon, 12 Apr 1999 00:01:35 +1200 From: Andrew McNaughton <andrew@squiz.co.nz> To: Mark Mayo <mark@vmunix.com> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: ppp script for collecting POP stats Message-ID: <199904111201.AAA16690@aniwa.sky> In-Reply-To: Your message of "Wed, 07 Apr 1999 23:34:17 -0400." <19990407233417.A26998@vmunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> Hey there. Anyone know of any scripts published already that > can use freebsd's 'ppp' or 'pppd' to automate dialing a bunch > of POP sites. I just need something simple - i.e. dial about > 30 phone numbers one after the other, continuously, and report > basic stats. > > Wrapping ppp doesn't look to tough, but before I dig in, I figured > someone must have written this already! :-) > > TIA, > -Mark Automating ppp connections is trivial using pppctl. You'll want a line in your /etc/ppp/ppp.conf default section like so: default: set socket /var/run/ppp_socket password 0660 whether you want group access depends on your setup. Alternatively you can use a TCP socket which means the connection can be opened from another machine, but there's a security issue, and I think it's better to provide a more limited interface to remote machines (ie less control over routes). You can write a script to automate multiple connections along these lines: #!/bin/sh for site in x y z do cat password | pppctl /var/run/ppp_socket "delete all;close;load $site;dial" do your thing done cat password | pppctl /var/run/ppp_socket "delete all;close" -- ----------- Andrew McNaughton andrew@squiz.co.nz http://www.newsroom.co.nz/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199904111201.AAA16690>