Hi.
There are two patches in attachment that add new functionality to
squid. Both patches are used in my company.
1.
First patch (file zph_tos_acl.patch) is the extension of patch
available here http://www.it-academy.bg/zph/ used for setting TOS
value dependent of cache HIT/MISS. Attached patch extends
functionality, by allowing editing of TOS value in ACLs. This allows
setting TOS based on HIT/MISS at parent squid using information from
header. Example:
acl peer_hit rep_header X-Cache
HIT[[:space:]]from[[:space:]]proxy.domain.com
zph_tos_acl 8
zph_tos_acl_match allow peer_hit
where:
zph_tos_acl <tos> - set TOS <tos> if acl zph_tos_acl_match
matches.
I also attach original patch (file squid-2.6.12-ToS_Hit_ToS_Preserve.patch)
from http://www.it-academy.bg/zph/ bacause website is no longer available.
2.
Second patch extends functionality of squid running as a parent and
using tproxy extension.
In case of connection to parent squid, source address is the address of
other squid making connection to parent.
Patch allows using data from header X-Forwarded-For in analogous way
as in case of acl_uses_indirect_client,
delay_pool_uses_indirect_client and log_uses_indirect_client.
New options are:
outgoing_tos_uses_indirect_client - use address from header
X-Forwarded-For for tcp_outgoing_tos,
outgoing_address_uses_indirect_client - use address from header
X-Forwarded-For for tcp_outgoing_address,
tproxy_uses_indirect_client - use address from header X-Forwarded-For
as source address in case of using tproxy. Patch is in file follow_xff-tproxy.patch.
Attached patches are in production use at ISP company for few
weeks now and have worked reliably ever since.
-- cheers, Krzysztof Mościcki
This archive was generated by hypermail pre-2.1.9 : Sun Jul 01 2007 - 12:00:07 MDT