[squid-users] URL list from a URL
Yuri Voinov
yvoinov at gmail.com
Tue Mar 21 21:25:08 UTC 2017
22.03.2017 2:32, Jason B. Nance пишет:
> I'm sorry, this message was sent prematurely. :-\
>
> Completed message follows.
>
>
> Hi Yuri,
>
> I should have mentioned that I'm not caching, I'm only using Squid for whitelisting in this case. Would you still say this is the right path? It seems that there is a fair amount of hard coding in this method at least based on:
>
> http://wiki.squid-cache.org/Features/StoreID/DB
>
> I guess a URL regex could also work given that all the URIs are similar.
Mmmmmmmm. May be. You can write common regex for all mirrors, yes.
> Regards,
>
> j
>
>
> ----- Original Message -----
> From: "Yuri Voinov" <yvoinov at gmail.com>
> To: squid-users at lists.squid-cache.org
> Sent: Tuesday, March 21, 2017 1:19:43 PM
> Subject: Re: [squid-users] URL list from a URL
>
> Yes.
>
> Functionality you required is:
>
> http://wiki.squid-cache.org/Features/StoreID
>
>
> 21.03.2017 21:52, Jason B. Nance пишет:
>> Hello,
>>
>> I'm using Squid 3.5.20 and wonder if it is possible to define an ACL which retrieves the list of URLs from another URL (similar to pointing to a file). In this specific use case it is to allow a Foreman server to sync Yum content from the CentOS mirrors. I tell Foreman to use the following URL:
>>
>> http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=updates
>>
>> Which returns a list of URLs, such as:
>>
>> http://repo1.dal.innoscale.net/centos/7.3.1611/updates/x86_64/
>> http://linux.mirrors.es.net/centos/7.3.1611/updates/x86_64/
>> http://reflector.westga.edu/repos/CentOS/7.3.1611/updates/x86_64/
>> http://mirror.jax.hugeserver.com/centos/7.3.1611/updates/x86_64/
>> http://ftp.linux.ncsu.edu/pub/CentOS/7.3.1611/updates/x86_64/
>> http://mirror.nexcess.net/CentOS/7.3.1611/updates/x86_64/
>> http://mirror.web-ster.com/centos/7.3.1611/updates/x86_64/
>> http://centos.host-engine.com/7.3.1611/updates/x86_64/
>> http://mirror.raystedman.net/centos/7.3.1611/updates/x86_64/
>> http://mirror.linux.duke.edu/pub/centos/7.3.1611/updates/x86_64/
>>
>> Foreman then starts a new HTTP connection (not a redirect) to attempt to connect to those in turn until it works.
>>
>> So I would like to configure Squid to allow the Foreman server access to any of those URLs (the list changes somewhat often).
>>
>> I started to go down the external_acl_type but am wondering if I'm missing something obvious.
>>
>> Regards,
>>
>> j
>> _______________________________________________
>> squid-users mailing list
>> squid-users at lists.squid-cache.org
>> http://lists.squid-cache.org/listinfo/squid-users
--
Bugs to the Future
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x613DEC46.asc
Type: application/pgp-keys
Size: 2437 bytes
Desc: not available
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170322/189abac7/attachment.key>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20170322/189abac7/attachment.sig>
More information about the squid-users
mailing list