Files
nexus/wiki/concepts/SOCKS5代理.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

37 lines
1.0 KiB
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: socks5-proxy
title: SOCKS5 代理
type: concept
tags: [网络, 代理, 协议]
sources: []
last_updated: 2026-04-16
---
## Definition
SOCKS5 是 SOCKS 协议的第五版,一种通用的代理协议,支持 TCP 和 UDP。相比 HTTP 代理SOCKS5 更底层,不解析流量内容。
## socks5 vs socks5h
- `socks5://127.0.0.1:10808`本地解析域名DNS 泄露风险)
- `socks5h://127.0.0.1:10808`(推荐):代理服务器解析域名,防止 DNS 污染
## vs HTTP 代理
| 维度 | SOCKS5 | HTTP 代理 |
|------|--------|-----------|
| 协议层 | SOCKS会话层 | HTTP应用层 |
| 通用性 | 所有 TCP/UDP | 仅 HTTP/HTTPS |
| 头部修改 | 无 | 可修改 HTTP 头 |
| 场景 | 科学上网、Git | Web 抓取、浏览器 |
## 在 OpenClaw TOOLS.md 中的配置
- Mac Mini: `127.0.0.1:10808`V2RayN
- Ubuntu1/2: `127.0.0.1:10808`
- NAS: `127.0.0.1:20170`(仅监听本地)
## Connections
- [[V2RayN]] ← 提供本地 SOCKS5 端口
- [[ProxyChains]] ← 基于 SOCKS5 协议