From 710a25efbdee87c918a175a69cb53fc885a6a810 Mon Sep 17 00:00:00 2001 From: Brielle Bruns Date: Wed, 1 Jan 2020 13:48:03 -0700 Subject: [PATCH] no message --- lib/iptables.inc | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/iptables.inc b/lib/iptables.inc index d44a6ae..22cef52 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -472,6 +472,7 @@ function enable_nat { #[[ ${srcinterface} != "-" ]] && srcinterface="-i ${srcinterface}" [[ ${dstinterface} != "-" ]] && dstinterface="-o ${dstinterface}" [[ ${srcaddress} != "-" ]] && srcaddress="-s ${srcaddress}" + ([[ ${srcinterface} == "-" ]] && [[ ${type} == "SNAT" ]]) && srcinterface="-" ([[ ${dstinterface} != "-" ]] && [[ ${type} == "MASQ" ]]) && action="-j MASQUERADE" ([[ ${dstinterface} == "-" ]] && [[ ${type} == "MASQ" ]]) && \