Auto-sync: 2026-04-17 08:37
This commit is contained in:
29
wiki/concepts/透明代理.md
Normal file
29
wiki/concepts/透明代理.md
Normal file
@@ -0,0 +1,29 @@
|
||||
---
|
||||
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]]:基于规则分流的代理客户端
|
||||
Reference in New Issue
Block a user