Files
nexus/wiki/concepts/代理链-ProxyChains.md
2026-04-17 08:38:12 +08:00

35 lines
916 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.
---
title: "代理链 (ProxyChains)"
type: concept
tags: [proxy, network]
last_updated: 2026-04-17
---
## Definition
ProxyChains代理链是一个 Linux/Unix 工具,它可以强制任何终端命令通过 SOCKS5、HTTP 或 HTTPS 代理运行,使原本不支持代理的程序也能使用代理访问网络。
## Aliases
- proxychains
- proxychains4
## How It Works
ProxyChains 通过 LD_PRELOAD 机制劫持网络连接函数,将程序的网络请求重定向到指定的代理服务器。
## Configuration
配置文件通常位于 `/etc/proxychains4.conf`(旧版本为 `/etc/proxychains.conf`
```
[ProxyList]
socks5 127.0.0.1 10808
```
## Usage
```bash
proxychains4 curl https://www.google.com
proxychains4 git clone https://github.com/...
```
## Related Concepts
- [[SOCKS5代理]]ProxyChains 支持的代理类型之一
- [[透明代理]]:另一种强制流量走代理的机制