From 71bed4505a242b443afa068534eee3e5376512f6 Mon Sep 17 00:00:00 2001 From: Brielle Date: Sat, 29 Nov 2014 12:31:53 -0700 Subject: [PATCH] Debugging... --- README | 5 +++-- lib/iptables.inc | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/README b/README index c90d1b5..c036cc7 100644 --- a/README +++ b/README @@ -1,5 +1,6 @@ -SRFirewall v2.0 http://www.sosdg.org/freestuff/firewall Written by: -Brielle Bruns +SRFirewall v2.1 +http://www.sosdg.org/freestuff/firewall +Written by: Brielle Bruns SRFirewall is a complete rewrite of Firewall/SOSDG v1.1, from scratch, with a completely new and reorganized config and file layout. diff --git a/lib/iptables.inc b/lib/iptables.inc index bf55c10..396ee65 100644 --- a/lib/iptables.inc +++ b/lib/iptables.inc @@ -476,7 +476,7 @@ function enable_nat { ([[ ${srcaddress} != "-" ]] && [[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && action="-j NETMAP" && srcaddress="-d ${srcaddress}" && dstaddress="--to ${dstaddress}" - ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${direction} ${action} ${interface} ${srcaddress} ${srcport} ${dstaddress} ${dstport} ${protocol} ${custom}" + ${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${direction} ${action} ${srcinterface} ${srcaddress} ${srcport} ${dstinterface} ${dstaddress} ${dstport} ${protocol} ${custom}" # Blank variables that we're not going to use. [[ ${srcinterface} == "-" ]] && srcinterface=""