From 1b246529b0d3932579b85336db53c6e6a033c2eb Mon Sep 17 00:00:00 2001 From: bbruns Date: Sat, 18 Dec 2010 22:13:41 +0000 Subject: [PATCH] Push out 0.9.11 --- bin/firewall-sosdg | 2 +- conf/port-forwards.default | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/firewall-sosdg b/bin/firewall-sosdg index 67cb626..cde96a4 100755 --- a/bin/firewall-sosdg +++ b/bin/firewall-sosdg @@ -513,7 +513,7 @@ if [ "$PORTFW" ] && [ "$NAT" ]; then if [ "$SRCIP" ]; then SRCIP="-s ${SRCIP}" fi - if [ ! "$DSTIP" ]; then + if [[ ! "$DSTIP" ]] && [[ ! "$DSTIF" ]]; then DSTIP="$EXTIP" fi #PORTADD=( ${i//:/ } ) diff --git a/conf/port-forwards.default b/conf/port-forwards.default index 393e35d..f2d7c62 100644 --- a/conf/port-forwards.default +++ b/conf/port-forwards.default @@ -1,6 +1,6 @@ # Format is: # External interface:Src IP:External IP:External port:Internal ip:Internal port -# You can safely leave the interface field blank as well as the Src IP field blank -# However, you must have EXTIP defined or detected properly if you leave the External IP field blank +# You can safely leave the interface field blank as well as the Src IP and External IP field blank +# However, you need to define at least the interface or external IP or you probably will have issues. # Rename this file to port-forwards before using! #eth0:4.2.2.0:4.2.2.1:8080:tcp:192.168.0.100:80