[squid-users] Whitelist domain ignored?

Jose Torres-Berrocal jetsystemservices at gmail.com
Wed Oct 5 20:59:03 UTC 2016


Please confirm equivalence:

1.
acl whitelist1 dstdomain .familymedicinepr.com .mail.yahoo.com
.neodecksoftware.com .office.net
=
acl whitelist2 dstdom_regex ^familymedicinepr\.com$ ^mail\.yahoo\.com$
^neodecksoftware\.com$ ^office\.net$

OR

2.
acl whitelist1 dstdomain .familymedicinepr.com .mail.yahoo.com
.neodecksoftware.com .office.net
=
acl whitelist2 dstdom_regex ^familymedicinepr\.com$ ^mail\.yahoo\.com$
^neodecksoftware\.com$ ^office\.net$ \familymedicinepr\.com$
\mail\.yahoo\.com$ \neodecksoftware\.com$ \office\.net$
Jose E Torres
939-777-4030
JET System Services


On Wed, Oct 5, 2016 at 4:43 PM, Alex Rousskov
<rousskov at measurement-factory.com> wrote:
> 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