Last active
October 19, 2020 13:33
-
-
Save marvin-marvin/24680a1331261b32522f9bde2aad19d9 to your computer and use it in GitHub Desktop.
proxy system wide
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Acquire::http::proxy "http://192.168.1.201:3128"; | |
#Acquire::https::proxy "https://192.168.1.201:3128"; | |
#Acquire::ftp::proxy "ftp://192.168.1.201:3128"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#proxy=http://192.168.1.201:3128 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PROXY_ENABLED="no" | |
#HTTP_PROXY="http://192.168.1.201:3128" | |
#HTTPS_PROXY="http://192.168.1.201:3128" | |
#FTP_PROXY="http://192.168.1.201:3128" | |
#SOCKS_PROXY="http://192.168.1.201:3128" | |
#GOPHER_PROXY="http://192.168.1.201:3128" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# set proxy config via profie.d - should apply for all users | |
# | |
#export ftp_proxy=ftp://192.168.1.201:3128 | |
#export http_proxy=http://192.168.1.201:3128 | |
#export https_proxy=https://192.168.1.201:3128 | |
#export socks_proxy=https://192.168.1.201:3128 | |
# For curl | |
#export FTP_PROXY=ftp://192.168.1.201:3128 | |
#export HTTP_PROXY=http://192.168.1.201:3128 | |
#export HTTPS_PROXY=https://192.168.1.201:3128 | |
#export SOCK_PROXY=https://192.168.1.201:3128 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define proxy system-wide ubuntu/debian | |
nano /etc/profile.d/proxy.sh | |
# set proxy config via profie.d - should apply for all users | |
# | |
export ftp_proxy=ftp://192.168.1.208:3128 | |
export http_proxy=http://192.168.1.208:3128 | |
export https_proxy=https://192.168.1.208:3128 | |
export socks_proxy=https://192.168.1.208:3128 | |
# For curl | |
export FTP_PROXY=ftp://192.168.1.208:3128 | |
export HTTP_PROXY=http://192.168.1.208:3128 | |
export HTTPS_PROXY=https://192.168.1.208:3128 | |
export SOCK_PROXY=https://192.168.1.208:3128 | |
# | |
chmod +x /etc/profile.d/proxy.sh | |
nano /etc/environment | |
export ftp_proxy=ftp://192.168.1.201:3128 | |
export http_proxy=http://192.168.1.201:3128 | |
export https_proxy=https://192.168.1.201:3128 | |
export socks_proxy=https://192.168.1.201:3128 | |
nano /etc/sysconfig/proxy | |
PROXY_ENABLED="yes" | |
HTTP_PROXY="http://192.168.1.201:3128" | |
FTP_PROXY="http://192.168.1.201:3128" | |
SOCKS_PROXY="http://192.168.1.201:3128" | |
GOPHER_PROXY="http://192.168.1.201:3128" | |
nano /etc/apt/apt.conf.d/99HttpProxy | |
Acquire::http::proxy "http://192.168.1.201:3128"; | |
Acquire::https::proxy "https://192.168.1.201:3128"; | |
Acquire::ftp::proxy "ftp://192.168.1.201:3128"; | |
nano /etc/yum.conf | |
proxy=http://192.168.1.201:3128 | |
nano ~/.wgetrc | |
use_proxy = on | |
ftp_proxy=ftp://192.168.1.208:3128 | |
http_proxy=http://192.168.1.208:3128 | |
https_proxy=https://192.168.1.208:3128 | |
(copy to nano /etc/wgetrc) | |
nano ~/.curlrc | |
proxy=http://192.168.1.201:3128 | |
mkdir /usr/share/ca-certificates/extra | |
cp Downloads/certificate.crt /usr/share/ca-certificates/extra/ | |
dpkg-reconfigure ca-certificates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use_proxy = off | |
#ftp_proxy=ftp://192.168.1.201:3128 | |
#http_proxy=http://192.168.1.201:3128 | |
#https_proxy=https://192.168.1.201:3128 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#proxy=http://192.168.1.201:3128 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment