.
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 hereDescribe your package requirements hereCurrently there are no FAQ items provided.squidremotenoneProxy server: Remote proxy settings/usr/local/pkg/squid.incGeneral/pkg_edit.php?xml=squid.xml&id=0Remote Cache/pkg.php?xml=squid_upstream.xmlLocal Cache/pkg_edit.php?xml=squid_cache.xml&id=0ACLs/pkg_edit.php?xml=squid_nac.xml&id=0Traffic Mgmt/pkg_edit.php?xml=squid_traffic.xml&id=0Authentication/pkg_edit.php?xml=squid_auth.xml&id=0Users/pkg.php?xml=squid_users.xmlReal time/squid_monitor.phpSync/pkg_edit.php?xml=squid_sync.xmlStatusenablenameproxyaddrPortproxyportICPicpportPeer typehierarchyMethodpeermethodGeneral SettingslisttopicEnableenableThis option enables the proxy server to forward requests to an upstream/neighbor server.checkboxHostnameproxyaddrEnter here the IP address or host name of the upstream proxy.input35NameproxynameUnique name for the peer.Required if you have multiple peers on the same host but different ports.input35TCP portproxyportEnter the port to use to connect to the upstream proxy.input53128TimeoutconnecttimeoutA peer-specific connect timeout. Also see the peer_connect_timeout directive.input5Fail LimitconnectfailLimitHow many times connecting to a peer must fail before it is marked as down. Default is 10.input510MaxmaxconnLimit the amount of connections Squid may open to this peer.input5Allow Missallowmissallow-miss - Disable Squid's use of only-if-cached when forwarding requests to siblings. This is primarily useful when icp_hit_stale is used by the sibling.
no-tproxy - Do not use the client-spoof TPROXY support when forwarding requests to this peer. Use normal address selection instead.
proxy-only - Objects fetched from the peer will not be stored locally.]]>selectallow-miss4Peer settingslisttopicHierarchyhierarchySpecify remote caches hierarchy.selectparentSelect methodpeermethod default - This is a parent cache which can be used as a "last-resort" if a peer cannot be located by any of the peer-selection methods.
If specified more than once, only the first is used.
round-robin - Load-Balance parents which should be used in a round-robin fashion in the absence of any ICP queries. weight=N can be used to add bias.
weighted-round-robin - Load-Balance parents which should be used in a round-robin fashion with the frequency of each parent being based on the round trip time.
Closer parents are used more often. Usually used for background-ping parents. weight=N can be used to add bias.
carp - Load-Balance parents which should be used as a CARP array. The requests will be distributed among the parents based on the CARP load balancing hash function based on their weight.
userhash - Load-balance parents based on the client proxy_auth or ident username.
sourcehash - Load-balance parents based on the client source IP.
multicast-siblings - To be used only for cache peers of type "multicast".
ALL members of this multicast group have "sibling" relationship with it, not "parent". This is to a multicast group when the requested object would be fetched only from a "parent" cache, anyway.
It's useful, e.g., when configuring a pool of redundant Squid proxies, being members of the same multicast group.]]>selectround-robinweightweightUse to affect the selection of a peer during any weighted peer-selection mechanisms. The weight must be an integer; default is 1,larger weights are favored more.input51basetimebasetime
It is subtracted before division by weight in calculating which parent to fectch from. If the rtt is less than the base time the rtt is set to a minimal value.]]>input51ttlttl
Only useful when sending to a multicast group. Because we don't accept ICP replies from random hosts, you must configure other group members as peers with the 'multicast-responder' option.]]>input51no-delaynodelaycheckboxICP settingslisttopicICP porticpportEnter the port to connect to the upstream proxy for the ICP protocol. Use port number 7 to disable ICP communication between the proxies.input57ICP Optionsicpoptions
The defaults will prevent peer traffic using ICP
no-query - Disable ICP queries to this neighbor.
multicast-responder -Indicates the named peer is a member of a multicast group.
ICP queries will not be sent directly to the peer, but ICP replies will be accepted from it.
closest-only - Indicates that, for ICP_OP_MISS replies, we'll only forward CLOSEST_PARENT_MISSes and never FIRST_PARENT_MISSes.
background-ping - To only send ICP queries to this neighbor infrequently.
This is used to keep the neighbor round trip time updated and is usually used in conjunction with weighted-round-robin.]]>selectno-queryAuth settingslisttopicUsernameusernameIf the upstream proxy requires a username, specify it here.inputPasswordpasswordIf the upstream proxy requires a password, specify it here.passwordAuthentication optionsauthoptionlogin=user:password - If this is a personal/workgroup proxy and your parent requires proxy authentication.
login=PASSTHRU - Send login details received from client to this peer. Authentication is not required by Squid for this to work.
This will pass any form of authentication but only Basic auth will work through a proxy unless the connection-auth options are also used.
login=PASS - Send login details received from client to this peer.Authentication is not required by this option.
To combine this with proxy_auth both proxies must share the same user database as HTTP only allows for a single login (one for proxy, one for origin server).
Also be warned this will expose your users proxy password to the peer. USE WITH CAUTION
login=*:password - Send the username to the upstream cache, but with a fixed password. This is meant to be used when the peer is in another administrative domain, but it is still needed to identify each user.
login=NEGOTIATE - If this is a personal/workgroup proxy and your parent requires a secure proxy authentication.
The first principal from the default keytab or defined by the environment variable KRB5_KTNAME will be used.
WARNING: The connection may transmit requests from multiple clients. Negotiate often assumes end-to-end authentication and a single-client. Which is not strictly true here.
login=NEGOTIATE:principal_nameIf this is a personal/workgroup proxy and your parent requires a secure proxy authentication.
The principal principal_name from the default keytab or defined by the environment variable KRB5_KTNAME will be used.
WARNING: The connection may transmit requests from multiple clients. Negotiate often assumes end-to-end authentication and a single-client. Which is not strictly true here.
connection-auth=on - Tell Squid that this peer does support Microsoft connection oriented authentication, and any such challenges received from there should be ignored.
Default is auto to automatically determine the status of the peer.
connection-auth=off - Tell Squid that this peer does not support Microsoft connection oriented authentication, and any such challenges received from there should be ignored.
Default is auto to automatically determine the status of the peer.]]>selectlogin=*:password
squid_validate_upstream($_POST, &$input_errors);
squid_resync();