Bug 558788

Summary: ifup does not resume VPN connections
Product: [openSUSE] openSUSE 11.2 Reporter: Ilya Chernykh <anixx>
Component: NetworkAssignee: Michal Zugec <mzugec>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: lnussel, marko.kohtala
Version: Final   
Target Milestone: ---   
Hardware: Other   
OS: openSUSE 11.2   
Whiteboard:
Found By: Community User Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: screenshot

Description Ilya Chernykh 2009-11-27 03:10:47 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.1.5) Gecko/20091103 SUSE/3.5.5-1.1.2 Firefox/3.5.5

When using ifup networking system and configuring PPTP VPN through DSL applet in Yast, ckecking "resume connection" checkbox in the connection proprties does nothing: connection is not resumed after physical connection restored. One should manually enter the the connection properties dialog, check and uncheck something and press OK. Then the connection resumes.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Comment 1 Shuang Qiu 2009-12-01 10:10:57 UTC
Could you please attach y2logs according to http://en.opensuse.org/Bugs/YaST.
Thanks.
Comment 2 Ilya Chernykh 2009-12-01 10:45:54 UTC
Here is it:
https://bugzilla.novell.com/attachment.cgi?id=330214
Comment 3 Michal Zugec 2009-12-02 09:47:20 UTC
I'm not sure what exactly you mean. There's no "resume connection" found in sources. Could you provide screenshot of that?
Comment 4 Ilya Chernykh 2009-12-02 18:41:49 UTC
Created attachment 330566 [details]
screenshot
Comment 5 Ilya Chernykh 2009-12-02 18:42:51 UTC
Here is it. 'Automatically reconnect' option.
Comment 6 Michal Zugec 2009-12-03 12:11:00 UTC
Can't reproduce. I created new connection (and provider), leave dialog in comment#3 untouched and there _is_ AUTO_RECONNECT='yes' option in /etc/sysconfig/network/providers/provider0

Can you compare with your experience?
Comment 7 Ilya Chernykh 2009-12-03 13:28:13 UTC
My point is that is _does not_ reconnect. The option is in fact set properly, but it does not work.
Comment 9 Ludwig Nussel 2009-12-03 14:34:56 UTC
smpppd lacks proper support for reconnect. The feature was originally meant for plain old modems to redial e.g. if the line is busy. That doesn't make sense for pptp of course.
You may try setting AUTO_RECONNECT_EXITS to a list of pppd exit codes that should cause smpppd to reconnect (see man pppd). AUTO_RECONNECT_DELAY specifies the time in seconds.
Comment 10 Ludwig Nussel 2010-03-15 12:15:36 UTC
Unfortunately this is not easily fixable in current smpppd code :-( I'd therefore vote for just removing the option from yast's UI,
Comment 11 Michal Zugec 2010-04-19 14:19:43 UTC
I remover it from UI in yast2-network-2.19.24
Comment 12 Ludwig Nussel 2010-07-09 06:56:51 UTC
*** Bug 620848 has been marked as a duplicate of this bug. ***
Comment 13 Marko Kohtala 2010-07-09 07:24:09 UTC
Would pppd option persist be a solution to this?

I have a server dial a modem (3G/UMTS modem, unable to receive a call) for internet connection and it needs to redial to be reachable. I have no console access.
Comment 14 Ludwig Nussel 2010-07-09 07:37:48 UTC
(In reply to comment #13)
> Would pppd option persist be a solution to this?
> 
> I have a server dial a modem (3G/UMTS modem, unable to receive a call) for
> internet connection and it needs to redial to be reachable. I have no console
> access.

(belongs to bug 620848 really)
You could set up a cron job that regularly checks if the connection is up and calls cinternet if not. You could put a similar thing in ip-down.d to make sure the system redials immediately after connection failure.
Comment 15 Bernhard Wiedemann 2016-04-15 10:34:54 UTC
This is an autogenerated message for OBS integration:
This bug (558788) was mentioned in
https://build.opensuse.org/request/show/39856 Factory / yast2-network