diff options
author | angristan <angristan@pm.me> | 2019-08-08 23:00:37 +0200 |
---|---|---|
committer | angristan <angristan@pm.me> | 2019-08-08 23:01:12 +0200 |
commit | 3d664036f06014f18d9c5183827a07c8a9244138 (patch) | |
tree | 69ab81c1ab81115cd4e0a3e418c022deb70cde3e | |
parent | 606d4969075d94b442bb4c17b0103996b95e7253 (diff) |
Make sure iptables is installed
Fix #28
-rw-r--r-- | wireguard-install.sh | 10 |
1 files 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) |