Fix DNS rebinding

See 70d6627e6d
This commit is contained in:
angristan 2018-09-15 18:19:07 +02:00
parent 7278337c08
commit abcab8b822

View file

@ -159,8 +159,14 @@ prefetch: yes' > /etc/unbound/unbound.conf
fi fi
# DNS Rebinding fix # DNS Rebinding fix
PRIVATE_ADDRESSES="10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 169.254.0.0/16 127.0.0.0/8" echo "private-address: 10.0.0.0/8
echo "private-address: $PRIVATE_ADDRESSES" >> /etc/unbound/unbound.conf private-address: 172.16.0.0/12
private-address: 192.168.0.0/16
private-address: 169.254.0.0/16
private-address: fd00::/8
private-address: fe80::/10
private-address: 127.0.0.0/8
private-address: ::ffff:0:0/96" >> /etc/unbound/unbound.conf
# Enable service at boot # Enable service at boot
systemctl enable unbound systemctl enable unbound