[squid-users] cant download microsoft cert file

robert k Wild robertkwild at gmail.com
Mon Dec 16 09:10:23 UTC 2019


Would this work aswell

refresh_pattern -i /etc/squid/wu.txt
/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip)
<http://microsoft.com/.*%5C.%28cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip%29>
4320
80% 43200 reload-into-ims

And in wu.txt

.microsoft.com
.windows.com
.windowsupdate.com

Exactly like my dstdomain

On Mon, 16 Dec 2019, 08:37 Alex Crow, <alex at nanogherkin.com> wrote:

> On 16/12/2019 08:06, robert k Wild wrote:
>
> How can I make a pattern that matches multiple domains please Amos?
>
>
> >
>> > refresh_pattern -i .microsoft.com .windows.com
>> > .windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip)
>> <http://windowsupdate.com/.*%5C.(cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip)>
>> > <
>> http://microsoft.com/.*%5C.%28cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip%29
>> > 4320
>> > 80% 43200 reload-into-ims
>> >
>
>
> That's not really a subject for this list - search online for "regex" and
> you will see multiple tutorials about it.
>
> You use a syntax like "(.microsoft.com|.windows.com|( <http://windows.com>
> .
> windowsupdate.com/.*\.(cab|exe|ms[i|u|f]|[ap]sf|wm[v|a]|dat|zip)|foo.com)"
> <http://windowsupdate.com/.*%5C.(cab%7Cexe%7Cms%5Bi%7Cu%7Cf%5D%7C%5Bap%5Dsf%7Cwm%5Bv%7Ca%5D%7Cdat%7Czip)>
>
> eg (x|y|z(a|b)) would match x, y, za and zb.
>
> Cheers
>
> Alex
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20191216/4ab7816e/attachment.html>


More information about the squid-users mailing list