Centos in a proxy enviroment
I use centos in work, behind a proxy that uses NTLM auth.
some tips;
some tips;
- install CNTLM, which access a proxy to NTLM proxies :-) configure it so it listens for localhost connections
- /etc/cntlm.conf
- Username username
- Domain domain
- Password password
- Proxy upstream.proxy.addr:8080
- NoProxy localhost, 172.18.32.*, 127.0.0.*, 10.*, 192.168.*
- Listen 3128
- Gateway yes
- Allow 127.0.0.1
- Deny 0/0
- edit yum.conf
- echo "proxy=http://127.0.0.1:3128" >> /etc/yum.conf
- edit maven settings.xml
- /usr/local/apache-maven-3.0.5/conf/settings.xml
<proxies>
<proxy>
<id>optional</id>
<active>true</active>
<protocol>http</protocol>
<host>127.0.0.1</host>
<port>3128</port>
<nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
</proxies>
- setup git
- git config --global http.proxy http://127.0.0.1:3128
- setup your shell (wget etc)
- http_proxy="http://127.0.0.1:3128"
- export http_proxy
Comments