ubuntu:squid:connecting_squid_servers
Ubuntu - Squid - Connecting Squid Servers
The cache_peer directive sets your peer caches and informs Squid how to communicate with them.
It is written like this:
cache_peer hostname Server-type http-port icp-port [options]
The first argument is the other squid hostname or IP address.
The 2nd argument specifies the type of the other server.
The 3rd argument is the port number.
The 4th argument specifies the ICP port (Internet Caching Protocol) which is 3130. This is used to query other cache servers.
The cache_peer has some options you can use like:
- proxy-only: This option prevents Squid from saving any responses it receives from the other squid server.
- no-delay: If any delay, it will be ignored.
- login= user:password: The authentication credentials to the other server. It takes this formula login =user:password
- connect-timeout: This option specifies the connection timeout to other squid servers.
Write your options and save the configuration file and restart the service.
ubuntu/squid/connecting_squid_servers.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1