From 5bf67414fb8f34516189c97fb1b8f65b28756871 Mon Sep 17 00:00:00 2001 From: Cino Date: Fri, 16 Jan 2015 10:23:59 -0500 Subject: add new X-Forward Mode options --- config/squid3/34/squid.xml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/config/squid3/34/squid.xml b/config/squid3/34/squid.xml index 9bd31d5f..8103ce2c 100644 --- a/config/squid3/34/squid.xml +++ b/config/squid3/34/squid.xml @@ -485,10 +485,18 @@ en - Disable X-Forward - disable_xforward - If not set, Squid will include your system's IP address or name in the HTTP requests it forwards. - checkbox + X-Forward Mode + xforward_mode + <p><b> on:</b> Squid will append your client's IP address in the HTTP requests it forwards. (Default)<p> By default it looks like: X-Forwarded-For: 192.1.2.3 <p> <b> off:</b> It will appear as: X-Forwarded-For: unknown<p> <b> transparent:</b> Squid will not alter the X-Forwarded-For header in any way.<p> <b> delete:</b> Squid will delete the entire X-Forwarded-For header.<p> <b> truncate:</b> Squid will remove all existing X-Forwarded-For entries, and place the client IP as the sole entry. + select + on + + + + + + + Disable VIA -- cgit v1.2.3 From 273ce40be69f8d052d8375cdefec203b8c4bf5ac Mon Sep 17 00:00:00 2001 From: Cino Date: Fri, 16 Jan 2015 10:25:14 -0500 Subject: add new X-Forward Mode options --- config/squid3/34/squid.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/squid3/34/squid.inc b/config/squid3/34/squid.inc index e2c8c71a..a058927e 100755 --- a/config/squid3/34/squid.inc +++ b/config/squid3/34/squid.inc @@ -1030,7 +1030,8 @@ EOD; $conf .= "acl localnet src $src\n"; $valid_acls[] = 'localnet'; } - if ($settings['disable_xforward']) $conf .= "forwarded_for off\n"; + if ($settings['xforward_mode']) $conf .= "forwarded_for {$settings['xforward_mode']}\n"; + else $conf .= "forwarded_for on\n"; //only used for first run if ($settings['disable_via']) $conf .= "via off\n"; if ($settings['disable_squidversion']) $conf .= "httpd_suppress_version_string on\n"; if (!empty($settings['uri_whitespace'])) $conf .= "uri_whitespace {$settings['uri_whitespace']}\n"; -- cgit v1.2.3 From 72b9436fbfe460b3b5c8308ad4d523d56d924bfd Mon Sep 17 00:00:00 2001 From: Cino Date: Fri, 16 Jan 2015 12:16:05 -0500 Subject: Add new X-Forward Mode option to GUI --- pkg_config.10.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg_config.10.xml b/pkg_config.10.xml index b4e5f405..394cb595 100644 --- a/pkg_config.10.xml +++ b/pkg_config.10.xml @@ -909,7 +909,7 @@ https://forum.pfsense.org/index.php/topic,48347.0.html http://www.squid-cache.org/ Network - 3.4.10_2 pkg 0.2.5 + 3.4.10_2 pkg 0.2.6 beta 2.2 marcellocoutinho@gmail.com fernando@netfilter.com.br seth.mos@dds.nl mfuchs77@googlemail.com jimp@pfsense.org -- cgit v1.2.3