Hi Amos , Thank you for you info . indeed i read about reply header ACL That : ############################################## One or more Squid ACLs may be specified to restrict header injection to matching responses. As always in squid.conf, all ACLs in the ACL list must be satisfied for the insertion to happen. The reply_header_add option supports fast ACLs only. See also: request_header_add. ################################################# im not sure what do i need to let the output single value and not multiple values . about your Question : 1- why mutiple replies do we recieve not single reply ? What do you mean by "multiple replies" ? ————> i mean i would like the result to be as below : * Rebuilt URL to: ifconfig.io/ * Trying 12.13.100.250... * TCP_NODELAY set * Connected to 12.13.100.250 (12.13.100.250) port 2000 (#0) * Proxy auth using Basic with user 'hi' > GET http://ifconfig.io/ HTTP/1.1 > Host: ifconfig.io > Proxy-Authorization: Basic YmVuOmJlbg== > User-Agent: curl/7.54.0 > Accept: */* > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 OK < Date: Wed, 17 Jul 2019 09:34:57 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 40 < Connection: keep-alive < start: A < 12.13.100.1 * Connection #0 to host 12.13.100.250 left intact * Rebuilt URL to: ifconfig.io/ * Trying 12.13.100.250... * TCP_NODELAY set * Connected to 12.13.100.250 (12.13.100.250) port 2000 (#0) * Proxy auth using Basic with user 'hi' > GET http://ifconfig.io/ HTTP/1.1 > Host: ifconfig.io > Proxy-Authorization: Basic YmVuOmJlbg== > User-Agent: curl/7.54.0 > Accept: */* > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 OK < Date: Wed, 17 Jul 2019 09:34:57 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 40 < Connection: keep-alive < start: B < 12.13.100.2 * Connection #0 to host 12.13.100.250 left intact * Rebuilt URL to: ifconfig.io/ * Trying 12.13.100.250... * TCP_NODELAY set * Connected to 12.13.100.250 (12.13.100.250) port 2000 (#0) * Proxy auth using Basic with user 'hi' > GET http://ifconfig.io/ HTTP/1.1 > Host: ifconfig.io > Proxy-Authorization: Basic YmVuOmJlbg== > User-Agent: curl/7.54.0 > Accept: */* > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 OK < Date: Wed, 17 Jul 2019 09:34:57 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 40 < Connection: keep-alive < start: C < 12.13.100.3 * Connection #0 to host 12.13.100.250 left intact * Rebuilt URL to: ifconfig.io/ * Trying 12.13.100.250... * TCP_NODELAY set * Connected to 12.13.100.250 (12.13.100.250) port 2000 (#0) * Proxy auth using Basic with user 'hi' > GET http://ifconfig.io/ HTTP/1.1 > Host: ifconfig.io > Proxy-Authorization: Basic YmVuOmJlbg== > User-Agent: curl/7.54.0 > Accept: */* > Proxy-Connection: Keep-Alive > < HTTP/1.1 200 OK < Date: Wed, 17 Jul 2019 09:34:57 GMT < Content-Type: text/plain; charset=utf-8 < Content-Length: 40 < Connection: keep-alive < start: D < 12.13.100.4 * Connection #0 to host 12.13.100.250 left intact ############################################### Check the 4 tests above … those i want the result to be . if i have external ip 12.13.100.4 , the Header should be single and = < start: D if i go external 12.13.100.3 ,the Header should be single and = < start: C if i go external 12.13.100.2 ,the Header should be single and = < start: B if i go external 12.13.100.1 ,the Header should be single and = < start: B SO basically i want 1 answer matching the acl : acl half10000 random 1/10 acl half10001 random 1/9 acl half10002 random 1/8 acl half10003 random 1/7 acl half10004 random 1/6 acl half10005 random 1/5 acl half10006 random 1/4 acl half10007 random 1/3 acl half10008 random 1/2 acl half10009 random 1/1 as you see above the ACLS above should be matching single values not multiple values . and when i get multiple headers replies it doesnt satisfying my needs . what do you think amos ? Thanks agian
|
_______________________________________________ squid-users mailing list squid-users@xxxxxxxxxxxxxxxxxxxxx http://lists.squid-cache.org/listinfo/squid-users