Score:0

Squid configuration to forward another proxy for internet only

jp flag

I just installed squid proxy server on Linux. I am now configurating squid .

I have a set of ip defined for intranet. Internet are those that is not intranet.

If destination is to internet, I want the squid to forward to another proxy which has authetication with login and password.

If destination is intranet , it won't forward to other proxy.

If the destination is to intranet or internet, I want to go through this squid for cacheing purpose.

jp flag
Show you existing squid config (without comments).
Hairy Ass avatar
jp flag
@AlexD see answer
Score:0
jp flag

I have figure it out. I defined a bunch of ips as localnet, for those that are not localnet it will forward to the parentproxy. for those there are localnet, it will be fetch directly

cache_peer ipofparentproxy parent 8080 0 no-query default 
cache_peer_access ipofparentproxy allow !localnet
never_direct deny localnet
never_direct allow all

dns_nameservers ipofdnsa, ipofdnsb
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.