DNS rebinding for non fedora and centos
This commit is contained in:
parent
f1fb5ed14e
commit
bdccafb84c
1 changed files with 4 additions and 2 deletions
|
|
@ -158,8 +158,9 @@ qname-minimisation: yes
|
||||||
prefetch: yes' > /etc/unbound/unbound.conf
|
prefetch: yes' > /etc/unbound/unbound.conf
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# DNS Rebinding fix
|
if [[ ! "$OS" =~ (fedora|centos) ]];then
|
||||||
echo "private-address: 10.0.0.0/8
|
# DNS Rebinding fix
|
||||||
|
echo "private-address: 10.0.0.0/8
|
||||||
private-address: 172.16.0.0/12
|
private-address: 172.16.0.0/12
|
||||||
private-address: 192.168.0.0/16
|
private-address: 192.168.0.0/16
|
||||||
private-address: 169.254.0.0/16
|
private-address: 169.254.0.0/16
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue