From e89e9ad1b550a4576f7136b459a9bab6f4eddb8a Mon Sep 17 00:00:00 2001 From: Brielle Date: Sat, 29 Nov 2014 12:33:53 -0700 Subject: [PATCH] Debugging... --- lib/iptables.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iptables.inc b/lib/iptables.inc index 396ee65..60ddd34 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -468,6 +468,7 @@ function enable_nat { ${display} RED "nat.conf: Error - MASQ rule can not have empty destination interface: ${DEFAULT_COLOR}${type} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress}" \ && continue + ([[ ${dstaddress} != "-" ]] && [[ ${type} == "ACCEPT" ]]) && action="-j ACCEPT" && dstaddress="-d ${dstaddress}" ([[ ${dstaddress} != "-" ]] && [[ ${type} == "SNAT" ]]) && action="-j SNAT" && dstaddress="--to-source ${dstaddress}" ([[ ${dstaddress} == "-" ]] && [[ ${type} == "SNAT" ]]) && \ ${display} RED "nat.conf: Error - SNAT rule can not have empty destination address: ${DEFAULT_COLOR}${type} ${srcinterface} ${srcaddress} ${dstinterface} ${dstaddress}" \