Squid

Web proxy

Setup system wide proxy

   1 # sudo nano /etc/profile.d/proxy.sh
   2 export http_proxy="http://192.168.1.123:3128/"
   3 export https_proxy="http://192.168.1.123:3128/"
   4 export ftp_proxy="http://192.168.1.123:3128/"
   5 export no_proxy="127.0.0.1,localhost"
   6 
   7 # For curl
   8 export HTTP_PROXY="http://192.168.1.123:3128/"
   9 export HTTPS_PROXY="http://192.168.1.123:3128/"
  10 export FTP_PROXY="http://192.168.1.123:3128/"
  11 export NO_PROXY="127.0.0.1,localhost"
  12 
  13 sudo chmod +x  /etc/profile.d/proxy.sh
  14 source /etc/profile.d/proxy.sh
  15 
  16 # nano /etc/environment 
  17 export http_proxy="http://192.168.1.123:3128/"
  18 export https_proxy="http://192.168.1.123:3128/"
  19 export ftp_proxy="http://192.168.1.123:3128/"
  20 export no_proxy="127.0.0.1,localhost"
  21 
  22 # For curl
  23 export HTTP_PROXY="http://192.168.1.123:3128/"
  24 export HTTPS_PROXY="http://192.168.1.123:3128/"
  25 export FTP_PROXY="http://192.168.1.123:3128/"
  26 export NO_PROXY="127.0.0.1,localhost"

Squid (last edited 2021-04-26 09:48:56 by localhost)