From 3d664036f06014f18d9c5183827a07c8a9244138 Mon Sep 17 00:00:00 2001 From: angristan Date: Thu, 8 Aug 2019 23:00:37 +0200 Subject: [PATCH] Make sure iptables is installed Fix #28 --- wireguard-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wireguard-install.sh b/wireguard-install.sh index 3d0f8f2..5dadded 100644 --- a/wireguard-install.sh +++ b/wireguard-install.sh @@ -85,23 +85,23 @@ if [[ "$OS" = 'ubuntu' ]]; then add-apt-repository ppa:wireguard/wireguard apt-get update apt-get install linux-headers-$(uname -r) - apt-get install wireguard + apt-get install wireguard iptables elif [[ "$OS" = 'debian' ]]; then echo "deb http://deb.debian.org/debian/ unstable main" > /etc/apt/sources.list.d/unstable.list printf 'Package: *\nPin: release a=unstable\nPin-Priority: 90\n' > /etc/apt/preferences.d/limit-unstable apt update apt-get install linux-headers-$(uname -r) - apt install wireguard + apt install wireguard iptables elif [[ "$OS" = 'fedora' ]]; then dnf copr enable jdoss/wireguard - dnf install wireguard-dkms wireguard-tools + dnf install wireguard-dkms wireguard-tools iptables elif [[ "$OS" = 'centos' ]]; then curl -Lo /etc/yum.repos.d/wireguard.repo https://copr.fedorainfracloud.org/coprs/jdoss/wireguard/repo/epel-7/jdoss-wireguard-epel-7.repo yum install epel-release - yum install wireguard-dkms wireguard-tools + yum install wireguard-dkms wireguard-tools iptables elif [[ "$OS" = 'arch' ]]; then pacman -S linux-headers - pacman -S wireguard-tools + pacman -S wireguard-tools iptables fi # Make sure the directory exists (this does not seem the be the case on fedora)