From fc69f0b8a4714836a913020fafb810a7d4a3b2ee Mon Sep 17 00:00:00 2001 From: angristan Date: Sun, 16 Sep 2018 00:29:13 +0200 Subject: [PATCH] Unbound interface for centos/fedora --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index 7e113fb..24866e2 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -112,7 +112,7 @@ prefetch: yes' >> /etc/unbound/unbound.conf yum install -y unbound # Configuration - echo 'interface: 10.8.0.1' >> /etc/unbound/unbound.conf + sed -i 's|# interface: 0.0.0.0$|interface: 10.8.0.1|' /etc/unbound/unbound.conf sed -i 's|# access-control: 127.0.0.0/8 allow|access-control: 10.8.0.1/24 allow|' /etc/unbound/unbound.conf sed -i 's|# hide-identity: no|hide-identity: yes|' /etc/unbound/unbound.conf sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf @@ -123,7 +123,7 @@ prefetch: yes' >> /etc/unbound/unbound.conf dnf install -y unbound # Configuration - echo 'interface: 10.8.0.1' >> /etc/unbound/unbound.conf + sed -i 's|# interface: 0.0.0.0$|interface: 10.8.0.1|' /etc/unbound/unbound.conf sed -i 's|# access-control: 127.0.0.0/8 allow|access-control: 10.8.0.1/24 allow|' /etc/unbound/unbound.conf sed -i 's|# hide-identity: no|hide-identity: yes|' /etc/unbound/unbound.conf sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf