From 38560a2579ca902dfcf6a27f0f0ec2c59cf21972 Mon Sep 17 00:00:00 2001 From: Bill Marquette Date: Fri, 4 Mar 2005 16:44:03 +0000 Subject: [PATCH] Make RFC959 data port workaround configurable - default to disabled --- etc/inc/filter.inc | 18 ++++++++++++++++++ usr/local/www/system_advanced.php | 11 +++++++++++ 2 files changed, 29 insertions(+) diff --git a/etc/inc/filter.inc b/etc/inc/filter.inc index 68c2de1922..13b80be5b8 100644 --- a/etc/inc/filter.inc +++ b/etc/inc/filter.inc @@ -980,15 +980,33 @@ anchor "packageearly" # carp anchor "carp" +EOD; + + if(!isset($config['system']['disableftpproxy'])) { + $ipfrules .= << 49000 user proxy flags S/SA keep state label "FTP PROXY: PASV mode data connection" + +EOD; + + + if(isset($config['system']['rfc959workaround'])) { + $ipfrules .= << 49000 user proxy flags S/SA keep state label "FTP PROXY: RFC959 violation workaround" +EOD; + } + } + + $ipfrules .= << onclick="enable_change(false)"> Disable the userland FTP-Proxy application
+ + FTP RFC 959 data port violation workaround + + onclick="enable_change(false)"> + Workaround for sites that violate RFC 959 which specifies that the data connection be sourced from the command port - 1 (typicaly port 20). This workaround doesn't expose you to any extra risk as the firewall will still only allow connections on a port that the ftp-proxy is listening on.
+ Traffic Shaper Scheduler