mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-07 04:24:08 +02:00
Remove proxy conditionals from mobileconfig template
This commit is contained in:
parent
c2987584d7
commit
392ad536de
2 changed files with 0 additions and 21 deletions
|
@ -9,7 +9,6 @@
|
||||||
|
|
||||||
- name: Set facts for mobileconfigs
|
- name: Set facts for mobileconfigs
|
||||||
set_fact:
|
set_fact:
|
||||||
proxy_enabled: false
|
|
||||||
PayloadContentCA: "{{ lookup('file' , 'configs/{{ IP_subject_alt_name }}/pki/cacert.pem')|b64encode }}"
|
PayloadContentCA: "{{ lookup('file' , 'configs/{{ IP_subject_alt_name }}/pki/cacert.pem')|b64encode }}"
|
||||||
|
|
||||||
- name: Build the mobileconfigs
|
- name: Build the mobileconfigs
|
||||||
|
|
|
@ -124,24 +124,12 @@
|
||||||
<key>Proxies</key>
|
<key>Proxies</key>
|
||||||
<dict>
|
<dict>
|
||||||
<key>HTTPEnable</key>
|
<key>HTTPEnable</key>
|
||||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
|
||||||
<integer>1</integer>
|
|
||||||
<key>HTTPPort</key>
|
|
||||||
<integer>8118</integer>
|
|
||||||
<key>HTTPProxy</key>
|
|
||||||
<string>{{ local_service_ip }}</string>
|
|
||||||
{% else %}
|
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
{% endif %}
|
|
||||||
<key>HTTPSEnable</key>
|
<key>HTTPSEnable</key>
|
||||||
<integer>0</integer>
|
<integer>0</integer>
|
||||||
</dict>
|
</dict>
|
||||||
<key>UserDefinedName</key>
|
<key>UserDefinedName</key>
|
||||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
|
||||||
<string>Algo VPN {{ IP_subject_alt_name }} IKEv2 with proxy</string>
|
|
||||||
{% else %}
|
|
||||||
<string>Algo VPN {{ IP_subject_alt_name }} IKEv2</string>
|
<string>Algo VPN {{ IP_subject_alt_name }} IKEv2</string>
|
||||||
{% endif %}
|
|
||||||
<key>VPNType</key>
|
<key>VPNType</key>
|
||||||
<string>IKEv2</string>
|
<string>IKEv2</string>
|
||||||
</dict>
|
</dict>
|
||||||
|
@ -187,17 +175,9 @@
|
||||||
</dict>
|
</dict>
|
||||||
</array>
|
</array>
|
||||||
<key>PayloadDisplayName</key>
|
<key>PayloadDisplayName</key>
|
||||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
|
||||||
<string>{{ IP_subject_alt_name }} IKEv2 with proxy</string>
|
|
||||||
{% else %}
|
|
||||||
<string>{{ IP_subject_alt_name }} IKEv2</string>
|
<string>{{ IP_subject_alt_name }} IKEv2</string>
|
||||||
{% endif %}
|
|
||||||
<key>PayloadIdentifier</key>
|
<key>PayloadIdentifier</key>
|
||||||
{% if proxy_enabled is defined and proxy_enabled == true %}
|
|
||||||
<string>donut.local.{{ 600000 | random | to_uuid | upper }}</string>
|
|
||||||
{% else %}
|
|
||||||
<string>donut.local.{{ 500000 | random | to_uuid | upper }}</string>
|
<string>donut.local.{{ 500000 | random | to_uuid | upper }}</string>
|
||||||
{% endif %}
|
|
||||||
<key>PayloadRemovalDisallowed</key>
|
<key>PayloadRemovalDisallowed</key>
|
||||||
<false/>
|
<false/>
|
||||||
<key>PayloadType</key>
|
<key>PayloadType</key>
|
||||||
|
|
Loading…
Add table
Reference in a new issue