Feature: add 10s ping with 60s exit ping for all

This commit is contained in:
Quentin McGaw
2021-01-22 13:30:06 +00:00
parent 7ab3347604
commit 204c5b2446
9 changed files with 27 additions and 11 deletions

View File

@@ -79,11 +79,13 @@ func (c *cyberghost) BuildConf(connection models.OpenVPNConnection,
"persist-key",
"persist-tun",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Cyberghost specific
// "redirect-gateway def1",
"ncp-disable",
"ping 5",
"explicit-exit-notify 2",
"script-security 2",
"route-delay 5",

View File

@@ -85,10 +85,11 @@ func (m *mullvad) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Mullvad specific
"ping 10",
"ping-restart 60",
"sndbuf 524288",
"rcvbuf 524288",
"tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA",

View File

@@ -99,14 +99,14 @@ func (n *nordvpn) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Nordvpn specific
"tun-mtu 1500",
"tun-mtu-extra 32",
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
"ping 15",
"ping-restart 0",
"ping-timer-rem",
"reneg-sec 0",
"comp-lzo no",
"fast-io",

View File

@@ -138,9 +138,11 @@ func (p *pia) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// PIA specific
"ping 300", // Ping every 5 minutes to prevent a timeout error
"reneg-sec 0",
"compress", // allow PIA server to choose the compression to use

View File

@@ -85,6 +85,9 @@ func (s *privado) BuildConf(connection models.OpenVPNConnection,
"dev tun",
"nobind",
"persist-key",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Privado specific
"tls-cipher TLS-DHE-RSA-WITH-AES-256-CBC-SHA:TLS-DHE-DSS-WITH-AES-256-CBC-SHA:TLS-RSA-WITH-AES-256-CBC-SHA",

View File

@@ -85,6 +85,9 @@ func (p *purevpn) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Purevpn specific
"key-direction 1",

View File

@@ -95,14 +95,14 @@ func (s *surfshark) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Surfshark specific
"tun-mtu 1500",
"tun-mtu-extra 32",
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
"ping 15",
"ping-restart 60",
"ping-timer-rem",
"reneg-sec 0",
"fast-io",
"key-direction 1",

View File

@@ -85,10 +85,12 @@ func (v *vyprvpn) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Vyprvpn specific
"comp-lzo",
"keepalive 10 60",
// "verify-x509-name lu1.vyprvpn.com name",
"tls-cipher TLS-ECDHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA256:TLS-DHE-RSA-WITH-AES-256-CBC-SHA", //nolint:lll

View File

@@ -88,6 +88,9 @@ func (w *windscribe) BuildConf(connection models.OpenVPNConnection,
"nobind",
"persist-key",
"remote-cert-tls server",
"ping 10",
"ping-exit 60",
"ping-timer-rem",
// Windscribe specific
"comp-lzo",