DNS rebinding for non fedora and centos

This commit is contained in:
angristan 2018-09-16 00:27:18 +02:00
parent f1fb5ed14e
commit bdccafb84c

View file

@ -158,6 +158,7 @@ qname-minimisation: yes
prefetch: yes' > /etc/unbound/unbound.conf prefetch: yes' > /etc/unbound/unbound.conf
fi fi
if [[ ! "$OS" =~ (fedora|centos) ]];then
# DNS Rebinding fix # DNS Rebinding fix
echo "private-address: 10.0.0.0/8 echo "private-address: 10.0.0.0/8
private-address: 172.16.0.0/12 private-address: 172.16.0.0/12
@ -167,6 +168,7 @@ private-address: fd00::/8
private-address: fe80::/10 private-address: fe80::/10
private-address: 127.0.0.0/8 private-address: 127.0.0.0/8
private-address: ::ffff:0:0/96" >> /etc/unbound/unbound.conf private-address: ::ffff:0:0/96" >> /etc/unbound/unbound.conf
fi
# Enable service at boot # Enable service at boot
systemctl enable unbound systemctl enable unbound