mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-26 13:06:56 +00:00
refactor: New tun udpnat
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
!!! 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)
|
||||
|
||||
!!! quote ""
|
||||
|
||||
Only supported on Linux.
|
||||
@@ -11,7 +17,9 @@
|
||||
|
||||
... // Listen Fields
|
||||
|
||||
"network": "udp"
|
||||
"network": "udp",
|
||||
|
||||
... // UDP NAT Fields
|
||||
}
|
||||
```
|
||||
|
||||
@@ -26,3 +34,7 @@ See [Listen Fields](/configuration/shared/listen/) for details.
|
||||
Listen network, one of `tcp` `udp`.
|
||||
|
||||
Both if empty.
|
||||
|
||||
### UDP NAT Fields
|
||||
|
||||
See [UDP NAT Fields](/configuration/shared/udp-nat/) for details.
|
||||
|
||||
@@ -1,3 +1,9 @@
|
||||
!!! 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)
|
||||
|
||||
!!! quote ""
|
||||
|
||||
仅支持 Linux。
|
||||
@@ -11,7 +17,9 @@
|
||||
|
||||
... // 监听字段
|
||||
|
||||
"network": "udp"
|
||||
"network": "udp",
|
||||
|
||||
... // UDP NAT 字段
|
||||
}
|
||||
```
|
||||
|
||||
@@ -26,3 +34,7 @@
|
||||
监听的网络协议,`tcp` `udp` 之一。
|
||||
|
||||
默认所有。
|
||||
|
||||
### UDP NAT 字段
|
||||
|
||||
参阅 [UDP NAT 字段](/zh/configuration/shared/udp-nat/)。
|
||||
|
||||
@@ -8,7 +8,10 @@ icon: material/new-box
|
||||
:material-plus: [exclude_mac_address](#exclude_mac_address)
|
||||
:material-plus: [dns_mode](#dns_mode)
|
||||
:material-plus: [dns_address](#dns_address)
|
||||
:material-plus: [netns](#netns)
|
||||
:material-plus: [netns](#netns)
|
||||
: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)
|
||||
|
||||
!!! quote "Changes in sing-box 1.13.3"
|
||||
|
||||
@@ -112,7 +115,9 @@ icon: material/new-box
|
||||
"geoip-cn"
|
||||
],
|
||||
"endpoint_independent_nat": false,
|
||||
"udp_timeout": "5m",
|
||||
|
||||
... // UDP NAT Fields
|
||||
|
||||
"stack": "system",
|
||||
"include_interface": [
|
||||
"lan0"
|
||||
@@ -553,12 +558,6 @@ Enable endpoint-independent NAT.
|
||||
|
||||
Performance may degrade slightly, so it is not recommended to enable on when it is not needed.
|
||||
|
||||
#### udp_timeout
|
||||
|
||||
UDP NAT expiration time.
|
||||
|
||||
`5m` will be used by default.
|
||||
|
||||
#### stack
|
||||
|
||||
!!! quote "Changes in sing-box 1.8.0"
|
||||
@@ -700,6 +699,10 @@ Hostnames that bypass the HTTP proxy.
|
||||
|
||||
Hostnames that use the HTTP proxy.
|
||||
|
||||
### UDP NAT Fields
|
||||
|
||||
See [UDP NAT Fields](/configuration/shared/udp-nat/) for details.
|
||||
|
||||
### Listen Fields
|
||||
|
||||
See [Listen Fields](/configuration/shared/listen/) for details.
|
||||
|
||||
@@ -8,7 +8,10 @@ icon: material/new-box
|
||||
:material-plus: [exclude_mac_address](#exclude_mac_address)
|
||||
:material-plus: [dns_mode](#dns_mode)
|
||||
:material-plus: [dns_address](#dns_address)
|
||||
:material-plus: [netns](#netns)
|
||||
:material-plus: [netns](#netns)
|
||||
: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)
|
||||
|
||||
!!! quote "sing-box 1.13.3 中的更改"
|
||||
|
||||
@@ -113,7 +116,9 @@ icon: material/new-box
|
||||
"geoip-cn"
|
||||
],
|
||||
"endpoint_independent_nat": false,
|
||||
"udp_timeout": "5m",
|
||||
|
||||
... // UDP NAT 字段
|
||||
|
||||
"stack": "system",
|
||||
"include_interface": [
|
||||
"lan0"
|
||||
@@ -533,12 +538,6 @@ sing-box DNS 模块,等价于一条
|
||||
|
||||
性能可能会略有下降,所以不建议在不需要的时候开启。
|
||||
|
||||
#### udp_timeout
|
||||
|
||||
UDP NAT 过期时间。
|
||||
|
||||
默认使用 `5m`。
|
||||
|
||||
#### stack
|
||||
|
||||
!!! quote "sing-box 1.8.0 中的更改"
|
||||
@@ -680,6 +679,10 @@ TCP/IP 栈。
|
||||
|
||||
代理的主机名列表。
|
||||
|
||||
### UDP NAT 字段
|
||||
|
||||
参阅 [UDP NAT 字段](/zh/configuration/shared/udp-nat/)。
|
||||
|
||||
### 监听字段
|
||||
|
||||
参阅 [监听字段](/zh/configuration/shared/listen/)。
|
||||
|
||||
Reference in New Issue
Block a user