fix: unbound ipv6 localhost
This commit is contained in:
parent
c79c445a23
commit
aa5de65d30
@ -2,11 +2,13 @@
|
|||||||
view:
|
view:
|
||||||
name: "vpn"
|
name: "vpn"
|
||||||
view-first: yes
|
view-first: yes
|
||||||
|
{% if unbound_custom_vpn_records is defined %}
|
||||||
{% for host, ips in unbound_custom_vpn_records.items() %}
|
{% for host, ips in unbound_custom_vpn_records.items() %}
|
||||||
local-data: "{{ host }}. IN A {{ ips.v4 }}"
|
local-data: "{{ host }}. IN A {{ ips.v4 }}"
|
||||||
{% if ips.v6 is defined %}
|
{% if ips.v6 is defined %}
|
||||||
local-data: "{{ host }}. IN AAAA {{ ips.v6 }}"
|
local-data: "{{ host }}. IN AAAA {{ ips.v6 }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
include: "{{ unbound_ad_servers_config_path }}"
|
include: "{{ unbound_ad_servers_config_path }}"
|
||||||
|
|||||||
@ -12,7 +12,8 @@ server:
|
|||||||
ip-freebind: yes
|
ip-freebind: yes
|
||||||
|
|
||||||
# Define interface binds by IP address
|
# 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_lan }} # lan0
|
||||||
interface: {{ unbound_interface_vpn }} # wg0
|
interface: {{ unbound_interface_vpn }} # wg0
|
||||||
|
|
||||||
@ -95,6 +96,7 @@ server:
|
|||||||
|
|
||||||
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
|
# Ensure kernel buffer is large enough to not lose messages in traffic spikes
|
||||||
so-rcvbuf: 1m
|
so-rcvbuf: 1m
|
||||||
|
so-sndbuf: 0
|
||||||
|
|
||||||
# Ensure privacy of local IP ranges
|
# Ensure privacy of local IP ranges
|
||||||
private-address: 192.168.0.0/16
|
private-address: 192.168.0.0/16
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user