2025-01-14

Increase SoftEther RADIUS timeout to 60 seconds for 2FA/MFA

Modify the source code and compile it yourself

---------------------------------------------------------------------------------------------

src\Cedar\Radius.h

//#define RADIUS_RETRY_INTERVAL 500 // Retransmission interval
//#define RADIUS_RETRY_TIMEOUT (10 * 1000) // Time-out period

#define RADIUS_RETRY_INTERVAL 60000 // Retransmission interval
#define RADIUS_RETRY_TIMEOUT (60 * 1000) // Time-out period

---------------------------------------------------------------------------------------------

src\Cedar\Cedar.h

// #define CONNECTING_TIMEOUT (15 * 1000) // Timeout in seconds of being connected

#define CONNECTING_TIMEOUT (60 * 1000) // Timeout in seconds of being connected

---------------------------------------------------------------------------------------------

src\Cedar\IPSec_EtherIP.h

// #define ETHERIP_VPN_CONNECT_RETRY_INTERVAL (15 * 1000) // VPN connection retry interval

#define ETHERIP_VPN_CONNECT_RETRY_INTERVAL (60 * 1000) // VPN connection retry interval

---------------------------------------------------------------------------------------------

src\Cedar\NM.c

// a.ClientOption->RetryInterval = 15;
// a.ClientOption->NumRetry = INFINITE;

a.ClientOption->RetryInterval = 60
a.ClientOption->NumRetry = 0;

Custom Option:
a.ClientOption->UseCompress = true; // Use Data Compression

---------------------------------------------------------------------------------------------

src\Cedar\CM.c

// a->ClientOption->NumRetry = INFINITE;
// a->ClientOption->RetryInterval = 15;

a->ClientOption->NumRetry = 0;
a->ClientOption->RetryInterval = 60;

These were for the options when create new VPN profile:
Not check Reconnects Automatically After Disconnected
and Reconnect Interval seconds











Custom Option:
a->ClientOption->UseCompress = true; // Use Data Compression
---------------------------------------------------------------------------------------------


沒有留言:

張貼留言