Page 1 of 1

Libproxy to provide proxies for yum repos

Posted: 2020/02/26 14:15:29
by lor10yes
Hi,

I installed libproxy and all related packages in CentOS 7.
I also followed instructions found here: https://github.com/libproxy/libproxy with a correct configuration.

I set proxy=libproxy under my repositories in /etc/yum.repos.d/myrepo.repo.
If I try to set http_proxy=http://myproxyserver:3128, when I execute:

proxy http://www.google.com/
http://myproxyserver:3128


So libproxy correctly takes the proxy set in http_proxy and if I try to install something with yum (e.g. yum install mercurial), in /var/log/squid/access.log of my proxy server I can see the request.


If I try to remove http_proxy and use a WPAD file that returns my proxy server (I set the wpad in automatic network proxy), when I surf on firefox I can see in squid access.log that is correctly configured, but if I execute:

proxy http://www.google.com/
direct://


So libproxy does not take the proxy.

Where I am doing wrong?

Thank you in advance.

Loris