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

29 lines
844 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: "透明代理"
type: concept
tags: [proxy, networking, iptables]
sources: []
last_updated: 2026-04-17
---
## Aliases
- Transparent Proxy
- 透明代理
## Definition
透明代理Transparent Proxy是一种网络代理机制不需要在客户端显式配置代理设置而是通过 iptables/nftables 等防火墙规则强制将流量重定向到代理服务器。
## Mechanism
- 通过 iptables PREROUTING 或 OUTPUT 链修改目标地址
- 将匹配规则的流量重定向到本地代理端口
- 客户端无感知,所有流量自动走代理
## Use Cases
- NAS、路由器等设备全局代理
- 企业网络流量管控
- 家庭网络科学上网
## Related Concepts
- [[科学上网]]:通过代理访问被封锁内容
- [[SOCKS5代理]]SOCKS 协议代理
- [[Clash]]:基于规则分流的代理客户端