From 128068e5bf300faee15f0fab4bfce08868980f47 Mon Sep 17 00:00:00 2001 From: Guillaume Destuynder Date: Thu, 15 May 2014 12:36:29 -0700 Subject: [PATCH] Need to declare and export variables in script mode --- netfilter_openvpn.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/netfilter_openvpn.sh b/netfilter_openvpn.sh index 9f91224..318d5c9 100755 --- a/netfilter_openvpn.sh +++ b/netfilter_openvpn.sh @@ -6,6 +6,7 @@ address=$2 # Use this if you need to use "username as common name". This has security implications: # username is arbitrary and sent by the user, common_name matches a signed certificate common bame and cannot be forged. #common_name=${username} +export operation address common_name SUDO=/usr/bin/sudo IPTABLES=/sbin/iptables