squid-2.5 has ACL driven tcp_outgoing_address selection. What is missing
to be able to select IP address based on which parent the request is
forwarded to is acls for matching with parent the request is sent to..
The "dst" acl type matches the IP address of the requested host/domain
found in the URL, not the actual IP address the request is forwarded to
when forwarding to a peer proxy server.
Regards
Henrik
mån 2003-03-03 klockan 19.46 skrev atit_ldce:
> i have following tag in my conf file
>
> acl all src 192.68.1.0/24
> acl parent1 dst 192.68.2.0
> acl sibling1 dst 192.68.3.0
>
> ....
>
> /* in following tag flag is added by me so that based on it's value i am deciding whether to pass client ip or not....
> assume my m/c has more than one live ip address
> */
>
> tcp_outgoing_address 192.68.2.10 flag parent1
> tcp_outgoing_address 192.68.3.10 flag parent1
> tcp_outgoing_address 192.68.1.10 flag all
>
> i am sending reqeust from 192.68.9.0
>
> assume all mentioned ip address are public..
>
> assume i have made collobration with parent1 and sibling1 so that they also allow my client ip 192.68.1.* to access their cache...
>
> this collobration is specified by flag field in tcp_outgoing tag corrospond to parent1 peer
>
> now i want to fetch that flag value when parent1 will reply with ICP_HIT
> and based on that i will decide whether to pass client ip address or address 192.68.2.10
>
> how can i achieve this....
>
> summerizing...
>
> my objective is to fetch flag corrospond to parent1 defined as dst acl tag
>
> thanks
>
>
>
> _____________________________________________________________________
> Get your internet connection from the fastest growing digital network.
> ICENET
> visit our site www.icenet.net
-- Henrik Nordstrom <hno@squid-cache.org> MARA Systems AB, SwedenReceived on Mon Mar 03 2003 - 09:10:52 MST
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:19:24 MST