Softethervpn: Making Softether mobile friendly

Created on 29 Jan 2017  ·  5Comments  ·  Source: SoftEtherVPN/SoftEtherVPN

Softether is a great product, I am especially happy about the SSTP support as OpenVPN is temporarily blocked here. It is especially great on my desktop computer, but less on my mobile devices.

The ping keep-alive settings are set too high, causing massive battery drain. In OpenVPN, it is set as ping 3 restart 10 while the standard setting is 10-60 that already consumes too much battery. I experimeted with other settings on other Openvpn scripts, for example 90-180 and 180-360 and the battery saving effect is tremendous.

I figured out that this setting strangely enough cannot be changed after the Softether installation. It has to be done before installing from source. For Openvpn this can be done by editing the settings in this file
https://github.com/SoftEtherVPN/SoftEtherVPN/blob/master/src/Cedar/Interop_OpenVPN.h

But I am not so sure how to edit the SSTP-settings. I experimented a bit with this file https://github.com/SoftEtherVPN/SoftEtherVPN/blob/master/src/Cedar/Interop_SSTP.h without any much luck. Anyone out there who can help?

What about generally changing the default settings so that Softether can be used on mobile devices without battery drain?

Thanks!

help wanted

All 5 comments

Nobody who knows or has some thoughts on that?

if you follow this guideline https://msdn.microsoft.com/en-us/library/dd925601%28v=office.12%29.aspx?f=255&MSPPError=-2147217396
then you should modify:

define SSTP_ECHO_SEND_INTERVAL_MIN 2500 // Transmission interval of Echo Request (minimum)

define SSTP_ECHO_SEND_INTERVAL_MAX 4792 // Transmission interval of Echo Request (maximum)

define SSTP_TIMEOUT 10000 // Communication time-out of SSTP

to:

define SSTP_ECHO_SEND_INTERVAL_MIN 44000 // 44 sec min - Transmission interval of Echo Request (minimum)

define SSTP_ECHO_SEND_INTERVAL_MAX 45000 // 45 sec max -Transmission interval of Echo Request (maximum)

define SSTP_TIMEOUT 60000 // 60 sec -Communication time-out of SSTP

Thanks a lot! I will try that

@maurerr how about sending a pull request? Current values are too low, and this patch must be merged.

@TheNomad11 how about sending a pull request? Current values are too low, and this patch must be merged.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Adrian-Voelker picture Adrian-Voelker  ·  16Comments

scandox picture scandox  ·  4Comments

fhocorp picture fhocorp  ·  8Comments

halloamt picture halloamt  ·  12Comments

renatosc picture renatosc  ·  3Comments