LINUX PROXY setting

If your environment does not allow direct access to Internet gateway.
All you HTTP connect will have to go through a proxy server.
Below are some items you will need to set.

  • YUM
    • for YUM to work, you will need to enable CURL and YUM to use proxy.
    • edit /etc/yum.conf and add in line below (pls change IP accordingly):
      • proxy=
      • proxy_username=     #optional
      • proxy_password=      #optional
    • edit or create if not exists /root/.curlrc
      • proxy=192.168.10.1:8080
  • SYSTEM WIDE PROXY 
    • save it under /root/.bashrc
      • export HTTP_PROXY="http://192.168.10.26:8080"
      • export no_proxy=localhost,127.0.0.0/8
  • CHROME browser
    • install dconf-editor
      • dconf-editor -> system -> proxy ->

No comments: