I'd like to have my ppp connection running all the time.
Need a way to make sure it is restarted if for some reason the
connection drops.
Thanx
Fred
Hey Fred,
Netcarrier frowns on forced dialup connections. Here is a paragraph from
their TERMS OF SERVICE page. Why do you think that you should hog a
connection so other users can't get on?
..........
(6) Dial-up connections: The customer may not use any device or
program that causes the connection to remain established (forced)
during the customers absence from direct interactive operation of
customer's computer or other network connection device. In short, the
customer may stay connected as long as he/she is interacting with the
connecting device, forced connections are not permitted. NetCarrier
reserves the right to disconnect any dial-up connection that has been
on-line for more than six (6) hours of continuous use, whenever it
appears that a connection is forced or unattended, for required
maintenance purposes or for any other reason NetCarrier deems
appropriate and/or necessary. NetCarrier also reserves the right to
disconnect a user if that user exceeds the number of simultaneous
connections that he/she are permitted. NetCarrier also reserves the
right, at its discretion, to suspend the customer's dial-up privilege
upon repeated violations of the above rules or terminate service
without reimbursement.
>I'd like to have my ppp connection running all the time.
>
>Need a way to make sure it is restarted if for some reason the
>connection drops.
I whipped up a quick script which runs off cron every half-hour:
if ifconfig | grep 139.130. >/dev/null ; then
exit
fi
/usr/sbin/ppp-go
echo -n "Line dropped in previous hour. Redialed " >>/dialouts 2>&1
date >>/dialouts 2>&1
exit
Change the 139.130. to whatever static IP your ISP uses at their end of a
successful connection.
George
Fred Forester <ffo...@netcarrier.com> wrote in message
news:srn4jo6...@corp.supernews.com...
I do something similar at home ... though my ISP doesn't have the conditions
mentioned in the previous posting :)
Edit your /etc/ppp/options file and add in two lines:
persist
holdoff 0
This will get ppp to reconnect immediately when you are disconnected.
Let me know how you go.
Regards,
Scott
"George Georgakis" <ge...@tripleg.GOAWAYSPAMMERS.net.au> wrote in message
news:8FAC5BC89geegs...@139.130.239.94...
> ffo...@netcarrier.com (Fred Forester) wrote in
> <srn4jo6...@corp.supernews.com>:do
>I do something similar at home ... though my ISP doesn't have the conditions
>mentioned in the previous posting :)
>
>Edit your /etc/ppp/options file and add in two lines:
>
>persist
>holdoff 0
>
>This will get ppp to reconnect immediately when you are disconnected.
A warning: I whipped up my script for a reason. I wanted to avoid using
persist.
The pppd persist option will _immediately_ redial if the line drops. This is
sometimes not a good idea. If there's a problem at the ISP end, and if the
calls connect and then immediately drop, your phone bill will be horrendous.
Take my advice. Use my script or something similar running off cron. By doing
so, at worst you will only get charged for two dropped calls per hour. Sounds
better than several hundred, doesn't it?
Your choice.
George