Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Woodbuger 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.
-
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?
-
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
-
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.
-
I think you can just take the interface down?
ifdown eth1
later on
ifup eth1
grz,
Richard.
-
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.
-
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?
-
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.
-
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