summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2006-03-26 18:43:51 +0000
committerScott Ullrich <sullrich@pfsense.org>2006-03-26 18:43:51 +0000
commit223d44043529d4f56e5ce2dc33d3d47290e28a50 (patch)
tree5d4f1a9afed20edc9eb3fec3cbc113d28a492703 /etc
parentc597d50fe9f00cb4c1cda5a3fd106ed17eca5a61 (diff)
downloadpfsense-223d44043529d4f56e5ce2dc33d3d47290e28a50.zip
pfsense-223d44043529d4f56e5ce2dc33d3d47290e28a50.tar.gz
Count up 8021 + interface num for FTP Proxy
Reported-by: Derrick MacPherson
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc6
1 files changed, 4 insertions, 2 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 9f02614..640e55f 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -1534,12 +1534,14 @@ EOD;
$ipfrules .= "# enable ftp-proxy\n";
$optcfg = array();
- generate_optcfg_array($optcfg);
+ generate_optcfg_array($optcfg);
+ $ftp_counter = "8022";
foreach($optcfg as $oc) {
if(!isset($oc['gateway']) && $oc['if'] <> "") {
- $ipfrules .= "pass in quick on " . $oc['if'] . " inet proto tcp from any to \$loopback port 8021 keep state label \"FTP PROXY: Allow traffic to localhost\"\n";
+ $ipfrules .= "pass in quick on " . $oc['if'] . " inet proto tcp from any to \$loopback port {$ftp_counter} keep state label \"FTP PROXY: Allow traffic to localhost\"\n";
$ipfrules .= "pass in quick on " . $oc['if'] . " inet proto tcp from any to \$loopback port 21 keep state label \"FTP PROXY: Allow traffic to localhost\"\n";
}
+ $ftp_counter++;
}
$ipfrules .= <<<EOD
OpenPOWER on IntegriCloud