diff options
author | jim-p <jimp@pfsense.org> | 2010-12-21 16:33:15 -0500 |
---|---|---|
committer | jim-p <jimp@pfsense.org> | 2010-12-21 16:33:15 -0500 |
commit | dfbb5e15dfdcacafbb7544257da252a0c4ea33ed (patch) | |
tree | ef4acd68a426549efcb6f519960564de0a0495f6 /config/squid/squid.inc | |
parent | f6776caca5afceaa1a8349cca3d263c6635bf7fb (diff) | |
download | pfsense-packages-dfbb5e15dfdcacafbb7544257da252a0c4ea33ed.tar.gz pfsense-packages-dfbb5e15dfdcacafbb7544257da252a0c4ea33ed.tar.bz2 pfsense-packages-dfbb5e15dfdcacafbb7544257da252a0c4ea33ed.zip |
Add additional fields for squid safeports and sslports. Resolves #1100
Diffstat (limited to 'config/squid/squid.inc')
-rw-r--r-- | config/squid/squid.inc | 6 |
1 files changed, 4 insertions, 2 deletions
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 = <<<EOD # Setup some default acls acl all src 0.0.0.0/0.0.0.0 acl localhost src 127.0.0.1/255.255.255.255 -acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 $webgui_port $port 1025-65535 -acl sslports port 443 563 $webgui_port +acl safeports port 21 70 80 210 280 443 488 563 591 631 777 901 $webgui_port $port 1025-65535 $addtl_ports +acl sslports port 443 563 $webgui_port $addtl_sslports acl manager proto cache_object acl purge method PURGE acl connect method CONNECT |