Skip to content

Instantly share code, notes, and snippets.

@lomocc
Last active November 5, 2018 09:38
Show Gist options
  • Save lomocc/5d5bf858ff8049e7c4a44ff5626c83c5 to your computer and use it in GitHub Desktop.
Save lomocc/5d5bf858ff8049e7c4a44ff5626c83c5 to your computer and use it in GitHub Desktop.
proxy
export http_proxy="10.82.14.52:10010"
export no_proxy="localhost,127.0.0.1,10.82..,bigdata"
unset http_proxy
# vi /etc/profile
http_proxy=10.82.14.52:10010 # 分别指定http、https、ftp协议使用的代理服务器地址
https_proxy=10.82.14.52:10010
ftp_proxy=10.82.14.52:10010
no_proxy=192.168.10.0. # 访问局域网地址(192.168.20.0/24网段)时不使用代理,可以用逗号分隔多个地址
export http_proxy https_proxy ftp_proxy no_proxy
curl --socks5 119.27.169.191:1080 http://httpbin.org/ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment