sgw: use iptables '-w' option
authorFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 28 May 2016 09:09:13 +0000 (11:09 +0200)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Sat, 28 May 2016 09:09:13 +0000 (11:09 +0200)
So that setting up rules becomes more robust.

Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
files/sgw_policy_routing_setup.sh

index 6aecc4f..8d1fc63 100755 (executable)
@@ -313,12 +313,12 @@ fi
 
 # process ipVersion argument
 declare IPTABLES="iptables"
-declare IPTABLES_ARGS=""
+declare IPTABLES_ARGS="-w"
 declare IP="ip"
 declare IP_ARGS="-4"
 if [ "$ipVersion" = "$IPVERSION_6" ]; then
   IPTABLES="ip6tables"
-  IPTABLES_ARGS=""
+  IPTABLES_ARGS="-w"
   IP="ip"
   IP_ARGS="-6"
 fi