Re: [squid-users] Squid Reverse Proxy with regex matching

From: Chris Robertson <crobertson_at_gci.net>
Date: Thu, 27 Aug 2009 13:38:52 -0800

Pachulski, Keith wrote:
> I`m working on setting up squid to act as a reverse proxy on Solaris 10. The reverse proxy part is working fine. However I want to be able to control the types of traffic that is passed through the reverse proxy to only allow what I want. This part I have had 0 success with. Can someone please send me a template for what the setup would like look for doing regex pattern matching to only allow certain patterns and deny all other traffic. Here is a copy of the config as I have in there now for the proxy:
>
> cache_peer X.X.X.X parent 80 0 no-query originserver name=servername cache_peer_access servername allow internal cache_peer_access servername deny all acl internal dstdomain some.internal.server http_access allow internal
>
> Attempted to do the following with no luck:
>
> acl allowtraffic url_regex -i "/etc/squid/allowtraffic.acl"
> http_access allow allowtraffic internal
> http_access deny all
>

cache_peer X.X.X.X parent 80 0 no-query originserver name=servername
cache_peer_access servername allow internal
cache_peer_access servername deny all
acl internal dstdomain some.internal.server
acl allowtraffic url_regex -i "/etc/squid/allowtraffic.acl"
http_access allow internal allowtraffic
http_access deny all

Chris
Received on Thu Aug 27 2009 - 21:39:03 MDT

This archive was generated by hypermail 2.2.0 : Fri Aug 28 2009 - 12:00:03 MDT