Files
ansible-pull/roles/nameserver/templates/unbound_network.conf.j2

21 lines
714 B
Django/Jinja

server:
ip-freebind: yes
{% if wg_local_ip is defined %}
interface: {{ wg_local_ip | ipaddr('address') }}
{% else %}
interface: {{ ansible_default_ipv4.address }}
{% endif %}
interface: 127.0.0.1
interface: 127.0.0.53
interface: ::1
outgoing-interface: {{ ansible_default_ipv4.address }}
outgoing-interface: {{ ansible_default_ipv6.address }}
access-control: 192.168.1.0/24 allow
access-control: 192.168.3.0/24 allow
access-control: 172.16.0.0/24 allow
extended-statistics: yes
statistics-cumulative: yes
remote-control:
control-enable: yes
control-interface: 127.0.0.1