. All rights reserved. */ /* ========================================================================== */ /* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ /* ========================================================================== */ ]]> Describe your package here Describe your package requirements here Currently there are no FAQ items provided. squid 3.1.STABLE19 Proxy server: General settings /usr/local/pkg/squid.inc Proxy server Modify the proxy server's settings
Services
/pkg_edit.php?xml=squid.xml&id=0
Reverse Proxy Modify the proxy reverse server's settings
Services
/pkg_edit.php?xml=squid_reverse_general.xml&id=0
squid squid.sh squid Proxy server Service General /pkg_edit.php?xml=squid.xml&id=0 Upstream /pkg_edit.php?xml=squid_upstream.xml&id=0 Cache /pkg_edit.php?xml=squid_cache.xml&id=0 ACLs /pkg_edit.php?xml=squid_nac.xml&id=0 Traffic Mgmt /pkg_edit.php?xml=squid_traffic.xml&id=0 Authentication /pkg_edit.php?xml=squid_auth.xml&id=0 Users /pkg.php?xml=squid_users.xml Sync /pkg_edit.php?xml=squid_sync.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid.inc /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_reverse_general.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_reverse_peer.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_reverse_uri.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_reverse_sync.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_sync.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_cache.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_nac.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_ng.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_ng.inc /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_traffic.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_upstream.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_reverse.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_reverse.inc /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_auth.xml /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/squid_users.xml /usr/local/etc/rc.d/ 0755 http://www.pfsense.org/packages/config/squid-reverse/proxy_monitor.sh /usr/local/pkg/ 0755 http://www.pfsense.org/packages/config/squid-reverse/swapstate_check.php Squid General Settings listtopic Proxy interface active_interface The interface(s) the proxy server will bind to. interfaces_selection lan Proxy port proxy_port This is the port the proxy server will listen on. input 5 3128 ICP port icp_port This is the port the Proxy Server will send and receive ICP queries to and from neighbor caches. Leave this blank if you don't want the proxy server to communicate with neighbor caches through ICP. input 5 Allow users on interface allow_interface If this field is checked, the users connected to the interface selected in the 'Proxy interface' field will be allowed to use the proxy, i.e., there will be no need to add the interface's subnet to the list of allowed subnets. This is just a shortcut. checkbox on Transparent proxy transparent_proxy If transparent mode is enabled, all requests for destination port 80 will be forwarded to the proxy server without any additional configuration necessary. checkbox private_subnet_proxy_off,defined_ip_proxy_off,defined_ip_proxy_off_dest Bypass proxy for Private Address Space (RFC 1918) destination private_subnet_proxy_off Do not forward traffic to Private Address Space (RFC 1918) <b>destination</b> through the proxy server but directly through the firewall. checkbox Bypass proxy for these source IPs defined_ip_proxy_off Do not forward traffic from these <b>source</b> IPs, CIDR nets, hostnames, or aliases through the proxy server but directly through the firewall. Separate by semi-colons (;). [Applies only to transparent mode] input 70 Bypass proxy for these destination IPs defined_ip_proxy_off_dest Do not proxy traffic going to these <b>destination</b> IPs, CIDR nets, hostnames, or aliases, but let it pass directly through the firewall. Separate by semi-colons (;). [Applies only to transparent mode] input 70 Use alternate DNS-servers for the proxy-server dns_nameservers If you want to use other DNS-servers than the DNS-forwarder, enter the IPs here, separated by semi-colons (;). input 70 Logging Settings listtopic Enabled logging log_enabled This will enable the access log. Don't switch this on if you don't have much disk space left. checkbox log_query_terms,log_user_agents Log store directory log_dir The directory where the log will be stored (note: do not end with a / mark) input 60 /var/squid/logs Log rotate log_rotate Defines how many days of logfiles will be kept. Rotation is disabled if left empty. input 5 Visible hostname visible_hostname This is the URL to be displayed in proxy server error messages. input 60 localhost Administrator email admin_email This is the email address displayed in error messages to the users. input 60 admin@localhost Language error_language Select the language in which the proxy server will display error messages to users. select English 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 Disable VIA disable_via If not set, Squid will include a Via header in requests and replies as required by RFC2616. checkbox What to do with requests that have whitespace characters in the URI uri_whitespace <b> strip:</b> The whitespace characters are stripped out of the URL. This is the behavior recommended by RFC2396. <p> <b> deny:</b> The request is denied. The user receives an "Invalid Request" message.<p> <b> allow:</b> The request is allowed and the URI is not changed. The whitespace characters remain in the URI.<p> <b> encode:</b> The request is allowed and the whitespace characters are encoded according to RFC1738.<p> <b> chop:</b> The request is allowed and the URI is chopped at the first whitespace. select strip Suppress Squid Version disable_squidversion If set, suppress Squid version string info in HTTP headers and HTML error pages. checkbox Custom Settings listtopic Integrations custom_options textarea base64 78 5 Custom Options custom_options_squid3 They need to be squid.conf native options, otherwise squid will NOT work.]]> textarea base64 78 10 squid_before_form_general(&$pkg); squid_resync(); squid_validate_general($_POST, &$input_errors); squid_resync(); exec("/bin/rm -f /usr/local/etc/rc.d/squid"); update_status("Checking Squid cache... One moment please..."); update_output_window("This operation may take quite some time, please be patient. Do not press stop or attempt to navigate away from this page during this process."); squid_install_command(); squid_resync(); exec("/bin/rm -f /usr/local/etc/rc.d/squid"); squid_deinstall_command(); exec("/bin/rm -f /usr/local/etc/rc.d/squid*"); squid_generate_rules