v2fly_v5配置模版,希望能把它加入到v2rayN中。 #5612
minusmulticoloredper
started this conversation in
Show and tell
Replies: 3 comments
-
无注释版本 {
"log": {
"access": {
"type": "Console",
"level": "Info"
},
"error": {
"type": "Console",
"level": "Error"
}
},
"inbounds": [
{
"tag": "socks",
"listen": "127.0.0.1",
"port": 10808,
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {
"udpEnabled": true
}
},
{
"tag": "http",
"listen": "127.0.0.1",
"port": 10809,
"protocol": "http",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
},
"settings": {}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "trojan",
"settings": {
"address": "1.2.3.4",
"password": "pswd",
"port": 12345
},
"streamSettings": {
"transport": "ws",
"transportSettings": {
"path": "/",
"header": [
{
"key": "Host",
"value": "a.b.c"
}
]
},
"security": "utls",
"securitySettings": {
"imitate": "randomized",
"tlsConfig": {
"serverName": "a.b.c",
"allowInsecure": false,
"nextProtocol": [
"h3"
]
}
},
"mux": {
"enabled": false,
"concurrency": -1
}
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {}
}
],
"dns": {
"nameServer": [
{
"address": {
"address": "223.5.5.5",
"port": 53
},
"geoDomain": [
{
"code": "cn"
},
{
"code": "geolocation-cn"
}
]
},
{
"address": {
"address": "1.1.1.1",
"port": 53
}
},
{
"address": {
"address": "8.8.8.8",
"port": 53
}
},
{
"address": {
"address": "https://dns.google/dns-query"
}
}
],
"staticHosts": [
{
"type": "Full",
"domain": "dns.google",
"ip": [
"8.8.8.8",
"8.8.4.4"
]
}
]
},
"router": {
"domainStrategy": "AsIs",
"rule": [
{
"tag": "block",
"sourcePortList": "443",
"networks": "udp"
},
{
"tag": "block",
"geoDomain": [
{
"code": "category-ads-all"
}
]
},
{
"tag": "direct",
"geoDomain": [
{
"code": "cn"
},
{
"code": "geolocation-cn"
}
]
},
{
"tag": "direct",
"geoip": [
{
"code": "private"
},
{
"code": "cn"
},
{
"cidr": [
{
"ipAddr": "223.5.5.5",
"prefix": 32
},
{
"ipAddr": "119.29.29.29",
"prefix": 32
},
{
"ipAddr": "180.76.76.76",
"prefix": 32
},
{
"ipAddr": "114.114.114.114",
"prefix": 32
}
]
}
]
},
{
"tag": "proxy",
"sourcePortList": "0-65535"
}
]
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
用自定义配置,你这个配置做模板即可 |
Beta Was this translation helpful? Give feedback.
0 replies
-
可以先把Trojan和ShadowSocks支持进去,不支持的就先禁用掉。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
亲测可用,去掉注释然后把ip,端口和密码这些配置替换掉,然后删掉不需要的配置就可以用了。
Beta Was this translation helpful? Give feedback.
All reactions