Howto completely disable OpenVPN client auto connect
Posted: Fri Jul 10, 2020 1:01 pm
hi, im using Softether(v4.34-9745-beta-2020.04.05-linux-x64-64bit) as the server on a Ubuntu 20.04 TLS and using OpenVPN client(v11.15) on a Windows 7 64bit laptop
I would like to ask how could we disable the auto-connect option? i disconnect the connection, then close the lid of the laptop, and when i opens up, it will connect to the vpn by itself.
i hv search online and someone mention setting this value on the client config - 'connect-retry-max n', so will this solve my issue? and if yes, what value should i give to 'n'?
dev tun
proto udp
remote vpn619393904.softether.net 1194
cipher AES-128-CBC
auth SHA1
resolv-retry infinite #resolve dns
nobind
persist-key
persist-tun
client
verb 3
auth-user-pass
p/s - hv read about using 3rd party program to fix this, but would prefer not as dont want install anything and make it as easy as possible
Thank you,
I would like to ask how could we disable the auto-connect option? i disconnect the connection, then close the lid of the laptop, and when i opens up, it will connect to the vpn by itself.
i hv search online and someone mention setting this value on the client config - 'connect-retry-max n', so will this solve my issue? and if yes, what value should i give to 'n'?
Client config
dev tun
proto udp
remote vpn619393904.softether.net 1194
cipher AES-128-CBC
auth SHA1
resolv-retry infinite #resolve dns
nobind
persist-key
persist-tun
client
verb 3
auth-user-pass
p/s - hv read about using 3rd party program to fix this, but would prefer not as dont want install anything and make it as easy as possible
Thank you,