mirror of
https://github.com/Ysurac/openmptcprouter-vps.git
synced 2025-02-12 19:31:54 +00:00
124 lines
1.9 KiB
JSON
124 lines
1.9 KiB
JSON
{
|
|
"log": {
|
|
"loglevel": "debug",
|
|
"error": "/tmp/v2rayError.log"
|
|
},
|
|
"transport": {
|
|
"tcpSettings": {},
|
|
"wsSettings": {},
|
|
"kcpSettings": {
|
|
"mtu": 1460,
|
|
"tti": 10,
|
|
"uplinkCapacity": 100,
|
|
"downlinkCapacity": 100,
|
|
"congestion": false,
|
|
"readBufferSize": 8,
|
|
"writeBufferSize": 8
|
|
}
|
|
},
|
|
"inbounds": [
|
|
{
|
|
"tag": "omrin-tunnel",
|
|
"port": 65228,
|
|
"protocol": "vless",
|
|
"settings": {
|
|
"decryption": "none",
|
|
"clients": [
|
|
{
|
|
"id": "V2RAY_UUID",
|
|
"level": 0,
|
|
"alterId": 0,
|
|
"email": "openmptcprouter"
|
|
}
|
|
]
|
|
},
|
|
"streamSettings": {
|
|
"sockopt": {
|
|
"mark": 0
|
|
},
|
|
"network": "tcp",
|
|
"security": "tls",
|
|
"tlsSettings": {
|
|
"certificates": [
|
|
{
|
|
"certificateFile": "/etc/openvpn/ca/pki/issued/server.crt",
|
|
"keyFile": "/etc/openvpn/ca/pki/private/server.key"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"listen": "127.0.0.1",
|
|
"port": 10085,
|
|
"protocol": "dokodemo-door",
|
|
"settings": {
|
|
"address": "127.0.0.1"
|
|
},
|
|
"tag": "api"
|
|
}
|
|
],
|
|
"outbounds": [
|
|
{
|
|
"protocol": "freedom",
|
|
"settings": {
|
|
"userLevel": 0
|
|
},
|
|
"tag": "direct"
|
|
}
|
|
],
|
|
"routing": {
|
|
"rules": [
|
|
{
|
|
"type": "field",
|
|
"inboundTag": [
|
|
"omrin-tunnel"
|
|
],
|
|
"outboundTag": "OMRLan",
|
|
"domain": [
|
|
"full:omr.lan"
|
|
]
|
|
},
|
|
{
|
|
"inboundTag": [
|
|
"api"
|
|
],
|
|
"outboundTag": "api",
|
|
"type": "field"
|
|
}
|
|
]
|
|
},
|
|
"reverse": {
|
|
"portals": [
|
|
{
|
|
"tag": "OMRLan",
|
|
"domain": "omr.lan"
|
|
}
|
|
]
|
|
},
|
|
"stats": {},
|
|
"api": {
|
|
"tag": "api",
|
|
"services": [
|
|
"HandlerService",
|
|
"LoggerService",
|
|
"StatsService"
|
|
]
|
|
},
|
|
"policy": {
|
|
"levels": {
|
|
"0": {
|
|
"uplinkOnly": 0,
|
|
"downlinkOnly": 0,
|
|
"bufferSize": 512,
|
|
"connIdle": 2400,
|
|
"statsUserUplink": true,
|
|
"statsUserDownlink": true
|
|
}
|
|
},
|
|
"system": {
|
|
"statsInboundUplink": true,
|
|
"statsInboundDownlink": true
|
|
}
|
|
}
|
|
}
|