Debugging...
parent
1fb4e1c5b0
commit
71bed4505a
5
README
5
README
|
@ -1,5 +1,6 @@
|
||||||
SRFirewall v2.0 http://www.sosdg.org/freestuff/firewall Written by:
|
SRFirewall v2.1
|
||||||
Brielle Bruns <bruns@2mbit.com>
|
http://www.sosdg.org/freestuff/firewall
|
||||||
|
Written by: Brielle Bruns <bruns@2mbit.com>
|
||||||
|
|
||||||
SRFirewall is a complete rewrite of Firewall/SOSDG v1.1, from scratch,
|
SRFirewall is a complete rewrite of Firewall/SOSDG v1.1, from scratch,
|
||||||
with a completely new and reorganized config and file layout.
|
with a completely new and reorganized config and file layout.
|
||||||
|
|
|
@ -476,7 +476,7 @@ function enable_nat {
|
||||||
([[ ${srcaddress} != "-" ]] && [[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && action="-j NETMAP" && srcaddress="-d ${srcaddress}" && dstaddress="--to ${dstaddress}"
|
([[ ${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.
|
# Blank variables that we're not going to use.
|
||||||
[[ ${srcinterface} == "-" ]] && srcinterface=""
|
[[ ${srcinterface} == "-" ]] && srcinterface=""
|
||||||
|
|
Loading…
Reference in New Issue