Comments (9)
初步排查到是inbounds[settings][clients]中的id有问题,难道这个id有一定的规则?
from xray-examples.
最终根据以下网址确定确实是ID的问题
https://xtls.github.io/config/inbounds/vless.html#clientobject
和
XTLS/Xray-core#158
from xray-examples.
帅哥,后来你怎么解决的,方便给个QQ或者微信什么的吗..
from xray-examples.
帅哥,后来你怎么解决的,方便给个QQ或者微信什么的吗..
我的问题就是出在clients的id那里,那个id需要遵循UUIDv5的标准去生成了,但是不知道你的ID是不是自己随便写的?
from xray-examples.
帅哥,后来你怎么解决的,方便给个QQ或者微信什么的吗..
如果你的id是确定没问题的,直接照搬我上面那份文件,修改port、listen、serverName、certificates和tag下面的内容,
然后你有多少个IP,就写多少个inbounds节点和outbounds节点,然后把ip都替换到listen那里,
最后在routing的rules对它们两两绑定就好了
我上面那个配置是vless+xtls+tcp的配置
from xray-examples.
用的是一健安装脚本,这样运行不了.
{
"log": {
"access": "/var/log/v2ray/access.log",
"error": "/var/log/v2ray/error.log",
"loglevel": "warning"
},
"inbounds": [
{
"port": 31080,
"listen":"156.226.00.00",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "30f44380-f373-42c3-90f6-f9bea054dcb6",
"level": 1,
"alterId": 0
}
]
},
"streamSettings": {
"network": "tcp"
},
"tag": "164-in"
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
}
,
{
"port": 31081,
"listen":"156.253.00.00",
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "30f44380-f373-42c3-90f6-f9bea054dcb7",
"level": 1,
"alterId": 0
}
]
},
"streamSettings": {
"network": "tcp"
},
"tag": "59-in"
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
]
}
},
"routing":{
"rules":[
{
"type":"field",
"inboundTag":"164-in",
"outboundTag":"164-out"
},
{
"type":"field",
"inboundTag":"59-in",
"outboundTag":"59-out"
},
]
},
"outbounds": [
{
"sendThrough":"156.226.00.000",
"protocol": "freedom",
"settings": {},
"tag": "164-out"
},
{
"sendThrough":"156.253.00.00",
"protocol": "freedom",
"settings": {},
"tag": "59-out"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"protocol": "mtproto",
"settings": {},
"tag": "tg-out"
}
],
"dns": {
"servers": [
"https+local://8.8.8.8/dns-query",
"8.8.8.8",
"1.1.1.1",
"localhost"
]
},
"routing": {
"domainStrategy": "IPOnDemand",
"rules": [
{
"type": "field",
"ip": [
"0.0.0.0/8",
"10.0.0.0/8",
"100.64.0.0/10",
"127.0.0.0/8",
"169.254.0.0/16",
"172.16.0.0/12",
"192.0.0.0/24",
"192.0.2.0/24",
"192.168.0.0/16",
"198.18.0.0/15",
"198.51.100.0/24",
"203.0.113.0/24",
"::1/128",
"fc00::/7",
"fe80::/10"
],
"outboundTag": "blocked"
},
{
"type": "field",
"inboundTag": ["tg-in"],
"outboundTag": "tg-out"
}
,
{
"type": "field",
"domain": [
"domain:epochtimes.com",
"domain:epochtimes.com.tw",
"domain:epochtimes.fr",
"domain:epochtimes.de",
"domain:epochtimes.jp",
from xray-examples.
用的是一健安装脚本,这样运行不了. { "log": { "access": "/var/log/v2ray/access.log", "error": "/var/log/v2ray/error.log", "loglevel": "warning" }, "inbounds": [ { "port": 31080, "listen":"156.226.00.00", "protocol": "vmess", "settings": { "clients": [ { "id": "30f44380-f373-42c3-90f6-f9bea054dcb6", "level": 1, "alterId": 0 } ] }, "streamSettings": { "network": "tcp" }, "tag": "164-in" "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } } , { "port": 31081, "listen":"156.253.00.00", "protocol": "vmess", "settings": { "clients": [ { "id": "30f44380-f373-42c3-90f6-f9bea054dcb7", "level": 1, "alterId": 0 } ] }, "streamSettings": { "network": "tcp" }, "tag": "59-in" "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ] } },
"routing":{ "rules":[ { "type":"field", "inboundTag":"164-in", "outboundTag":"164-out" }, { "type":"field", "inboundTag":"59-in", "outboundTag":"59-out" }, ] }, "outbounds": [ { "sendThrough":"156.226.00.000", "protocol": "freedom", "settings": {}, "tag": "164-out" }, { "sendThrough":"156.253.00.00", "protocol": "freedom", "settings": {}, "tag": "59-out" }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" }, { "protocol": "mtproto", "settings": {}, "tag": "tg-out" } ], "dns": { "servers": [ "https+local://8.8.8.8/dns-query", "8.8.8.8", "1.1.1.1", "localhost" ] }, "routing": { "domainStrategy": "IPOnDemand", "rules": [ { "type": "field", "ip": [ "0.0.0.0/8", "10.0.0.0/8", "100.64.0.0/10", "127.0.0.0/8", "169.254.0.0/16", "172.16.0.0/12", "192.0.0.0/24", "192.0.2.0/24", "192.168.0.0/16", "198.18.0.0/15", "198.51.100.0/24", "203.0.113.0/24", "::1/128", "fc00::/7", "fe80::/10" ], "outboundTag": "blocked" }, { "type": "field", "inboundTag": ["tg-in"], "outboundTag": "tg-out" } , { "type": "field", "domain": [ "domain:epochtimes.com", "domain:epochtimes.com.tw", "domain:epochtimes.fr", "domain:epochtimes.de", "domain:epochtimes.jp",
你这个我看着好乱啊,不过,有类似“156.226.00.00”这些IP的吗?恕我孤陋寡闻了,你看看日志里面报什么错吧,盲猜不一定正确
from xray-examples.
的确你的Id是不对的,这个地方是Guid也叫UUID,里面的字符只能是0到9和A到F不区分大小写是16进制数字,其他的都是无效的。
from xray-examples.
close as solved
from xray-examples.
Related Issues (20)
- Certificate expired, forgot to regenerate it. HOT 2
- listen:0.0.0.0 这个配置项是可选的么? HOT 2
- trajan+ws+tls fallback,浏览器访问返回404 HOT 1
- 谁给个 TCP/Socks + QUIC 的配置文件? HOT 3
- 谁能提供一下vless+vision+reality的配置文件? HOT 4
- VLESS-gRPC-REALITY 可以搭配 nginx 吗? HOT 2
- 萌新求助:dokodemo->trojan TLS无法生效是明文的问题 HOT 1
- Reverse SSH Port Forwarding SOCKS as Outbound HOT 1
- Config request HOT 1
- 客户端怎么配置 HOT 1
- VLESS WSS NGINX HOT 2
- VLESS TCP XTLS VISITION明显速度比VLESS TCP TLS慢啊,这正常么? HOT 10
- 客户端出站vmess+tcp+tls 服务器入站vmess+tcp+tls. 连接失败,附带配置,求高人指点迷津。 HOT 71
- VLESS-TCP-XTLS-Vision-REALITY 示例中的网站不支持tls1.3 HOT 6
- VLESS-mKCPSeed服务端配置config_server.json有误 HOT 1
- 'VLESS-TCP-XTLS-WHATEVER' does not work in XRAY server HOT 1
- grpc reality无法回落到vm ws上 HOT 1
- 使用grpc API添加vless+reality+version入站协议,运行时报错failed to dial dest: dial: unknown network求助 HOT 2
- restore 'VLESS-TCP-XTLS-WHATEVER' HOT 1
- Remove Content Based Package Restrictions? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xray-examples.