mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-28 09:58:06 +03:00
Infra/conf: Rename Tunnel target fields
This commit is contained in:
@@ -54,7 +54,7 @@ You can add an `api` inbound in the `inbounds` configuration:
|
||||
"port": 10085,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1"
|
||||
"rewriteAddress": "127.0.0.1"
|
||||
},
|
||||
"tag": "api"
|
||||
}
|
||||
|
||||
@@ -6,34 +6,34 @@ Tunnel, formerly known as dokodemo-door (Arbitrary Door), can listen on multiple
|
||||
|
||||
```json
|
||||
{
|
||||
"address": "8.8.8.8",
|
||||
"port": 53,
|
||||
"allowedNetwork": "tcp",
|
||||
"rewriteAddress": "8.8.8.8",
|
||||
"rewritePort": 53,
|
||||
"portMap": {
|
||||
"5555": "1.1.1.1:7777",
|
||||
"5556": ":8888", // overrides port only
|
||||
"5557": "example.com:" // overrides address only
|
||||
},
|
||||
"network": "tcp",
|
||||
"followRedirect": false,
|
||||
"userLevel": 0
|
||||
}
|
||||
```
|
||||
|
||||
> `address`: address
|
||||
> `allowedNetwork`: "tcp" | "udp" | "tcp,udp"
|
||||
|
||||
Accepted network protocol types. For example, when specified as `"tcp"`, only TCP traffic will be received. Default value is `"tcp"`.
|
||||
|
||||
> `rewriteAddress`: address
|
||||
|
||||
Forward traffic to this address. It can be an IP address, like `"1.2.3.4"`, or a domain name, like `"xray.com"`. String type, defaults to `"localhost"`.
|
||||
|
||||
> `port`: number
|
||||
> `rewritePort`: number
|
||||
|
||||
Forward traffic to the specified port of the target address. Range \[0, 65535\], numeric type. If omitted or 0, it defaults to the listening port.
|
||||
|
||||
> `portMap`: map[string]string
|
||||
|
||||
A map mapping local ports to required remote addresses/ports (if the inbound listens on multiple ports). If the local port is not included in this map, it is handled according to the `address`/`port` settings.
|
||||
|
||||
> `network`: "tcp" | "udp" | "tcp,udp"
|
||||
|
||||
Accepted network protocol types. For example, when specified as `"tcp"`, only TCP traffic will be received. Default value is `"tcp"`.
|
||||
A map mapping local ports to required remote addresses/ports (if the inbound listens on multiple ports). If the local port is not included in this map, it is handled according to the `rewriteAddress`/`rewritePort` settings.
|
||||
|
||||
> `followRedirect`: true | false
|
||||
|
||||
@@ -61,9 +61,9 @@ For example, the following Config (assuming the default outbound is a valid prox
|
||||
"port": 25565,
|
||||
"protocol": "tunnel",
|
||||
"settings": {
|
||||
"address": "mc.hypixel.net",
|
||||
"port": 25565,
|
||||
"network": "tcp",
|
||||
"allowedNetwork": "tcp",
|
||||
"rewriteAddress": "mc.hypixel.net",
|
||||
"rewritePort": 25565,
|
||||
"followRedirect": false,
|
||||
"userLevel": 0
|
||||
},
|
||||
|
||||
@@ -213,9 +213,9 @@ Inbounds:
|
||||
"port": 80,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1",
|
||||
"port": 80,
|
||||
"network": "tcp"
|
||||
"allowedNetwork": "tcp",
|
||||
"rewriteAddress": "127.0.0.1",
|
||||
"rewritePort": 80
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
@@ -96,7 +96,7 @@ Configure Xray `dokodemo-door` to listen on port 12345, enable `followRedirect`
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"network": "tcp,udp",
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
},
|
||||
"streamSettings": {
|
||||
|
||||
@@ -160,7 +160,7 @@ Enable auto-start on boot:
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"network": "tcp,udp",
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
},
|
||||
"sniffing": {
|
||||
|
||||
@@ -108,7 +108,7 @@ lsmod | grep wireguard
|
||||
"port": <port>,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"address": "127.0.0.1"
|
||||
"rewriteAddress": "127.0.0.1"
|
||||
},
|
||||
"tag": "api"
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ sudo curl -oL /usr/local/share/xray/geosite.dat https://github.com/Loyalsoldier/
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"network": "tcp,udp",
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
},
|
||||
"sniffing": {
|
||||
|
||||
@@ -36,7 +36,7 @@ If the Xray program is not installed on the side router, you can manually downlo
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"network": "tcp,udp",
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
},
|
||||
"sniffing": {
|
||||
|
||||
@@ -113,7 +113,7 @@ The configuration file should listen on port 12345 and enable tproxy:
|
||||
"port": 12345,
|
||||
"protocol": "dokodemo-door",
|
||||
"settings": {
|
||||
"network": "tcp,udp",
|
||||
"allowedNetwork": "tcp,udp",
|
||||
"followRedirect": true
|
||||
},
|
||||
"streamSettings": {
|
||||
|
||||
Reference in New Issue
Block a user