2022-07-08 10:10:39 +00:00
|
|
|
`direct` inbound is a tunnel server.
|
|
|
|
|
|
|
|
### Structure
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
2022-08-31 04:50:26 +00:00
|
|
|
"type": "direct",
|
|
|
|
"tag": "direct-in",
|
|
|
|
|
|
|
|
... // Listen Fields
|
|
|
|
|
|
|
|
"network": "udp",
|
|
|
|
"override_address": "1.0.0.1",
|
|
|
|
"override_port": 53
|
2022-07-08 10:10:39 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
### Listen Fields
|
|
|
|
|
|
|
|
See [Listen Fields](/configuration/shared/listen) for details.
|
|
|
|
|
|
|
|
### Fields
|
2022-08-23 15:15:56 +00:00
|
|
|
|
|
|
|
#### network
|
|
|
|
|
|
|
|
Listen network, one of `tcp` `udp`.
|
|
|
|
|
|
|
|
Both if empty.
|
|
|
|
|
|
|
|
#### override_address
|
|
|
|
|
|
|
|
Override the connection destination address.
|
|
|
|
|
|
|
|
#### override_port
|
|
|
|
|
2022-08-31 04:50:26 +00:00
|
|
|
Override the connection destination port.
|