From d18801452d16516db1e63f4b44002ec1db8f9100 Mon Sep 17 00:00:00 2001 From: hwdsl2 Date: Sun, 9 Aug 2020 13:56:08 -0500 Subject: [PATCH] Add IPTables check - Add IPTables check to work around an issue with Raspberry Pi OS kernel updates - Ref: #835 --- vpnsetup.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vpnsetup.sh b/vpnsetup.sh index de7ab87..98cf495 100755 --- a/vpnsetup.sh +++ b/vpnsetup.sh @@ -125,6 +125,10 @@ if [ -n "$VPN_DNS_SRV2" ] && ! check_ip "$VPN_DNS_SRV2"; then exiterr "DNS server 'VPN_DNS_SRV2' is invalid." fi +if [ -x /sbin/iptables ] && ! iptables -nL INPUT >/dev/null 2>&1; then + exiterr "IPTables check failed. Reboot and re-run this script." +fi + bigecho "VPN setup in progress... Please be patient." # Create and change to working dir