mirror of
https://github.com/trailofbits/algo.git
synced 2025-06-06 15:13:56 +02:00
extra vars added to use local DNS #110
This commit is contained in:
parent
fc4f446b3f
commit
76ea7f67ae
3 changed files with 2 additions and 6 deletions
2
algo
2
algo
|
@ -19,7 +19,7 @@ read -p "
|
|||
Do you want to install a local DNS resolver to block ads while surfing?
|
||||
[y/N]: " -r dns_enabled
|
||||
dns_enabled=${dns_enabled:-n}
|
||||
if [[ "$dns_enabled" =~ ^(y|Y)$ ]]; then ROLES+=" dns"; fi
|
||||
if [[ "$dns_enabled" =~ ^(y|Y)$ ]]; then ROLES+=" dns"; EXTRA_VARS+=" local_dns=Y"; fi
|
||||
|
||||
read -p "
|
||||
Do you want to use auditd for security monitoring (see config.cfg)?
|
||||
|
|
|
@ -27,10 +27,6 @@ vpn_network_ipv6: 'fd9d:bc11:4020::/48'
|
|||
server_name: "{{ ansible_ssh_host }}"
|
||||
IP_subject_alt_name: "{{ ansible_ssh_host }}"
|
||||
|
||||
# Enable this variable if you want to use a local DNS resolver to block ads while surfing. (True or False)
|
||||
service_dns: True
|
||||
|
||||
# If you don't want to use a local DNS resolver (option `service_dns`) you need to define DNS servers in this list.
|
||||
dns_servers:
|
||||
- 8.8.8.8
|
||||
- 8.8.4.4
|
||||
|
|
|
@ -17,7 +17,7 @@ conn %default
|
|||
right=%any
|
||||
rightauth=pubkey
|
||||
rightsourceip={{ vpn_network }},{{ vpn_network_ipv6 }}
|
||||
{% if service_dns is defined and service_dns == "Y" %}
|
||||
{% if local_dns is defined and local_dns == "Y" %}
|
||||
rightdns={{ local_service_ip }}
|
||||
{% else %}
|
||||
rightdns={% for host in dns_servers %}{{ host }}{% if not loop.last %},{% endif %}{% endfor %}
|
||||
|
|
Loading…
Add table
Reference in a new issue