fix: unbound ipv6 localhost

This commit is contained in:
Clément Désiles 2026-01-18 13:21:15 +01:00
parent c79c445a23
commit aa5de65d30
No known key found for this signature in database
2 changed files with 5 additions and 1 deletions

View File

@ -2,11 +2,13 @@
view:
name: "vpn"
view-first: yes
{% if unbound_custom_vpn_records is defined %}
{% for host, ips in unbound_custom_vpn_records.items() %}
local-data: "{{ host }}. IN A {{ ips.v4 }}"
{% if ips.v6 is defined %}
local-data: "{{ host }}. IN AAAA {{ ips.v6 }}"
{% endif %}
{% endfor %}
{% endif %}
include: "{{ unbound_ad_servers_config_path }}"

View File

@ -12,7 +12,8 @@ server:
ip-freebind: yes
# Define interface binds by IP address
interface: 127.0.0.1 # lo
interface: 127.0.0.1 # lo (IPv4)
interface: ::1 # lo (IPv6)
interface: {{ unbound_interface_lan }} # lan0
interface: {{ unbound_interface_vpn }} # wg0
@ -95,6 +96,7 @@ server:
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
so-rcvbuf: 1m
so-sndbuf: 0
# Ensure privacy of local IP ranges
private-address: 192.168.0.0/16