summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-02-01 21:39:06 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-02-01 21:39:06 +0000
commit0a9a826cd6e84d4350b7e7ac4c390b19aa764a71 (patch)
tree3fd6510547e2d627d078e0b2aa70b89ddfc49b16 /etc
parent5a81a54eb6721932debcde43ba72bdce67faa706 (diff)
downloadpfsense-0a9a826cd6e84d4350b7e7ac4c390b19aa764a71.zip
pfsense-0a9a826cd6e84d4350b7e7ac4c390b19aa764a71.tar.gz
Do not redirect 1:1 ftp traffic to pftpx. Let FTP Sesame handle it.
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/filter.inc4
1 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc
index 0f13c2e..83ef3c7 100644
--- a/etc/inc/filter.inc
+++ b/etc/inc/filter.inc
@@ -726,6 +726,10 @@ function filter_nat_rules_generate() {
$iflist['opt' . $i] = "opt{$i}";
$interface_counter = 0;
$vpns_list = get_vpns_list();
+ /* prevent 1:1 ips from pftpx, they will be handled by ftp-sesame */
+ if($config['nat']['onetoone'])
+ foreach ($config['nat']['onetoone'] as $vipent)
+ $vpns_list .= "{$vipent['internal']} ";
if($vpns_list)
$natrules .= "table <vpns> { $vpns_list }\n";
/* loop through all interfaces and handle pftpx redirections */
OpenPOWER on IntegriCloud