1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_role_unbound.git synced 2024-08-16 13:39:49 +02:00
ansible_role_unbound/templates/snippets/private-addresses.conf

45 lines
1.5 KiB
Text
Raw Normal View History

2022-11-17 23:46:33 +01:00
{{ ansible_managed | comment }}
2018-03-10 19:18:04 +01:00
server:
# Give IPv4 of IPv6 addresses or classless subnets. These are addresses on your private network,
# and are not allowed to be returned for public internet names. Any occurrence of such addresses
# are removed from DNS answers. Additionally, the DNSSEC validator may mark the answers bogus.
# This protects against so-called DNS Rebinding.
2022-11-17 23:46:33 +01:00
# Legacy IP
{% if unbound__protect_rebind_localhost | bool %}
2018-03-10 19:18:04 +01:00
# localhost
private-address: 127.0.0.0/8
2022-11-17 23:46:33 +01:00
{% endif %}
{% if unbound__protect_rebind_rfc1918 | bool %}
2018-03-10 19:18:04 +01:00
# private IPv4 address spaces (rfc 1918)
private-address: 10.0.0.0/8
private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
2022-11-17 23:46:33 +01:00
{% endif %}
{% if unbound__protect_rebind_carrier_grade_nat | bool %}
2018-03-10 19:18:04 +01:00
# carrier-grade NAT (rfc 6598)
private-address: 100.64.0.0/10
2022-11-17 23:46:33 +01:00
{% endif %}
{% if unbound__protect_rebind_v4_link_local | bool %}
2018-03-10 19:18:04 +01:00
# link-local addresses
private-address: 169.254.0.0/16
2022-11-17 23:46:33 +01:00
{% endif %}
2018-03-10 19:18:04 +01:00
2022-11-17 23:46:33 +01:00
# IPv6
{% if unbound__protect_rebind_localhost | bool %}
2018-03-10 19:18:04 +01:00
# localhost
private-address: ::/128
2022-11-17 23:46:33 +01:00
{% endif %}
{% if unbound__protect_rebind_unique_local | bool %}
2018-03-10 19:18:04 +01:00
# unique local addresses (rfc 4193)
private-address: fd00::/8
2022-11-17 23:46:33 +01:00
{% endif %}
{% if unbound__protect_rebind_v6_link_local | bool %}
2018-03-10 19:18:04 +01:00
# link-local addresses (rfc 4862, 4291)
private-address: fe80::/10
2022-11-17 23:46:33 +01:00
{% endif %}
{% if unbound__protect_rebind_rfc4291 | bool %}
2018-03-10 19:18:04 +01:00
# IPv4-mapped addresses (rfc 4291)
private-address: ::ffff:0:0/96
2022-11-17 23:46:33 +01:00
{% endif %}