2023-02-09 11:18:06 -08:00
|
|
|
{
|
2026-05-13 10:01:12 -07:00
|
|
|
"api": {
|
|
|
|
|
"services": [
|
|
|
|
|
"HandlerService",
|
|
|
|
|
"LoggerService",
|
|
|
|
|
"StatsService"
|
|
|
|
|
],
|
|
|
|
|
"tag": "api"
|
|
|
|
|
},
|
|
|
|
|
"inbounds": [{
|
|
|
|
|
"listen": "127.0.0.1",
|
|
|
|
|
"port": 62789,
|
|
|
|
|
"protocol": "tunnel",
|
|
|
|
|
"settings": {
|
feat(inbounds): align tunnel, tun, and hysteria UI with Xray docs
* tunnel: rename settings to Xray's current schema (address →
rewriteAddress, port → rewritePort, network → allowedNetwork) in
the model, form modal, info modal, and the bundled API inbound
template; expose portMap so per-port forwarding can be configured
from the panel.
* tun: add the full TUN protocol form and read-only info blocks
(name, mtu, gateway, dns, userLevel, autoSystemRoutingTable,
autoOutboundsInterface) — previously the protocol was selectable
but the form rendered blank.
* hysteria: surface the stream-level version, obfs password, and
udpIdleTimeout fields that the model already supported.
Refs https://xtls.github.io/config/inbounds/tunnel.html
Refs https://xtls.github.io/config/inbounds/tun.html
Refs https://xtls.github.io/config/transports/hysteria.html
2026-05-13 13:44:08 -07:00
|
|
|
"rewriteAddress": "127.0.0.1"
|
2026-05-13 10:01:12 -07:00
|
|
|
},
|
|
|
|
|
"tag": "api"
|
|
|
|
|
}],
|
2023-02-09 11:18:06 -08:00
|
|
|
"log": {
|
2024-02-03 06:24:04 -08:00
|
|
|
"access": "none",
|
|
|
|
|
"dnsLog": false,
|
2024-09-24 02:38:10 -07:00
|
|
|
"error": "",
|
|
|
|
|
"loglevel": "warning",
|
|
|
|
|
"maskAddress": ""
|
2023-02-09 11:18:06 -08:00
|
|
|
},
|
2026-05-13 10:01:12 -07:00
|
|
|
"metrics": {
|
|
|
|
|
"listen": "127.0.0.1:11111",
|
|
|
|
|
"tag": "metrics_out"
|
2023-02-09 11:18:06 -08:00
|
|
|
},
|
2026-05-13 10:01:12 -07:00
|
|
|
"outbounds": [{
|
2023-02-09 11:18:06 -08:00
|
|
|
"protocol": "freedom",
|
2024-03-10 13:38:57 -07:00
|
|
|
"settings": {
|
2026-05-19 06:42:16 -07:00
|
|
|
"domainStrategy": "AsIs",
|
|
|
|
|
"finalRules": [
|
2026-06-02 06:58:48 -07:00
|
|
|
{ "action": "allow" }
|
2026-05-19 06:42:16 -07:00
|
|
|
]
|
2026-05-13 10:01:12 -07:00
|
|
|
},
|
|
|
|
|
"tag": "direct"
|
2023-02-09 11:18:06 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"protocol": "blackhole",
|
2026-05-13 10:01:12 -07:00
|
|
|
"settings": {},
|
|
|
|
|
"tag": "blocked"
|
2023-02-09 11:18:06 -08:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"policy": {
|
|
|
|
|
"levels": {
|
|
|
|
|
"0": {
|
2023-04-17 22:52:04 -07:00
|
|
|
"statsUserDownlink": true,
|
|
|
|
|
"statsUserUplink": true
|
2023-02-09 11:18:06 -08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"system": {
|
|
|
|
|
"statsInboundDownlink": true,
|
2024-02-04 01:32:28 -08:00
|
|
|
"statsInboundUplink": true,
|
2025-01-26 02:22:42 -08:00
|
|
|
"statsOutboundDownlink": false,
|
|
|
|
|
"statsOutboundUplink": false
|
2023-02-09 11:18:06 -08:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"routing": {
|
2024-03-10 13:38:57 -07:00
|
|
|
"domainStrategy": "AsIs",
|
2026-05-13 10:01:12 -07:00
|
|
|
"rules": [{
|
2023-05-18 01:22:53 -07:00
|
|
|
"inboundTag": [
|
|
|
|
|
"api"
|
|
|
|
|
],
|
2026-05-13 10:01:12 -07:00
|
|
|
"outboundTag": "api",
|
|
|
|
|
"type": "field"
|
2023-02-09 11:18:06 -08:00
|
|
|
},
|
|
|
|
|
{
|
2023-05-18 01:22:53 -07:00
|
|
|
"ip": [
|
|
|
|
|
"geoip:private"
|
2026-05-13 10:01:12 -07:00
|
|
|
],
|
|
|
|
|
"outboundTag": "blocked",
|
|
|
|
|
"type": "field"
|
2023-02-09 11:18:06 -08:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"outboundTag": "blocked",
|
2023-05-18 01:22:53 -07:00
|
|
|
"protocol": [
|
|
|
|
|
"bittorrent"
|
2026-05-13 10:01:12 -07:00
|
|
|
],
|
|
|
|
|
"type": "field"
|
2023-02-09 11:18:06 -08:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-05-13 10:01:12 -07:00
|
|
|
"stats": {}
|
|
|
|
|
}
|