proxychains-ng
浏览器代理及应用代理均不存在问题,而终端代理总是出现各种奇怪的问题。
曾经使用以下方式,然后不知道被自己更新了什么就都失效了。
# ALL_PROXY
export ALL_PROXY=socks5://127.0.0.1:1080
# git
git config --global http.proxy 'socks5://127.0.0.1:1080'
1
2
3
4
5
2
3
4
5
最后接触了 proxychains-ng (opens new window),感觉其更加强大与简单。
安装:
sudo pacman -S proxychains-ng
1
修改配置:
sudo vim /etc/proxychains.conf
# 注释掉 proxy_dns
# proxy_dns
# 最后一行改为对应的代理
socks5 127.0.0.1 1080
1
2
3
4
5
6
2
3
4
5
6
使用
curl
proxychains curl www.google.com
1git
proxychains git clone git@github.com:rofl0r/proxychains-ng.git
1yay
proxychains yay -S microsoft-edge
1