android: Make IPv6 transport flag configurable in the GUI
This commit is contained in:
parent
7d10095123
commit
21476a8d91
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2012-2019 Tobias Brunner
|
||||
* Copyright (C) 2012-2020 Tobias Brunner
|
||||
* Copyright (C) 2012 Giuliano Grassi
|
||||
* Copyright (C) 2012 Ralf Sager
|
||||
* HSR Hochschule fuer Technik Rapperswil
|
||||
|
@ -124,6 +124,7 @@ public class VpnProfileDetailActivity extends AppCompatActivity
|
|||
private Switch mUseOcsp;
|
||||
private Switch mStrictRevocation;
|
||||
private Switch mRsaPss;
|
||||
private Switch mIPv6Transport;
|
||||
private EditText mNATKeepalive;
|
||||
private TextInputLayoutHelper mNATKeepaliveWrap;
|
||||
private EditText mIncludedSubnets;
|
||||
|
@ -194,6 +195,7 @@ public class VpnProfileDetailActivity extends AppCompatActivity
|
|||
mUseOcsp = findViewById(R.id.use_ocsp);
|
||||
mStrictRevocation= findViewById(R.id.strict_revocation);
|
||||
mRsaPss= findViewById(R.id.rsa_pss);
|
||||
mIPv6Transport= findViewById(R.id.ipv6_transport);
|
||||
mIncludedSubnets = (EditText)findViewById(R.id.included_subnets);
|
||||
mIncludedSubnetsWrap = (TextInputLayoutHelper)findViewById(R.id.included_subnets_wrap);
|
||||
mExcludedSubnets = (EditText)findViewById(R.id.excluded_subnets);
|
||||
|
@ -712,6 +714,7 @@ public class VpnProfileDetailActivity extends AppCompatActivity
|
|||
flags |= !mUseOcsp.isChecked() ? VpnProfile.FLAGS_DISABLE_OCSP : 0;
|
||||
flags |= mStrictRevocation.isChecked() ? VpnProfile.FLAGS_STRICT_REVOCATION : 0;
|
||||
flags |= mRsaPss.isChecked() ? VpnProfile.FLAGS_RSA_PSS : 0;
|
||||
flags |= mIPv6Transport.isChecked() ? VpnProfile.FLAGS_IPv6_TRANSPORT : 0;
|
||||
mProfile.setFlags(flags);
|
||||
mProfile.setIncludedSubnets(getString(mIncludedSubnets));
|
||||
mProfile.setExcludedSubnets(getString(mExcludedSubnets));
|
||||
|
@ -782,6 +785,7 @@ public class VpnProfileDetailActivity extends AppCompatActivity
|
|||
mUseOcsp.setChecked(flags == null || (flags & VpnProfile.FLAGS_DISABLE_OCSP) == 0);
|
||||
mStrictRevocation.setChecked(flags != null && (flags & VpnProfile.FLAGS_STRICT_REVOCATION) != 0);
|
||||
mRsaPss.setChecked(flags != null && (flags & VpnProfile.FLAGS_RSA_PSS) != 0);
|
||||
mIPv6Transport.setChecked(flags != null && (flags & VpnProfile.FLAGS_IPv6_TRANSPORT) != 0);
|
||||
|
||||
/* check if the user selected a user certificate previously */
|
||||
useralias = savedInstanceState == null ? useralias : savedInstanceState.getString(VpnProfileDataSource.KEY_USER_CERTIFICATE);
|
||||
|
|
|
@ -365,6 +365,23 @@
|
|||
android:textSize="12sp"
|
||||
android:text="@string/profile_rsa_pss_hint" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/ipv6_transport"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:text="@string/profile_ipv6_transport_label" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginBottom="10dp"
|
||||
android:layout_marginLeft="4dp"
|
||||
android:layout_marginStart="4dp"
|
||||
android:textSize="12sp"
|
||||
android:text="@string/profile_ipv6_transport_hint" />
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
|
|
|
@ -105,6 +105,8 @@
|
|||
<string name="profile_strict_revocation_hint">Im strikten Modus schlägt die Authentisierung nicht nur dann fehl, wenn das Server-Zertifikat gesperrt wurde, sondern auch wenn der Status des Zertifikats unbekannt ist (z.B. weil OCSP fehl schlug und keine gültige CRL verfügbar war).</string>
|
||||
<string name="profile_rsa_pss_label">RSA/PSS Signaturen verwenden</string>
|
||||
<string name="profile_rsa_pss_hint">Verwendet das stärkere PSS Encoding anstatt des klassischen PKCS#1 Encoding für RSA Signaturen. Die Authentisierung wird fehlschlagen, wenn der Server solche Signaturen nicht unterstützt.</string>
|
||||
<string name="profile_ipv6_transport_label">IPv6 Transport-Adressen verwenden</string>
|
||||
<string name="profile_ipv6_transport_hint">Verwende IPv6 für die äusseren Transport-Adressen, falls verfügbar. Dies kann nur aktiviert werden, wenn der Server UDP Encapsulation für IPv6 unterstützt. Zu beachten ist, dass dies beim Linux Kernel erst seit Version 5.8 der Fall ist und somit viele Server noch keine Unterstützung bieten.</string>
|
||||
<string name="profile_split_tunneling_label">Split-Tunneling</string>
|
||||
<string name="profile_split_tunneling_intro">Standardmässig leitet der Client allen Netzwerkverkehr durch den VPN Tunnel, ausser der Server schränkt die Subnetze beim Verbindungsaufbau ein, in welchem Fall nur der Verkehr via VPN geleitet wird, den der Server erlaubt (der Rest wird standardmässig behandelt, als ob kein VPN vorhanden wäre).</string>
|
||||
<string name="profile_split_tunnelingv4_title">Blockiere IPv4 Verkehr der nicht für das VPN bestimmt ist</string>
|
||||
|
|
|
@ -105,6 +105,8 @@
|
|||
<string name="profile_strict_revocation_hint">In strict mode the authentication will fail not only if the server certificate has been revoked but also if its status is unknown (e.g. because OCSP failed and no valid CRL was available).</string>
|
||||
<string name="profile_rsa_pss_label">Use RSA/PSS signatures</string>
|
||||
<string name="profile_rsa_pss_hint">Use the stronger PSS encoding instead of the classic PKCS#1 encoding for RSA signatures. Authentication will fail if the server does not support such signatures.</string>
|
||||
<string name="profile_ipv6_transport_label">Use IPv6 transport addresses</string>
|
||||
<string name="profile_ipv6_transport_hint">Use IPv6 for outer transport addresses if available. Can only be enabled if UDP encapsulation for IPv6 is supported by the server. Note that the Linux kernel only supports this since version 5.8, so many servers will not support it yet.</string>
|
||||
<string name="profile_split_tunneling_label">Split tunneling</string>
|
||||
<string name="profile_split_tunneling_intro">By default, the client will route all network traffic through the VPN, unless the server narrows the subnets when the connection is established, in which case only traffic the server allows will be routed via VPN (by default, all other traffic is routed as if there was no VPN).</string>
|
||||
<string name="profile_split_tunnelingv4_title">Block IPv4 traffic not destined for the VPN</string>
|
||||
|
|
|
@ -102,6 +102,8 @@
|
|||
<string name="profile_strict_revocation_hint">In strict mode the authentication will fail not only if the server certificate has been revoked but also if its status is unknown (e.g. because OCSP failed and no valid CRL was available).</string>
|
||||
<string name="profile_rsa_pss_label">Use RSA/PSS signatures</string>
|
||||
<string name="profile_rsa_pss_hint">Use the stronger PSS encoding instead of the classic PKCS#1 encoding for RSA signatures. Authentication will fail if the server does not support such signatures.</string>
|
||||
<string name="profile_ipv6_transport_label">Use IPv6 transport addresses</string>
|
||||
<string name="profile_ipv6_transport_hint">Use IPv6 for outer transport addresses if available. Can only be enabled if UDP encapsulation for IPv6 is supported by the server. Note that the Linux kernel only supports this since version 5.8, so many servers will not support it yet.</string>
|
||||
<string name="profile_split_tunneling_label">Split tunneling</string>
|
||||
<string name="profile_split_tunneling_intro">By default, the client will route all network traffic through the VPN, unless the server narrows the subnets when the connection is established, in which case only traffic the server allows will be routed via VPN (by default, all other traffic is routed as if there was no VPN).</string>
|
||||
<string name="profile_split_tunnelingv4_title">Block IPv4 traffic not destined for the VPN</string>
|
||||
|
|
|
@ -103,6 +103,8 @@
|
|||
<string name="profile_strict_revocation_hint">In strict mode the authentication will fail not only if the server certificate has been revoked but also if its status is unknown (e.g. because OCSP failed and no valid CRL was available).</string>
|
||||
<string name="profile_rsa_pss_label">Use RSA/PSS signatures</string>
|
||||
<string name="profile_rsa_pss_hint">Use the stronger PSS encoding instead of the classic PKCS#1 encoding for RSA signatures. Authentication will fail if the server does not support such signatures.</string>
|
||||
<string name="profile_ipv6_transport_label">Use IPv6 transport addresses</string>
|
||||
<string name="profile_ipv6_transport_hint">Use IPv6 for outer transport addresses if available. Can only be enabled if UDP encapsulation for IPv6 is supported by the server. Note that the Linux kernel only supports this since version 5.8, so many servers will not support it yet.</string>
|
||||
<string name="profile_split_tunneling_label">Split tunneling</string>
|
||||
<string name="profile_split_tunneling_intro">By default, the client will route all network traffic through the VPN, unless the server narrows the subnets when the connection is established, in which case only traffic the server allows will be routed via VPN (by default, all other traffic is routed as if there was no VPN).</string>
|
||||
<string name="profile_split_tunnelingv4_title">Block IPv4 traffic not destined for the VPN</string>
|
||||
|
|
|
@ -102,6 +102,8 @@
|
|||
<string name="profile_strict_revocation_hint">In strict mode the authentication will fail not only if the server certificate has been revoked but also if its status is unknown (e.g. because OCSP failed and no valid CRL was available).</string>
|
||||
<string name="profile_rsa_pss_label">Use RSA/PSS signatures</string>
|
||||
<string name="profile_rsa_pss_hint">Use the stronger PSS encoding instead of the classic PKCS#1 encoding for RSA signatures. Authentication will fail if the server does not support such signatures.</string>
|
||||
<string name="profile_ipv6_transport_label">Use IPv6 transport addresses</string>
|
||||
<string name="profile_ipv6_transport_hint">Use IPv6 for outer transport addresses if available. Can only be enabled if UDP encapsulation for IPv6 is supported by the server. Note that the Linux kernel only supports this since version 5.8, so many servers will not support it yet.</string>
|
||||
<string name="profile_split_tunneling_label">拆分隧道</string>
|
||||
<string name="profile_split_tunneling_intro">By default, the client will route all network traffic through the VPN, unless the server narrows the subnets when the connection is established, in which case only traffic the server allows will be routed via VPN (by default, all other traffic is routed as if there was no VPN).</string>
|
||||
<string name="profile_split_tunnelingv4_title">屏蔽不通过VPN的IPV4流量</string>
|
||||
|
|
|
@ -102,6 +102,8 @@
|
|||
<string name="profile_strict_revocation_hint">In strict mode the authentication will fail not only if the server certificate has been revoked but also if its status is unknown (e.g. because OCSP failed and no valid CRL was available).</string>
|
||||
<string name="profile_rsa_pss_label">Use RSA/PSS signatures</string>
|
||||
<string name="profile_rsa_pss_hint">Use the stronger PSS encoding instead of the classic PKCS#1 encoding for RSA signatures. Authentication will fail if the server does not support such signatures.</string>
|
||||
<string name="profile_ipv6_transport_label">Use IPv6 transport addresses</string>
|
||||
<string name="profile_ipv6_transport_hint">Use IPv6 for outer transport addresses if available. Can only be enabled if UDP encapsulation for IPv6 is supported by the server. Note that the Linux kernel only supports this since version 5.8, so many servers will not support it yet.</string>
|
||||
<string name="profile_split_tunneling_label">拆分隧道</string>
|
||||
<string name="profile_split_tunneling_intro">By default, the client will route all network traffic through the VPN, unless the server narrows the subnets when the connection is established, in which case only traffic the server allows will be routed via VPN (by default, all other traffic is routed as if there was no VPN).</string>
|
||||
<string name="profile_split_tunnelingv4_title">屏蔽不通过VPN的IPV4流量</string>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!--
|
||||
Copyright (C) 2012-2019 Tobias Brunner
|
||||
Copyright (C) 2012-2020 Tobias Brunner
|
||||
Copyright (C) 2012 Giuliano Grassi
|
||||
Copyright (C) 2012 Ralf Sager
|
||||
HSR Hochschule fuer Technik Rapperswil
|
||||
|
@ -105,6 +105,8 @@
|
|||
<string name="profile_strict_revocation_hint">In strict mode the authentication will fail not only if the server certificate has been revoked but also if its status is unknown (e.g. because OCSP failed and no valid CRL was available).</string>
|
||||
<string name="profile_rsa_pss_label">Use RSA/PSS signatures</string>
|
||||
<string name="profile_rsa_pss_hint">Use the stronger PSS encoding instead of the classic PKCS#1 encoding for RSA signatures. Authentication will fail if the server does not support such signatures.</string>
|
||||
<string name="profile_ipv6_transport_label">Use IPv6 transport addresses</string>
|
||||
<string name="profile_ipv6_transport_hint">Use IPv6 for outer transport addresses if available. Can only be enabled if UDP encapsulation for IPv6 is supported by the server. Note that the Linux kernel only supports this since version 5.8, so many servers will not support it yet.</string>
|
||||
<string name="profile_split_tunneling_label">Split tunneling</string>
|
||||
<string name="profile_split_tunneling_intro">By default, the client will route all network traffic through the VPN, unless the server narrows the subnets when the connection is established, in which case only traffic the server allows will be routed via VPN (by default, all other traffic is routed as if there was no VPN).</string>
|
||||
<string name="profile_split_tunnelingv4_title">Block IPv4 traffic not destined for the VPN</string>
|
||||
|
|
Loading…
Reference in New Issue