Feature: add 10s ping with 60s exit ping for all
This commit is contained in:
@@ -79,11 +79,13 @@ func (c *cyberghost) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"persist-key",
|
"persist-key",
|
||||||
"persist-tun",
|
"persist-tun",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Cyberghost specific
|
// Cyberghost specific
|
||||||
// "redirect-gateway def1",
|
// "redirect-gateway def1",
|
||||||
"ncp-disable",
|
"ncp-disable",
|
||||||
"ping 5",
|
|
||||||
"explicit-exit-notify 2",
|
"explicit-exit-notify 2",
|
||||||
"script-security 2",
|
"script-security 2",
|
||||||
"route-delay 5",
|
"route-delay 5",
|
||||||
|
|||||||
@@ -85,10 +85,11 @@ func (m *mullvad) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Mullvad specific
|
// Mullvad specific
|
||||||
"ping 10",
|
|
||||||
"ping-restart 60",
|
|
||||||
"sndbuf 524288",
|
"sndbuf 524288",
|
||||||
"rcvbuf 524288",
|
"rcvbuf 524288",
|
||||||
"tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA",
|
"tls-cipher TLS-DHE-RSA-WITH-AES-256-GCM-SHA384:TLS-DHE-RSA-WITH-AES-256-CBC-SHA",
|
||||||
|
|||||||
@@ -99,14 +99,14 @@ func (n *nordvpn) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Nordvpn specific
|
// Nordvpn specific
|
||||||
"tun-mtu 1500",
|
"tun-mtu 1500",
|
||||||
"tun-mtu-extra 32",
|
"tun-mtu-extra 32",
|
||||||
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
|
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
|
||||||
"ping 15",
|
|
||||||
"ping-restart 0",
|
|
||||||
"ping-timer-rem",
|
|
||||||
"reneg-sec 0",
|
"reneg-sec 0",
|
||||||
"comp-lzo no",
|
"comp-lzo no",
|
||||||
"fast-io",
|
"fast-io",
|
||||||
|
|||||||
@@ -138,9 +138,11 @@ func (p *pia) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// PIA specific
|
// PIA specific
|
||||||
"ping 300", // Ping every 5 minutes to prevent a timeout error
|
|
||||||
"reneg-sec 0",
|
"reneg-sec 0",
|
||||||
"compress", // allow PIA server to choose the compression to use
|
"compress", // allow PIA server to choose the compression to use
|
||||||
|
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ func (s *privado) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"dev tun",
|
"dev tun",
|
||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Privado specific
|
// 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",
|
"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",
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ func (p *purevpn) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Purevpn specific
|
// Purevpn specific
|
||||||
"key-direction 1",
|
"key-direction 1",
|
||||||
|
|||||||
@@ -95,14 +95,14 @@ func (s *surfshark) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Surfshark specific
|
// Surfshark specific
|
||||||
"tun-mtu 1500",
|
"tun-mtu 1500",
|
||||||
"tun-mtu-extra 32",
|
"tun-mtu-extra 32",
|
||||||
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
|
"mssfix " + strconv.Itoa(int(settings.MSSFix)),
|
||||||
"ping 15",
|
|
||||||
"ping-restart 60",
|
|
||||||
"ping-timer-rem",
|
|
||||||
"reneg-sec 0",
|
"reneg-sec 0",
|
||||||
"fast-io",
|
"fast-io",
|
||||||
"key-direction 1",
|
"key-direction 1",
|
||||||
|
|||||||
@@ -85,10 +85,12 @@ func (v *vyprvpn) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Vyprvpn specific
|
// Vyprvpn specific
|
||||||
"comp-lzo",
|
"comp-lzo",
|
||||||
"keepalive 10 60",
|
|
||||||
// "verify-x509-name lu1.vyprvpn.com name",
|
// "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
|
"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
|
||||||
|
|
||||||
|
|||||||
@@ -88,6 +88,9 @@ func (w *windscribe) BuildConf(connection models.OpenVPNConnection,
|
|||||||
"nobind",
|
"nobind",
|
||||||
"persist-key",
|
"persist-key",
|
||||||
"remote-cert-tls server",
|
"remote-cert-tls server",
|
||||||
|
"ping 10",
|
||||||
|
"ping-exit 60",
|
||||||
|
"ping-timer-rem",
|
||||||
|
|
||||||
// Windscribe specific
|
// Windscribe specific
|
||||||
"comp-lzo",
|
"comp-lzo",
|
||||||
|
|||||||
Reference in New Issue
Block a user