Libproxy to provide proxies for yum repos

Issues related to applications and software problems
Post Reply
lor10yes
Posts: 1
Joined: 2020/02/26 13:56:52

Libproxy to provide proxies for yum repos

Post by lor10yes » 2020/02/26 14:15:29

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

Post Reply

Return to “CentOS 7 - Software Support”