Browse Source

Debugging...

tags/v2.1a1
Brielle Bruns 6 years ago
parent
commit
71bed4505a
2 changed files with 4 additions and 3 deletions
  1. +3
    -2
      README
  2. +1
    -1
      lib/iptables.inc

+ 3
- 2
README View File

@@ -1,5 +1,6 @@
SRFirewall v2.0 http://www.sosdg.org/freestuff/firewall Written by:
Brielle Bruns <bruns@2mbit.com>
SRFirewall v2.1
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,
with a completely new and reorganized config and file layout.


+ 1
- 1
lib/iptables.inc View File

@@ -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=""


Loading…
Cancel
Save