网络代理
网络代理可以帮助用户通过互联网安全的接入企业内网.
环境变量
set -Ux all_proxy "socks://127.0.0.1:<SOCKS_PORT>/"
set -Ux http_proxy "http://127.0.0.1:<HTTP_PORT>/"
set -Ux https_proxy $http_proxy
set -Ux no_proxy "localhost, 127.0.0.0/8, ::1"
set -Ux ALL_PROXY $all_proxy
set -Ux HTTP_PROXY $http_proxy
set -Ux HTTPS_PROXY $https_proxy
set -Ux NO_PROXY $no_proxy
sudo 保持代理
在 /etc/sudoers.d/05_proxy
追加下面内容: