[squid-users] Whitelist domain ignored?

Alex Rousskov rousskov at measurement-factory.com
Wed Oct 5 20:43:04 UTC 2016


On 10/05/2016 01:15 PM, Jose Torres-Berrocal wrote:
> I would like to know how
> I should enter the domains as to make it work correctly using
> dstdom_regex behaving like dstdomain

To map any leaf FQDN "foo.bar.baz":

  1. start with "^";
  2. add "foo.bar.baz" where every period is escaped with "\";
  3. end with "$".

  In summary, use the following regular expression: ^foo\.bar\.baz$


To map a whole ".bar.baz" domain, including any subdomains, use the
following two regular expressions:

  \.bar\.baz$
  ^bar\.baz$

This untested suggestion is based on how regular expressions work; it
assumes that Squid does not add anything to the specified expressions.


HTH,

Alex.



More information about the squid-users mailing list