Some improvements in the mobileconfig. Fixes #270

pull/282/head
Jack Ivanov 7 years ago
parent 045ff4bb9f
commit 49ba1f76b4

@ -7,13 +7,13 @@ SKIP_TAGS="_null encrypted"
additional_roles () { additional_roles () {
read -p " read -p "
Do you want to enable VPN Always-On when connected to cellular networks? Do you want to enable VPN On Demand when connected to cellular networks?
[y/N]: " -r OnDemandEnabled_Cellular [y/N]: " -r OnDemandEnabled_Cellular
OnDemandEnabled_Cellular=${OnDemandEnabled_Cellular:-n} OnDemandEnabled_Cellular=${OnDemandEnabled_Cellular:-n}
if [[ "$OnDemandEnabled_Cellular" =~ ^(y|Y)$ ]]; then EXTRA_VARS+=" OnDemandEnabled_Cellular=Y"; fi if [[ "$OnDemandEnabled_Cellular" =~ ^(y|Y)$ ]]; then EXTRA_VARS+=" OnDemandEnabled_Cellular=Y"; fi
read -p " read -p "
Do you want to enable VPN Always-On when connected to Wi-Fi? Do you want to enable VPN On Demand when connected to Wi-Fi?
[y/N]: " -r OnDemandEnabled_WIFI [y/N]: " -r OnDemandEnabled_WIFI
OnDemandEnabled_WIFI=${OnDemandEnabled_WIFI:-n} OnDemandEnabled_WIFI=${OnDemandEnabled_WIFI:-n}
if [[ "$OnDemandEnabled_WIFI" =~ ^(y|Y)$ ]]; then EXTRA_VARS+=" OnDemandEnabled_WIFI=Y"; fi if [[ "$OnDemandEnabled_WIFI" =~ ^(y|Y)$ ]]; then EXTRA_VARS+=" OnDemandEnabled_WIFI=Y"; fi

@ -62,14 +62,14 @@
<key>IntegrityAlgorithm</key> <key>IntegrityAlgorithm</key>
<string>SHA2-256</string> <string>SHA2-256</string>
<key>LifeTimeInMinutes</key> <key>LifeTimeInMinutes</key>
<integer>1440</integer> <integer>20</integer>
</dict> </dict>
<key>DeadPeerDetectionRate</key> <key>DeadPeerDetectionRate</key>
<string>Medium</string> <string>Medium</string>
<key>DisableMOBIKE</key> <key>DisableMOBIKE</key>
<integer>0</integer> <integer>0</integer>
<key>DisableRedirect</key> <key>DisableRedirect</key>
<integer>0</integer> <integer>1</integer>
<key>EnableCertificateRevocationCheck</key> <key>EnableCertificateRevocationCheck</key>
<integer>0</integer> <integer>0</integer>
<key>EnablePFS</key> <key>EnablePFS</key>
@ -83,7 +83,7 @@
<key>IntegrityAlgorithm</key> <key>IntegrityAlgorithm</key>
<string>SHA2-256</string> <string>SHA2-256</string>
<key>LifeTimeInMinutes</key> <key>LifeTimeInMinutes</key>
<integer>1440</integer> <integer>20</integer>
</dict> </dict>
<key>LocalIdentifier</key> <key>LocalIdentifier</key>
<string>{{ item.0 }}</string> <string>{{ item.0 }}</string>
@ -96,7 +96,7 @@
<string>ECDSA256</string> <string>ECDSA256</string>
{% endif %} {% endif %}
<key>ServerCertificateIssuerCommonName</key> <key>ServerCertificateIssuerCommonName</key>
<string>{{ IP_subject_alt_name }}</string> <string>{{ IP_subject_alt_name }}</string>
<key>RemoteAddress</key> <key>RemoteAddress</key>
<string>{{ IP_subject_alt_name }}</string> <string>{{ IP_subject_alt_name }}</string>
<key>RemoteIdentifier</key> <key>RemoteIdentifier</key>

Loading…
Cancel
Save