Files
nexus/wiki/concepts/ProxyChains.md
weishen e62797a33a Batch 9: Obsidian插件/AI开源平替/Coze培训/TK面单/Ubuntu科学上网
- Sources: 5个新文档
- Concepts: ProxyChains, SOCKS5代理, Docker Daemon代理
- Index: 更新至 Batch 9
- 累计 sources: 108/182
2026-04-16 06:36:36 +08:00

35 lines
951 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
id: proxychains
title: ProxyChains
type: concept
tags: [Linux, 代理, 网络, 终端]
sources: []
last_updated: 2026-04-16
---
## Definition
终端命令级 SOCKS5 代理强制工具。通过修改 `/etc/proxychains4.conf`,使原本不支持代理的 CLI 命令自动走 SOCKS5 隧道。
## Mechanism
1.`/etc/proxychains4.conf``[ProxyList]` 添加 `socks5 127.0.0.1 10808`
2. 任何命令前加 `proxychains4` 前缀即可穿代理
## Use Cases
- 临时让某个命令走代理:`proxychains4 curl https://google.com`
- Git Push 被 GFW TCP RST 时紧急绕行
- Docker pull 异常时的调试命令
## Limitation
- 不支持 HTTP 代理,只支持 SOCKS4/SOCKS5
- 代理须在本地运行(如 V2RayN
- 不影响 Docker DaemonDaemon 级代理需 systemd 配置)
## Connections
- [[SOCKS5 代理]] ← 底层协议 ← ProxyChains
- [[Git代理配置]] ← 应用场景
- [[V2RayN]] ← 提供本地 SOCKS5 端口