From e1d40c40e30883031d3565d305c09b91781d15aa Mon Sep 17 00:00:00 2001 From: Martin Fuchs Date: Tue, 27 Sep 2011 23:03:51 +0200 Subject: few options beginning to work --- config/squid-reverse/squid.inc | 12 ++++++++---- config/squid-reverse/squid_reverse.xml | 7 ------- 2 files changed, 8 insertions(+), 11 deletions(-) (limited to 'config') diff --git a/config/squid-reverse/squid.inc b/config/squid-reverse/squid.inc index d0dad31d..cbd18b68 100644 --- a/config/squid-reverse/squid.inc +++ b/config/squid-reverse/squid.inc @@ -489,6 +489,7 @@ function squid_validate_traffic($post, $input_errors) { function squid_validate_reverse($post, $input_errors) { +// CONF } @@ -595,7 +596,7 @@ function squid_resync_general() { $settings = $config['installedpackages']['squid']['config'][0]; $conf = "# This file is automatically generated by pfSense\n"; - $conf = "# Do not edit manually !\n"; + $conf .= "# Do not edit manually !\n"; $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); $ifaces = ($settings['active_interface'] ? $settings['active_interface'] : 'lan'); @@ -946,9 +947,12 @@ function squid_resync_reverse() { return; $settings = $config['installedpackages']['squidreverse']['config'][0]; $conf = ''; - - - + +// CONF + $conf .= "# Reverse Proxy settings\n"; + if (!empty($settings['extension_methods'])) $conf .= "extension_methods {$settings['extension_methods']}\n"; + if (!empty($settings['deny_info_tcp_reset'])) $conf .= "deny_info TCP_RESET all\n"; + return $conf; } diff --git a/config/squid-reverse/squid_reverse.xml b/config/squid-reverse/squid_reverse.xml index 93e1c595..240cd26e 100644 --- a/config/squid-reverse/squid_reverse.xml +++ b/config/squid-reverse/squid_reverse.xml @@ -114,7 +114,6 @@ This is the port the HTTP reverse-proxy will listen on. input 5 - 80 @@ -123,7 +122,6 @@ This is the HTTP reverse default site. input 60 - localhost @@ -142,7 +140,6 @@ This is the port the HTTPS reverse-proxy will listen on. input 5 - 443 @@ -151,7 +148,6 @@ This is the HTTPS reverse default site. input 60 - localhost @@ -195,7 +191,6 @@ This is the internal published server peer IP. input 15 - internalhost @@ -205,7 +200,6 @@ This is the internal published server peer port. input 5 - 80 @@ -215,7 +209,6 @@ This is the URL to publish. input 60 - -- cgit v1.2.3