Koozali.org: home of the SME Server

Is There A Way To Connect and Disconnect PPPOE

Woodbuger

Is There A Way To Connect and Disconnect PPPOE
« on: April 19, 2004, 06:09:09 AM »
Like the subject says. Anyone know of an rpm for SME 6.01 that allows the admin to connect and disconnect  dsl internet at will? Something similar to the dialup config in SME 6.01 custom iso.

Woodbuger

Is There A Way To Connect and Disconnect PPPOE
« Reply #1 on: April 20, 2004, 01:29:02 AM »
I would really like to leave my sme box on all the time but I dont want to stay connected to wan.
No one has any suggestions?

Kelvin

Is There A Way To Connect and Disconnect PPPOE
« Reply #2 on: April 20, 2004, 02:10:23 PM »
Hi,

No really what you want, but I have one site that "graduated" from modem dial-up to ADSL. Under their modem system, they used an electronic timer which basically powers off the modem when they leave work at night and turns it back on in the morning. There is even an override switch on the timer to manually turn on and off the unit as well. When they moved to ADSL (since they are not using SME for mails, etc.) they continued to use this method to disconnect from the net overnight. Crude, but very effective ! Not suitable if the adsl modem (power source) is not within easy reach though, if you intend to manually override and turn it on and off.

Kelvin

Woodbuger

Is There A Way To Connect and Disconnect PPPOE
« Reply #3 on: April 21, 2004, 07:19:28 AM »
Thanks for the reply Kelvin. I sometimes use this method of powering off the modem but it seems sme continues to try and reconnect making a rather large logfile. There must be another way to achieve this without filling up my hard drive from error logs.

Medimo

Is There A Way To Connect and Disconnect PPPOE
« Reply #4 on: April 21, 2004, 11:24:19 AM »
I think you can just take the interface down?

ifdown eth1

later on

ifup eth1

grz,

Richard.

Milou

Is There A Way To Connect and Disconnect PPPOE
« Reply #5 on: April 23, 2004, 04:10:35 PM »
I don't remember the exact syntax, but here it goes:
service pppoe start
service pppoe stop
service pppoe status
service pppoe restart

This or something very similar to this should turn on/off your ADSL internet connection.

You can write a short script to do this, and you can call the script from a cronjob to turn on/off the internet connection at set time of the day/week.

Cheers.

Woodbuger

Is There A Way To Connect and Disconnect PPPOE
« Reply #6 on: April 25, 2004, 02:41:37 AM »
Milou, that did it! Works great! Thanks a million. Now I need to figure out how to add this to a panel in server manager. Anyone?

rickjones

Is There A Way To Connect and Disconnect PPPOE
« Reply #7 on: April 26, 2004, 04:56:42 PM »
There's a general purpose sevice control panel contrib available. I don't remember where, but search the site and it should be easy to find.

IIRC it allows you to stop & start services as well as enable & disable them, pppoe would be just one of the services in the list.

Woodbuger

Is There A Way To Connect and Disconnect PPPOE
« Reply #8 on: April 27, 2004, 02:54:53 AM »
Rick, I did a search for "service control panel" and it led me to e-smith-service-control-1.1.0-6. I have this installed and pppoe is not on the list. Do you have the one your referring to installed?

Thanx