summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ipmasq/rules/M80pfw.def5
1 files changed, 3 insertions, 2 deletions
diff --git a/ipmasq/rules/M80pfw.def b/ipmasq/rules/M80pfw.def
index 38e212f..b3792ac 100644
--- a/ipmasq/rules/M80pfw.def
+++ b/ipmasq/rules/M80pfw.def
@@ -5,7 +5,8 @@
# However, any changes you make to this file will be preserved.
#: Masquerade packets from internal networks
-if [ -n "$INTERNAL" -a -n "$EXTERNAL" -a -n "$PFW" ]; then
+#if [ -n "$INTERNAL" -a -n "$EXTERNAL_IN" -a -n "$PFW" ]; then
+if [ -n "$EXTERNAL_IN" -a -n "$PFW" ]; then
for pool in $PFWPOOLS; do
eval "PROTOS=\"\$PFWPROTO_$pool\""
eval "ORIGPORTS=\"\$PFWORIGPORTS_$pool\""
@@ -14,7 +15,7 @@ if [ -n "$INTERNAL" -a -n "$EXTERNAL" -a -n "$PFW" ]; then
for PROTO in $PROTOS; do
for ORIGPORT in $ORIGPORTS; do
ORIGPORT_DASH=$(echo $ORIGPORT | sed 's/:/-/g')
- for j in $EXTERNAL; do
+ for j in $EXTERNAL_IN; do
ipnm_cache $j
EXTIP=$IPOFIF
case $MASQMETHOD in