Linux终端流量走socks5代理

1.http代理
export http_proxy="http://localhost:port"
export https_proxy="http://localhost:port"

2.socks5代理
export http_proxy="socks5://127.0.0.1:1080"
export https_proxy="socks5://127.0.0.1:1080"

export ALL_PROXY=socks5://127.0.0.1:1080

alias setproxy="export ALL_PROXY=socks5://127.0.0.1:1080"
alias unsetproxy="unset ALL_PROXY"

你可能感兴趣的:(Linux,linux,服务器,代理,socks5)