2023-02-09 19:18:06 +00:00
|
|
|
{
|
2026-05-13 17:01:12 +00: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 20:44:08 +00:00
|
|
|
"rewriteAddress": "127.0.0.1"
|
2026-05-13 17:01:12 +00:00
|
|
|
},
|
|
|
|
|
"tag": "api"
|
|
|
|
|
}],
|
2023-02-09 19:18:06 +00:00
|
|
|
"log": {
|
2024-02-03 14:24:04 +00:00
|
|
|
"access": "none",
|
|
|
|
|
"dnsLog": false,
|
2024-09-24 09:38:10 +00:00
|
|
|
"error": "",
|
|
|
|
|
"loglevel": "warning",
|
|
|
|
|
"maskAddress": ""
|
2023-02-09 19:18:06 +00:00
|
|
|
},
|
2026-05-13 17:01:12 +00:00
|
|
|
"metrics": {
|
|
|
|
|
"listen": "127.0.0.1:11111",
|
|
|
|
|
"tag": "metrics_out"
|
2023-02-09 19:18:06 +00:00
|
|
|
},
|
2026-05-13 17:01:12 +00:00
|
|
|
"outbounds": [{
|
2023-02-09 19:18:06 +00:00
|
|
|
"protocol": "freedom",
|
2024-03-10 20:38:57 +00:00
|
|
|
"settings": {
|
2026-05-13 17:01:12 +00:00
|
|
|
"domainStrategy": "AsIs"
|
|
|
|
|
},
|
|
|
|
|
"tag": "direct"
|
2023-02-09 19:18:06 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"protocol": "blackhole",
|
2026-05-13 17:01:12 +00:00
|
|
|
"settings": {},
|
|
|
|
|
"tag": "blocked"
|
2023-02-09 19:18:06 +00:00
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"policy": {
|
|
|
|
|
"levels": {
|
|
|
|
|
"0": {
|
2023-04-18 05:52:04 +00:00
|
|
|
"statsUserDownlink": true,
|
|
|
|
|
"statsUserUplink": true
|
2023-02-09 19:18:06 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"system": {
|
|
|
|
|
"statsInboundDownlink": true,
|
2024-02-04 09:32:28 +00:00
|
|
|
"statsInboundUplink": true,
|
2025-01-26 10:22:42 +00:00
|
|
|
"statsOutboundDownlink": false,
|
|
|
|
|
"statsOutboundUplink": false
|
2023-02-09 19:18:06 +00:00
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
"routing": {
|
2024-03-10 20:38:57 +00:00
|
|
|
"domainStrategy": "AsIs",
|
2026-05-13 17:01:12 +00:00
|
|
|
"rules": [{
|
2023-05-18 08:22:53 +00:00
|
|
|
"inboundTag": [
|
|
|
|
|
"api"
|
|
|
|
|
],
|
2026-05-13 17:01:12 +00:00
|
|
|
"outboundTag": "api",
|
|
|
|
|
"type": "field"
|
2023-02-09 19:18:06 +00:00
|
|
|
},
|
|
|
|
|
{
|
2023-05-18 08:22:53 +00:00
|
|
|
"ip": [
|
|
|
|
|
"geoip:private"
|
2026-05-13 17:01:12 +00:00
|
|
|
],
|
|
|
|
|
"outboundTag": "blocked",
|
|
|
|
|
"type": "field"
|
2023-02-09 19:18:06 +00:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"outboundTag": "blocked",
|
2023-05-18 08:22:53 +00:00
|
|
|
"protocol": [
|
|
|
|
|
"bittorrent"
|
2026-05-13 17:01:12 +00:00
|
|
|
],
|
|
|
|
|
"type": "field"
|
2023-02-09 19:18:06 +00:00
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
2026-05-13 17:01:12 +00:00
|
|
|
"stats": {}
|
|
|
|
|
}
|