Browse Source

Debugging...

Brielle Bruns 4 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 @@
1
-SRFirewall v2.0 http://www.sosdg.org/freestuff/firewall Written by:
2
-Brielle Bruns <bruns@2mbit.com>
1
+SRFirewall v2.1
2
+http://www.sosdg.org/freestuff/firewall
3
+Written by: Brielle Bruns <bruns@2mbit.com>
3 4
 
4 5
 SRFirewall is a complete rewrite of Firewall/SOSDG v1.1, from scratch,
5 6
 with a completely new and reorganized config and file layout.

+ 1
- 1
lib/iptables.inc View File

@@ -476,7 +476,7 @@ function enable_nat {
476 476
 			([[ ${srcaddress} != "-" ]] && [[ ${dstaddress} != "-" ]] && [[ ${type} == "NETMAP" ]]) && action="-j NETMAP" && srcaddress="-d ${srcaddress}" && dstaddress="--to ${dstaddress}"
477 477
 			
478 478
 
479
-			${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${direction} ${action} ${interface} ${srcaddress} ${srcport} ${dstaddress} ${dstport} ${protocol} ${custom}"
479
+			${debug} ${DebugColor} "${FUNCNAME}:${DEFAULT_COLOR}${direction} ${action} ${srcinterface} ${srcaddress} ${srcport} ${dstinterface} ${dstaddress} ${dstport} ${protocol} ${custom}"
480 480
 			
481 481
 			# Blank variables that we're not going to use.
482 482
 			[[ ${srcinterface} == "-" ]] && srcinterface=""

Loading…
Cancel
Save