From 9b261809eb237d71b4fdee5989b5ad3469faee61 Mon Sep 17 00:00:00 2001 From: TheKinrar Date: Tue, 22 Nov 2016 19:55:17 +0100 Subject: [PATCH] Automatically enable and start iptables on ArchLinux. --- openvpn-install.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openvpn-install.sh b/openvpn-install.sh index 44b0ec8..5481696 100644 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -301,6 +301,11 @@ else exit 4 fi pacman -Syu openvpn iptables openssl wget ca-certificates curl --needed --noconfirm + if [[ "$OS" = 'arch' ]]; then + touch /etc/iptables/iptables.rules # iptables won't start if this file does not exist + systemctl enable iptables + systemctl start iptables + fi fi # Find out if the machine uses nogroup or nobody for the permissionless group if grep -qs "^nogroup:" /etc/group; then