Re: [squid-users] URL list from a URL

2017-03-24 Thread Eliezer Croitoru
Sorry a type with the link so: And if you want the full list of mirrors being updated instead of using curl you can use the next script to parse the full mirror list page: http://mirror-status.centos.org/ Using the script: https://gist.github.com/elico/dc1af72344231d6d49af4eacecfae8df#file-get-fu

Re: [squid-users] URL list from a URL

2017-03-24 Thread Eliezer Croitoru
And if you want the full list of mirrors being updated instead of using curl you can use the next script to parse the full mirror list page: http://mirror-status.centos.org/ Using the script: https://gist.github.com/elico/dc1af72344231d6d49af4eacecfae8df#file-update-mirrors-list-sh Let me know i

Re: [squid-users] URL list from a URL

2017-03-24 Thread Eliezer Croitoru
OK so I wrote these helpers that can help to allow the updates despite the changes in urls on gist: https://gist.github.com/elico/dc1af72344231d6d49af4eacecfae8df The squid.conf should be something like: external_acl_type centos_mirror_check ipv4 concurrency=200 ttl=15 %URI %SRC %METHOD /opt/bin

Re: [squid-users] URL list from a URL

2017-03-24 Thread Eliezer Croitoru
My suggestion is to run every minute a curl request into a tmp file and then compare to the existing one, then sort and uniq and replace the existing DB In the external acl helper script use some kind of version testing by the last date updated. You can use a simple comparison to do that. So two

Re: [squid-users] Why do we have to set pinger_enable to off to get Squid to work

2017-03-24 Thread Eliezer Croitoru
Hey Gui, The right way to allow pinger to work is to use the setuid bit ie: $ chwon root.root /pinger_path/pinger $ chmod +s /pinger_path/pinger This will allow pinger to start as a root use by any of the machine users and in this case squid. There might be another restriction by the OS but I am