ubuntu proxychains4 命令全局代理

2025-02-05 324 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包。

相关文章

MySQL 锁表 死锁查看及解决
Dell R620 IPMI 风扇
dify smtp邮箱配置
vcenter 7 克隆虚拟机 ubuntu dhcp ip一样
prometheus 报错 “Out of order sample from remote write” err=”out of bounds”
OpenResty ModSecurity 编译

发布评论