“Raw Config” supports Xray-core.
Please note: The functions on this page require you to be proficient in Xray-core. Please use it after reading the relevant documents.
It is recommended that you directly copy the “Xray config File” generated by the App for modification.
You can find the “Xray config File” by following the operation path:
Setting ➡️ Log ➡️ Xray config File.
Inbound#
You must write an inbound, which must meet the following conditions.
listenmust be[::1]. Other addresses will cause traffic to not be processed correctly.protocolmust betun. Other protocols are not supported.tagmust betunIn. The app will useprotocolandtagto determine whether there is an inbound that meets the conditions.sniffingis recommended to be turned on, otherwise the diversion function may not work properly.
Note: The tunIn inbound will not be validated, please ensure the correctness of the configuration yourself.
It is recommended that you use the following template directly.
{
"inbounds": [
{
"listen": "127.0.0.1",
"protocol": "tun",
"tag": "tunIn",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls",
"quic"
]
}
},
{
"listen": "127.0.0.1",
"port": "11024",
"protocol": "http",
"tag": "pingIn"
}
]
}Log#
The access and error fields in log cannot be customized. They will be rewritten to a fixed path when generating the Xray config file.
Routing#
The following two routing rules are used to ensure the normal operation of DNS. Please set them as the first two routing rules.
{
"routing": {
"rules": [
{
"domainMatcher": "hybrid",
"inboundTag": [
"dnsQuery"
],
"outboundTag": "proxy",
"ruleTag": "dnsQuery"
},
{
"domainMatcher": "hybrid",
"inboundTag": [
"tunIn"
],
"port": "53",
"outboundTag": "dnsOut",
"ruleTag": "dnsOut"
},
{
"inboundTag": [
"tunIn"
],
"port": "853",
"outboundTag": "proxy",
"ruleTag": "dnsDoT"
},
{
"inboundTag": [
"pingIn"
],
"outboundTag": "proxy",
"ruleTag": "ping"
}
]
}
}Extension Fields#
{
"name": "RawXrayConfig",
"type": "raw"
}name, the name of the configuration, used to display in the list.
type, the type of configuration, fixed here as raw. Note that type can be omitted, even if the configuration is wrong, it does not matter, there is no impact.