Re: [CentOS] Yum through a proxy
On 09/11/2018 15:10, Vic Chester wrote: Good to know I am not the only one. I imagine since many environments use proxies these days, this is encountered more frequently. Would be great to hear from the devs on this. You should ask upstream, http://lists.baseurl.org/mailman/listinfo/yum-devel Bit of a long shot to ask here. ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Yum through a proxy
Good to know I am not the only one. I imagine since many environments use proxies these days, this is encountered more frequently. Would be great to hear from the devs on this. On Fri, Nov 9, 2018, 9:41 AM Simon Matter > I have configured yum to use a proxy via the yum.conf file by adding: > > > > proxy=http://myproxy.com:8080/ > > > > What I noticed when running yum check-up date is that some requests are > > going through the proxy while the system seems to be trying to resolve > the > > domains of other hosts in the repo and trying to establish direct > > connections to them instead of going through the proxy. > > > > Can anyone explain this behavior? > > It seems to me that yum is not 100% proxy aware. IIRC I also saw some > requests which shouldn't go where they went. > > Simon > > ___ > CentOS mailing list > CentOS@centos.org > https://lists.centos.org/mailman/listinfo/centos > ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] Yum through a proxy
> I have configured yum to use a proxy via the yum.conf file by adding: > > proxy=http://myproxy.com:8080/ > > What I noticed when running yum check-up date is that some requests are > going through the proxy while the system seems to be trying to resolve the > domains of other hosts in the repo and trying to establish direct > connections to them instead of going through the proxy. > > Can anyone explain this behavior? It seems to me that yum is not 100% proxy aware. IIRC I also saw some requests which shouldn't go where they went. Simon ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] Yum through a proxy
I have configured yum to use a proxy via the yum.conf file by adding: proxy=http://myproxy.com:8080/ What I noticed when running yum check-up date is that some requests are going through the proxy while the system seems to be trying to resolve the domains of other hosts in the repo and trying to establish direct connections to them instead of going through the proxy. Can anyone explain this behavior? ___ CentOS mailing list CentOS@centos.org https://lists.centos.org/mailman/listinfo/centos
[CentOS] yum with a proxy
Hello, While yum is configured to use a proxy, like this : [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 proxy=http://proxy.lasb:3128 it still make some attempts to connect directly to Internet (tcp 80). These attempts are denied and logged by the firewall. If I comment out the line mirrorlist= and uncomment the line baseurl= then there is no more direct connexion to Internet. (N.B. : in both cases, yum works well despite the access denied.) I have tried to add a line proxy= to fastestmirror.conf, but it doesn't change anything. I can't put proxy= in /etc/yum.conf because I also have a local repo. Any idea on how to avoid these connexion to Internet ? TIA, -- Philippe Naudin UMR MISTEA : Mathématiques, Informatique et STatistique pour l'Environnement et l'Agronomie INRA, bâtiment 29 - 2 place Viala - 34060 Montpellier cedex 2 tél: 04.99.61.26.34, fax: 04.99.61.29.03, mél: nau...@supagro.inra.fr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum with a proxy
On 12/07/2011 09:03 AM, Philippe Naudin wrote: Hello, While yum is configured to use a proxy, like this : [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 proxy=http://proxy.lasb:3128 it still make some attempts to connect directly to Internet (tcp 80). These attempts are denied and logged by the firewall. If I comment out the line mirrorlist= and uncomment the line baseurl= then there is no more direct connexion to Internet. (N.B. : in both cases, yum works well despite the access denied.) I have tried to add a line proxy= to fastestmirror.conf, but it doesn't change anything. I can't put proxy= in /etc/yum.conf because I also have a local repo. Any idea on how to avoid these connexion to Internet ? fastestmirror is designed to make direct connections to remote sites, time them, and then pick the fastest mirror from that machine to a specific mirror. If your machine can not connect directly to the external mirror, it is going to cause issues. It works ok through most transparent proxies (though, the connection times are going to be to the proxy, and all the same and very low, and not valid for the purpose of fastest mirror) ... it does not work with proxies that require a password or non port 80 proxies. If you have a web proxy, you will most likely need to not use fastest mirror. signature.asc Description: OpenPGP digital signature ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum with a proxy
Le mer 07 déc 2011 09:12:24 CET, Johnny Hughes a écrit: On 12/07/2011 09:03 AM, Philippe Naudin wrote: Hello, While yum is configured to use a proxy, like this : [base] name=CentOS-$releasever - Base mirrorlist=http://mirrorlist.centos.org/?release=$releaseverarch=$basearchrepo=os #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6 proxy=http://proxy.lasb:3128 it still make some attempts to connect directly to Internet (tcp 80). These attempts are denied and logged by the firewall. If I comment out the line mirrorlist= and uncomment the line baseurl= then there is no more direct connexion to Internet. (N.B. : in both cases, yum works well despite the access denied.) I have tried to add a line proxy= to fastestmirror.conf, but it doesn't change anything. I can't put proxy= in /etc/yum.conf because I also have a local repo. Any idea on how to avoid these connexion to Internet ? fastestmirror is designed to make direct connections to remote sites, time them, and then pick the fastest mirror from that machine to a specific mirror. If your machine can not connect directly to the external mirror, it is going to cause issues. It works ok through most transparent proxies (though, the connection times are going to be to the proxy, and all the same and very low, and not valid for the purpose of fastest mirror) ... it does not work with proxies that require a password or non port 80 proxies. If you have a web proxy, you will most likely need to not use fastest mirror. Thanks for your answer : indeed, adding enabled=0 to fastestmirror.conf solves the problem. -- Philippe Naudin UMR MISTEA : Mathématiques, Informatique et STatistique pour l'Environnement et l'Agronomie INRA, bâtiment 29 - 2 place Viala - 34060 Montpellier cedex 2 tél: 04.99.61.26.34, fax: 04.99.61.29.03, mél: nau...@supagro.inra.fr ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] yum with a proxy
Em 07-12-2011 13:38, Philippe Naudin escreveu: Thanks for your answer : indeed, adding enabled=0 to fastestmirror.conf solves the problem. If you want or need to use yum via proxy, you can put these lines in /etc/yum.conf: proxy=http://IP_or_NAME:PORT/ proxy_username=username proxy_password=password Regards, -- Marcelo Beckmann Suporte Corporativo - supo...@webers.com.br Webers Tecnologia - http://www.webers.com.br Curitiba (PR) (41) 3094-6600 Rio de Janeiro (RJ) (21) 4007-1207 São Paulo (SP) (11) 4007-1207 ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos