Files
sing-box-extended-mirror/docs/configuration/inbound/tproxy.zh.md
T

41 lines
722 B
Markdown
Raw Normal View History

2026-07-16 21:35:01 +08:00
!!! quote "sing-box 1.14.0 中的更改"
:material-plus: [udp_mapping](/zh/configuration/shared/udp-nat/#udp_mapping)
:material-plus: [udp_filtering](/zh/configuration/shared/udp-nat/#udp_filtering)
:material-plus: [udp_nat_max](/zh/configuration/shared/udp-nat/#udp_nat_max)
2023-11-09 17:04:08 +08:00
!!! quote ""
2022-08-31 14:33:52 +08:00
仅支持 Linux。
2022-08-24 18:43:39 +08:00
### 结构
```json
{
2022-08-31 12:50:26 +08:00
"type": "tproxy",
"tag": "tproxy-in",
2022-08-24 18:43:39 +08:00
2022-08-31 12:50:26 +08:00
... // 监听字段
2022-08-24 18:43:39 +08:00
2026-07-16 21:35:01 +08:00
"network": "udp",
... // UDP NAT 字段
2022-08-31 12:50:26 +08:00
}
```
2022-08-24 18:43:39 +08:00
### 监听字段
2022-08-31 12:50:26 +08:00
参阅 [监听字段](/zh/configuration/shared/listen/)。
2022-08-24 18:43:39 +08:00
2022-08-31 12:50:26 +08:00
### 字段
2022-08-24 18:43:39 +08:00
2022-08-31 12:50:26 +08:00
#### network
2022-08-24 18:43:39 +08:00
2022-08-31 12:50:26 +08:00
监听的网络协议,`tcp` `udp` 之一。
2022-08-24 18:43:39 +08:00
2022-08-31 12:50:26 +08:00
默认所有。
2026-07-16 21:35:01 +08:00
### UDP NAT 字段
参阅 [UDP NAT 字段](/zh/configuration/shared/udp-nat/)。