From dfbb5e15dfdcacafbb7544257da252a0c4ea33ed Mon Sep 17 00:00:00 2001 From: jim-p Date: Tue, 21 Dec 2010 16:33:15 -0500 Subject: Add additional fields for squid safeports and sslports. Resolves #1100 --- config/squid/squid.inc | 6 ++++-- config/squid/squid_nac.xml | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 2 deletions(-) (limited to 'config') diff --git a/config/squid/squid.inc b/config/squid/squid.inc index 98192253..f3936567 100644 --- a/config/squid/squid.inc +++ b/config/squid/squid.inc @@ -797,14 +797,16 @@ function squid_resync_nac() { $port = ($settings['proxy_port'] ? $settings['proxy_port'] : 3128); $settings = $config['installedpackages']['squidnac']['config'][0]; $webgui_port = $config['system']['webgui']['port']; + $addtl_ports = $settings['addtl_ports']; + $addtl_sslports = $settings['addtl_sslports']; $conf = <<input 60 + + acl safeports + addtl_ports + This is a space-separated list of "safe ports" in addition to the already defined list: 21 70 80 210 280 443 488 563 591 631 777 901 1025-65535 + input + 60 + + + + acl sslports + addtl_sslports + This is a space-separated list of ports to allow SSL "CONNECT" in addition to the already defined list: 443 563 + input + 60 + + squid_validate_nac($_POST, &$input_errors); -- cgit v1.2.3