Proxy parent Squid

De $1

Sommaire
aucun titre

 

cache_peer proxy.isp1.com parent 8080 round-robin no-query
cache_peer proxy.isp2.com parent 8080 round-robin no-query
cache_peer proxy.isp3.com parent 8080 round-robin no-query

 

 

You can use the cache_peer directive to add parent proxies which Squid will ask for content. Furthermore you can control whether content will be fetched directly or indirectly with always_direct or never_direct respectively. 

 

cache_peer proxy.some-isp.com parent 8080 0 no-query no-digest
never_direct allow all

 

 

An example for weight:

cache_peer proxy.isp1.com parent 8080 0 no-query no-digest weight=1
cache_peer proxy.isp2.com parent 8080 0 no-query no-digest weight=2

In this example it is likely that the proxy from the second ISP will be favored over the first one.

 

 

http://tutos.tangui.eu.org/3-lier-un-squid-avec-un-autre-proxy

http://www.christianschenk.org/blog/using-a-parent-proxy-with-squid/

http://www.visolve.com/squid/squid24s1/neighbour.php#cache_peer 

 

 

Option Name: neighbor_type_domain
Replaces:  
Requires:  
Default Value: The peer type from cache_peer directive is used for all requests to that peer.
Suggested Config:
 
	Modify the cache_peer neighbor type when passing requests
	about specific domains to the peer.

	Usage:
		 neighbor_type_domain neighbor parent|sibling domain domain ...

	For example:
		cache_peer foo.example.com parent 3128 3130
		neighbor_type_domain foo.example.com sibling .au .de

	The above configuration treats all requests to foo.example.com as a
	parent proxy unless the request is for a .au or .de ccTLD domain name.
 

 

http://www.squid-cache.org/Doc/config/neighbor_type_domain/

 

sourcehashLoad-balance parents based on the client source IP 

http://squid-web-proxy-cache.1019090.n4.nabble.com/source-hash-balancing-td1032453.html

 

Multi conditions Squid

 

http://serverfault.com/questions/329164/specifying-multiple-acl-conditions-on-one-acl-line-of-squid-conf

 

essentially I want to have a file that has very specific per src ip rules. One file would make things easier to maintain: src 10.40.50.5 dstdomain intranet.loc \n src 10.40.50.6 dstdomain anothersite.net – 

 

 

http://unix.stackexchange.com/questions/20029/multiple-acls-in-squid-proxy

 

acl localnet src 10.1.1.0/24 acl special src "/etc/squid/special.txt" # All Access IPs acl unlimited src "/etc/squid/unlimited.txt"        # Full Download access acl allow_proxy src "/etc/squid/allow_proxy.txt"    # Allow Proxy sites acl allow_social src "/etc/squid/allow_social.txt"  # Allow Social networking  acl allow_tutorial src "/etc/squid/allow_tutorial.txt"  # Allow Tutorial acl allow_movie src "/etc/squid/allow_movie.txt"    # Allow Jobs acl allow_jobs src "/etc/squid/allow_jobs.txt"      # Allow Movie  #Allow / Block acl goodkey url_regex "/etc/squid/goodkey.txt" acl proxy url_regex "/etc/squid/proxy.txt" acl social url_regex "/etc/squid/social.txt" acl tutorial url_regex "/etc/squid/tutorial.txt" acl movie url_regex "/etc/squid/movie.txt" acl jobs url_regex "/etc/squid/jobs.txt"  #Download Limit reply_body_max_size 3000 KB localnet !unlimited request_body_max_size 3000 KB localnet !unlimited  #Allow http_access allow special http_access allow goodkey  #Proxy http_access allow allow_proxy http_access deny proxy  #Social http_access allow allow_social http_access deny social  #Tutorial http_access allow allow_tutorial http_access deny tutorial  #Movie http_access allow allow_movie http_access deny movie  #Jobs  http_access allow allow_jobs http_access deny jobs  #ACL Allow http_access allow localnet  #And finally deny all other access to this proxy http_access allow localhost http_access deny all

 

 http://www.developpez.net/forums/d1308216/systemes/linux/reseau/proxy-squid-parents/

 

Cette page n'a encore aucun contenu. Enrichissez Yakakliker en y contribuant vous aussi.