diff options
-rw-r--r-- | config/ftpproxy/ftpproxy.inc | 7 | ||||
-rw-r--r-- | config/ftpproxy/ftpproxy.xml | 9 | ||||
-rw-r--r-- | config/squid3/34/squid.xml | 4 | ||||
-rw-r--r-- | pkg_config.10.xml | 2 |
4 files changed, 17 insertions, 5 deletions
diff --git a/config/ftpproxy/ftpproxy.inc b/config/ftpproxy/ftpproxy.inc index 386a1d84..cc2aa27a 100644 --- a/config/ftpproxy/ftpproxy.inc +++ b/config/ftpproxy/ftpproxy.inc @@ -125,6 +125,11 @@ function ftpproxy_generate_rules($type) { global $config; $cf = $config['installedpackages']['ftpclientproxy']['config'][0]; $interface_list = explode(",", $cf['localints']); + if ($cf['earlyrule']) { + $ruletype = "pfearly"; + } else { + $ruletype = "filter"; + } /* Proxy is not enabled, therefore, no rules/anchors. */ if ($cf["proxy_enable"] != "on") { @@ -164,7 +169,7 @@ function ftpproxy_generate_rules($type) { $rules .= "rdr pass on {$interface} inet proto tcp from any to any port 21 -> 127.0.0.1 port " . ftpproxy_get_port() . "\n"; } break; - case "filter": + case $ruletype: $rules .= "anchor \"ftp-proxy/*\"\n"; // $rules = "pass out proto tcp from any to any port 21\n"; break; diff --git a/config/ftpproxy/ftpproxy.xml b/config/ftpproxy/ftpproxy.xml index 53740832..d45e4eb6 100644 --- a/config/ftpproxy/ftpproxy.xml +++ b/config/ftpproxy/ftpproxy.xml @@ -41,7 +41,7 @@ ]]> </copyright> <name>FTP Client Proxy</name> - <version>0.2.2</version> + <version>0.3</version> <title>FTP Client Proxy</title> <aftersaveredirect>pkg_edit.php?xml=ftpproxy.xml</aftersaveredirect> <include_file>/usr/local/pkg/ftpproxy.inc</include_file> @@ -87,6 +87,13 @@ <multiple/> </field> <field> + <fielddescr>Early Firewall Rule</fielddescr> + <fieldname>earlyrule</fieldname> + <description>Check this box to move the automatically added FTP rules higher in the ruleset to bypass explicit blocks. Helps allow passive FTP to arbitrary destinations, but FTP will always be allowed outbound when checked.</description> + <type>checkbox</type> + <default_value>off</default_value> + </field> + <field> <fielddescr>Anonymous Only</fielddescr> <fieldname>anononly</fieldname> <description>Only permit anonymous FTP connections using the "ftp" or "anonymous" users.</description> diff --git a/config/squid3/34/squid.xml b/config/squid3/34/squid.xml index f0289e6e..a7b53fca 100644 --- a/config/squid3/34/squid.xml +++ b/config/squid3/34/squid.xml @@ -128,7 +128,7 @@ <item>https://packages.pfsense.org/packages/config/squid3/34/squid_antivirus.inc</item> </additional_files_needed> <additional_files_needed> - <prefix>/usr/local/www/widgets/include</prefix> + <prefix>/usr/local/www/widgets/include/</prefix> <item>https://packages.pfsense.org/packages/config/squid3/34/squid_antivirus_status.inc</item> </additional_files_needed> <additional_files_needed> @@ -204,7 +204,7 @@ <!-- END XML files --> <!-- START additional PHP files --> <additional_files_needed> - <prefix>/usr/local/www/widgets/widgets</prefix> + <prefix>/usr/local/www/widgets/widgets/</prefix> <item>https://packages.pfsense.org/packages/config/squid3/34/squid_antivirus_status.widget.php</item> </additional_files_needed> <additional_files_needed> diff --git a/pkg_config.10.xml b/pkg_config.10.xml index 0656498c..7dac43b3 100644 --- a/pkg_config.10.xml +++ b/pkg_config.10.xml @@ -1726,7 +1726,7 @@ <descr>Basic FTP Client Proxy using ftp-proxy from FreeBSD.</descr> <pkginfolink>https://forum.pfsense.org/index.php?topic=89841.0</pkginfolink> <maintainer>jimp@pfsense.org</maintainer> - <version>0.2.2</version> + <version>0.3</version> <category>Services</category> <status>Beta</status> <port_category>ftp</port_category> |