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

41 lines
720 B
Markdown
Raw Normal View History

2026-07-16 21:35:01 +08:00
!!! quote "Changes in sing-box 1.14.0"
:material-plus: [udp_mapping](/configuration/shared/udp-nat/#udp_mapping)
:material-plus: [udp_filtering](/configuration/shared/udp-nat/#udp_filtering)
:material-plus: [udp_nat_max](/configuration/shared/udp-nat/#udp_nat_max)
2023-11-09 17:04:08 +08:00
!!! quote ""
2022-08-31 14:33:52 +08:00
Only supported on Linux.
2022-07-15 08:42:02 +08:00
### Structure
```json
{
2022-08-31 12:50:26 +08:00
"type": "tproxy",
"tag": "tproxy-in",
2022-07-15 08:42:02 +08:00
2022-08-31 12:50:26 +08:00
... // Listen Fields
2022-08-23 23:15:56 +08:00
2026-07-16 21:35:01 +08:00
"network": "udp",
... // UDP NAT Fields
2022-08-31 12:50:26 +08:00
}
```
2022-08-23 23:15:56 +08:00
2022-07-15 08:42:02 +08:00
### Listen Fields
2023-12-14 22:23:52 +08:00
See [Listen Fields](/configuration/shared/listen/) for details.
2022-07-15 08:42:02 +08:00
2022-08-31 12:50:26 +08:00
### Fields
2022-07-15 08:42:02 +08:00
2022-08-31 12:50:26 +08:00
#### network
2022-07-15 08:42:02 +08:00
2022-08-31 12:50:26 +08:00
Listen network, one of `tcp` `udp`.
2022-07-15 08:42:02 +08:00
2022-08-31 12:50:26 +08:00
Both if empty.
2026-07-16 21:35:01 +08:00
### UDP NAT Fields
See [UDP NAT Fields](/configuration/shared/udp-nat/) for details.