From 8299e652710b110c401f213832c9dd897b02a35a Mon Sep 17 00:00:00 2001 From: Guo Yunhe Date: Sun, 23 Jul 2023 17:50:25 +0800 Subject: [PATCH] install unbound --- openvpn-install.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index f85ea13..1d766a6 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -140,6 +140,16 @@ prefetch: yes' >>/etc/unbound/unbound.conf sed -i 's|# hide-version: no|hide-version: yes|' /etc/unbound/unbound.conf sed -i 's|# use-caps-for-id: no|use-caps-for-id: yes|' /etc/unbound/unbound.conf + elif [[ $OS == "opensuse" ]]; then + zypper install -y unbound + + # Configuration + 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 + sed -i 's|# use-caps-for-id: no|use-caps-for-id: yes|' /etc/unbound/unbound.conf + elif [[ $OS == "arch" ]]; then pacman -Syu --noconfirm unbound