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"
3.验证结果
curl cip.cc
Linux终端流量走socks5代理
于 2023-05-05 10:56:38 首次发布