From 8f39b49bf9c821a2c2001e182c7b126a5223fbcb Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sun, 20 Feb 2005 02:36:58 +0000 Subject: [PATCH] Handle multiple port redirection correctly --- etc/inc/filter.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index ae7428fafe..1149c6172d 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -819,11 +819,11 @@ function filter_nat_rules_generate() { } else { if($rule['protocol'] == "tcp/udp") $natrules .= - "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:{$extport[1]}" . + "rdr on $natif proto { tcp udp } from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:*" . "-> {$target}"; else $natrules .= - "rdr on $natif proto " . $rule['protocol']. " from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:{$extport[1]}" . + "rdr on $natif proto " . $rule['protocol']. " from any to {$extaddr} port {$extport[0]}:{$extport[1]} -> {$target} port {$extport[0]}:*" . "-> {$target}"; }