⇤ ← Revision 1 as of 2021-04-26 09:47:32
Size: 81
Comment:
|
Size: 980
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 6: | Line 6: |
# sudo nano /etc/profile.d/proxy.sh export http_proxy="http://192.168.1.123:3128/" export https_proxy="http://192.168.1.123:3128/" export ftp_proxy="http://192.168.1.123:3128/" export no_proxy="127.0.0.1,localhost" # For curl export HTTP_PROXY="http://192.168.1.123:3128/" export HTTPS_PROXY="http://192.168.1.123:3128/" export FTP_PROXY="http://192.168.1.123:3128/" export NO_PROXY="127.0.0.1,localhost" sudo chmod +x /etc/profile.d/proxy.sh source /etc/profile.d/proxy.sh # nano /etc/environment export http_proxy="http://192.168.1.123:3128/" export https_proxy="http://192.168.1.123:3128/" export ftp_proxy="http://192.168.1.123:3128/" export no_proxy="127.0.0.1,localhost" # For curl export HTTP_PROXY="http://192.168.1.123:3128/" export HTTPS_PROXY="http://192.168.1.123:3128/" export FTP_PROXY="http://192.168.1.123:3128/" export NO_PROXY="127.0.0.1,localhost" |
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"