mirror of
https://github.com/angristan/openvpn-install.git
synced 2025-03-14 22:53:14 +01:00
DNS Rebinding fix for all OS
This commit is contained in:
parent
d31dad466a
commit
d744222674
@ -141,7 +141,6 @@ harden-glue: yes
|
|||||||
qname-minimisation: yes
|
qname-minimisation: yes
|
||||||
prefetch: yes' >/etc/unbound/unbound.conf.d/openvpn.conf
|
prefetch: yes' >/etc/unbound/unbound.conf.d/openvpn.conf
|
||||||
|
|
||||||
if [[ ! "$OS" =~ (fedora|centos|amzn) ]];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
|
||||||
@ -151,7 +150,6 @@ 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.d/openvpn.conf
|
private-address: ::ffff:0:0/96' >>/etc/unbound/unbound.conf.d/openvpn.conf
|
||||||
fi
|
|
||||||
|
|
||||||
# Add as include, if no wildcard include exist
|
# Add as include, if no wildcard include exist
|
||||||
if ! grep -q '/etc/unbound/unbound.conf.d/' /etc/unbound/unbound.conf; then
|
if ! grep -q '/etc/unbound/unbound.conf.d/' /etc/unbound/unbound.conf; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user