LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Squid problem: Howto always forward requests to x.y to other proxy (https://www.linuxquestions.org/questions/linux-networking-3/squid-problem-howto-always-forward-requests-to-x-y-to-other-proxy-519456/)

intens 01-15-2007 08:54 AM

Squid problem: Howto always forward requests to x.y to other proxy
 
Hello,

I have a problem regarding the squid configuration.
I want squid to always forward requests to a specific domain (for ex. "never_direct.com") to another proxy server (for example "special_proxy.com").

What I did was adding the following to the squid.conf:
Code:

cache_peer special_proxy.com parent 3128 7 no-query no-digest no-netdb-exchange login=abc:secret
cache_peer_domain special_proxy.com never_direct.com
cache_peer_domain other_peer.com !never_direct.com

acl TESTDOMAIN dstdomain never_direct.com
never_direct allow TESTDOMAIN

However it does not work as expected. The requests are redirected sometime, but not always. Sometimes the local squid directly connects to the never_direct.com, which should not happen.

Do you have any suggestions about what went wrong here?

Thanks in advance!

gabsik 01-15-2007 05:15 PM

Maybe this url can help you http://www.merlinobbs.net/Squid-Book...CACHE-PROTOCOL for sure is better than my english ...

intens 01-16-2007 03:08 AM

Thanks, but the linked website is italian and I don't understand a word. :confused:
I did look through several squid-faqs before posting here...

gabsik 01-16-2007 02:14 PM

Sorry mate ... eheheh !!!!
Look on the squid wiki http://wiki.squid-cache.org/ they might have all that you need !!!! Sorry ehehe !!!


All times are GMT -5. The time now is 05:02 AM.