Bugzilla – Bug 117850
Configure auto-reconnect for DSL
Last modified: 2006-02-13 10:02:16 UTC
It would *very* nice to have the possibilty to configure an auto-reconnect for DSL devices. As most DSL connections in Germany are terminated after 24 hours a reconnect without manual intervention is mandatory for server applications. The necessary parameters for SMPPPD are available (AUTO_RECONNECT, AUTO_RECONNECT_DELAY, AUTO_RECONNECT_EXITS) although I could not find any documentation. The only missing thing is a feature to prevent shutting down of the interface in /etc/sysconfig/network/scripts/ifup-ppp.
The auto-reconnect feature of smpppd is not exactly what you are looking for since it does not try to keep the connection up (by keeping it busy). I have proposed a 24h modus like every good DSL router has by now some time ago as a usecase.
Created attachment 50470 [details] modified t-online provider script from /etc/sysconfig/network/providers With this modified file from the providers directory and a little patch to the ipup-ppp script (cf. next attachment) it works as it should: It is not necessary to generate traffic as long as you have a standard DSL modem and not a router (which may have an auto-reconnect feature). The DSL connection will stay up as long as you tell YaST not to terminate it. After the connection is shut down from T-COM's side the smpppd will restart the connection after 5 seconds. Our company is using this on a SUSE 9.2 system for our mail and web services. I believe some other small companies like ours will use a cheap DSL connection from T-COM and might be interested in such a solution but not everyone wants to dig into smpppd's source to find the necessary parameters. So it would be nice if YaST could do that for them.
Created attachment 50471 [details] Patch for ifup-ppp This patch will prevent the shutting down of the DSL interface, as it interferes with the reconnection feature in smpppd. It will have side effects which should be ironed out before this is let out to the public. It works correctly only if the DSL connection is the only interface handled by ifup-ppp and it will clash with stopping the interface by means of kinternet / cinternet.
This pacth needs quite some work. It is not so simple. I added this as feature 300482. So it will not get lost.