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,6 +158,7 @@ qname-minimisation: yes
|
|||
prefetch: yes' > /etc/unbound/unbound.conf
|
||||
fi
|
||||
|
||||
if [[ ! "$OS" =~ (fedora|centos) ]];then
|
||||
# DNS Rebinding fix
|
||||
echo "private-address: 10.0.0.0/8
|
||||
private-address: 172.16.0.0/12
|
||||
|
|
@ -167,6 +168,7 @@ 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
|
||||
fi
|
||||
|
||||
# Enable service at boot
|
||||
systemctl enable unbound
|
||||
|
|
|
|||
Loading…
Reference in a new issue