ubuntu proxychains4 命令全局代理

2025-02-05 9 0

apt-get install proxychains4

这里使用clash

root@ubuntu:~# vim /etc/proxychains.conf
[ProxyList]
socks5 192.168.10.73 7890

测试

注 使用root权限运行

root@ubuntu:~# vim /etc/proxychains.conf
root@ubuntu:~# curl ip.sb
14.145.3.210
root@ubuntu:~# proxychains4 curl ip.sb
[proxychains] config file found: /etc/proxychains.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.12
[proxychains] Dynamic chain  ...  192.168.10.73:7890  ...  104.26.12.31:80  ...  OK
35.231.65.51

注意 不要使用ping命令来测试,因为SOCKS协议并不支持ICMP包。

相关文章

OpenResty ModSecurity 编译
vCenter 7.0 禁用 vSphere 集群服务 (vCLS)
ESXI 7.0 分布式交换机 LACP 配置
yum 和 apt-get 安装指定版本
DELL R640 RAC0504 无机柜可显示
MacBook系统升级到Sequoia15.1 SSH密钥无权限解决

发布评论