Centos in a proxy enviroment

I use centos in work, behind a proxy that uses NTLM auth.

some tips;


  1. 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
  2. edit yum.conf
    • echo "proxy=http://127.0.0.1:3128" >> /etc/yum.conf
  3. 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>
                    1. setup git
                      • git config --global http.proxy http://127.0.0.1:3128
                    2. setup your shell (wget etc)
                      • http_proxy="http://127.0.0.1:3128"
                      • export http_proxy


                    Comments

                    Popular posts from this blog

                    Baileys liquor Chocolate Chip and Cream desert

                    using t1n1wall, opnsense or pfsense on Google Compute Engine GCE

                    nginx decode base64 url for use with imgproxy