Skip to content

Commit

Permalink
PIA-1960: Update OpenVPN and update its whitelist parameters to allow…
Browse files Browse the repository at this point in the history
… for pia specific ones (#11)
  • Loading branch information
kp-juan-docal committed Jun 26, 2024
1 parent 60e5a32 commit 20f5c3e
Show file tree
Hide file tree
Showing 10 changed files with 9 additions and 2 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ internal class FilterAdditionalOpenVpnParams : IFilterAdditionalOpenVpnParams {
"--topology",
"--tun-mtu",
"--tun-mtu-extra",
"--windows-driver"
"--windows-driver",
"--cipher",
"--pia-signal-settings",
"--ncp-disable"
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,17 @@ internal class GenerateOpenVpnSettings(
"--data-ciphers", dataCiphers,
"--auth", "SHA256",
"--auth-nocache",
"--explicit-exit-notify", "2",
"--script-security", "2",
"--remote-cert-tls", "server",
"--verb", "3",
"--mute-replay-warnings"
)

if (protocolConfiguration.openVpnClientConfiguration.server.transport == VPNTransportProtocol.UDP) {
commandLineParams.add("--explicit-exit-notify")
commandLineParams.add("2")
}

commandLineParams.addAll(protocolConfiguration.openVpnClientConfiguration.additionalParameters.split("\\s+".toRegex()).filter { it.isNotBlank() })

protocolConfiguration.openVpnClientConfiguration.socksProxy?.let {
Expand Down

0 comments on commit 20f5c3e

Please sign in to comment.