2dust / v2rayNG

A V2Ray client for Android, support Xray core and v2fly core
https://1.2345345.xyz
GNU General Public License v3.0
35.51k stars 5.46k forks source link

自定义配置无法连接 #89

Closed EsuRt closed 5 years ago

EsuRt commented 5 years ago

同样的自定义配置在v2rayN中可以使用,但在v2rayNG中不起作用,配置是通过前置ss代理中转v2流量,前置代理ip和最后流量到达的服务器ip都没有被墙。

日志信息

``` 09-02 10:16:45.547 I/GoLog ( 9258): new v2ray core 09-02 10:16:45.564 I/GoLog ( 9258): start v2ray core 09-02 10:16:45.565 I/GoLog ( 9258): [Warning] v2ray.com/core: V2Ray 4.20.0 started 09-02 10:16:45.574 D/com.v2ray.ang( 9258): m,1500 a,26.26.26.1,30 r,0.0.0.0,0 d,26.26.26.2 09-02 10:16:45.638 D/com.v2ray.ang( 9258): [/data/app/com.v2ray.ang-arJy8OgEU9H1vKACCqBmuA==/lib/arm64/libtun2socks.so, --netif-ipaddr, 26.26.26.2, --netif-netmask, 255.255.255.252, --socks-server-addr, 127.0.0.1:10808, --tunmtu, 1500, --sock-path, sock_path, --enable-udprelay, --loglevel, notice, --dnsgw, 127.0.0.1:10807] 09-02 10:16:45.646 D/com.v2ray.ang( 9258): Process[pid=21850, hasExited=false] 09-02 10:16:45.646 D/com.v2ray.ang( 9258): /data/user/0/com.v2ray.ang/files/sock_path 09-02 10:16:45.674 D/tun2socks(21850): NOTICE(tun2socks): initializing BadVPN tun2socks 1.999.130 09-02 10:16:45.697 D/com.v2ray.ang( 9258): sendFd tries: 0 09-02 10:16:45.697 D/tun2socks(21850): NOTICE(tun2socks): entering event loop 09-02 10:16:45.794 D/tun2socks(21850): ERROR(BConnection): connection failed 09-02 10:16:45.794 D/tun2socks(21850): ERROR(BSocksClient): connection failed 09-02 10:16:47.321 D/tun2socks(21850): ERROR(BConnection): connection failed 09-02 10:16:47.322 D/tun2socks(21850): ERROR(BSocksClient): connection failed 09-02 10:17:07.048 D/tun2socks(21850): ERROR(BConnection): connection failed 09-02 10:17:07.048 D/tun2socks(21850): ERROR(BSocksClient): connection failed 09-02 10:17:21.602 D/tun2socks(21850): ERROR(BConnection): connection failed 09-02 10:17:21.602 D/tun2socks(21850): ERROR(BSocksClient): connection failed 09-02 10:17:24.022 D/com.v2ray.ang( 9258): tun2socks destroy 09-02 10:17:24.024 D/tun2socks(21850): NOTICE(tun2socks): termination requested 09-02 10:17:24.024 D/tun2socks(21850): NOTICE(tun2socks): tearing down 09-02 10:17:24.024 D/tun2socks(21850): NOTICE(tun2socks): Free TCP connections 09-02 10:17:24.025 D/tun2socks(21850): NOTICE(tun2socks): exiting 09-02 10:17:24.026 I/GoLog ( 9258): [Error] v2ray.com/core/app/commander: failed to start grpc server > v2ray.com/core/app/commander: listen closed 09-02 10:17:59.240 I/GoLog ( 9258): loading v2ray config 09-02 10:17:59.242 I/GoLog ( 9258): Preparing Domain: 服务器ip:端口 09-02 10:17:59.243 I/GoLog ( 9258): Prepare Result: 09-02 10:17:59.243 I/GoLog ( 9258): Domain: 服务器ip 09-02 10:17:59.243 I/GoLog ( 9258): Port: 端口 09-02 10:17:59.243 I/GoLog ( 9258): IPs: [服务器ip] ```

自定义配置

``` { "policy": { "system": { "statsInboundUplink": true, "statsInboundDownlink": true } }, "log": { "access": "", "error": "", "loglevel": "warning" }, "inbounds": [ { "tag": "proxy", "port": 10808, "listen": "0.0.0.0", "protocol": "socks", "sniffing": { "enabled": false, "destOverride": [ "http", "tls" ] }, "settings": { "auth": "noauth", "udp": true, "ip": null, "address": null, "clients": null }, "streamSettings": null }, { "tag": "api", "port": 10805, "listen": "127.0.0.1", "protocol": "dokodemo-door", "sniffing": null, "settings": { "auth": null, "udp": false, "ip": null, "address": "127.0.0.1", "clients": null }, "streamSettings": null } ], "outbounds": [ { "tag": "proxy", "protocol": "vmess", "settings": { "vnext": [ { "address": xxxxxxxx, "port": xxx, "users": [ { "alterId": 32, "id": xxxxxxxxxxxxxxxxxxxx } ] } ] }, "proxySettings": { "tag": "transit" } }, { "tag": "transit", "protocol": "shadowsocks", "settings": { "vnext": null, "servers": [ { "email": null, "address": xxxxxxxxxxxxxxxxxxxxxxxxxx, "method": "aes-128-cfb", "ota": false, "password": xxxxxxxxxxxxxxxxxxx, "port": xxxx, "level": 1, "users": null } ], "response": null }, "streamSettings": { "network": "tcp", "security": null, "tlsSettings": null, "tcpSettings": null, "kcpSettings": null, "wsSettings": null, "httpSettings": null, "quicSettings": null }, "mux": { "enabled": false } }, { "tag": "direct", "protocol": "freedom", "settings": { "vnext": null, "servers": null, "response": null }, "streamSettings": null, "mux": null }, { "tag": "block", "protocol": "blackhole", "settings": { "vnext": null, "servers": null, "response": { "type": "http" } }, "streamSettings": null, "mux": null } ], "stats": {}, "api": { "tag": "api", "services": [ "StatsService" ] }, "dns": { "servers": [ "1.1.1.1" ] }, "routing": { "domainStrategy": "IPIfNonMatch", "rules": [ { "type": "field", "port": null, "inboundTag": "api", "outboundTag": "api", "ip": null, "domain": null }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "proxy", "ip": null, "domain": [ "geosite:google", "geosite:github", "geosite:netflix", "geosite:steam", "geosite:telegram", "geosite:tumblr", "geosite:speedtest", "geosite:bbc", "domain:gvt1.com", "domain:textnow.com", "domain:twitch.tv", "domain:wikileaks.org", "domain:naver.com" ] }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "proxy", "ip": [ "91.108.4.0/22", "91.108.8.0/22", "91.108.12.0/22", "91.108.20.0/22", "91.108.36.0/23", "91.108.38.0/23", "91.108.56.0/22", "149.154.160.0/20", "149.154.164.0/22", "149.154.172.0/22", "74.125.0.0/16", "173.194.0.0/16", "172.217.0.0/16", "216.58.200.0/24", "216.58.220.0/24" ], "domain": null }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "direct", "ip": null, "domain": [ "domain:12306.com", "domain:51ym.me", "domain:52pojie.cn", "domain:8686c.com", "domain:abercrombie.com", "domain:adobesc.com", "domain:air-matters.com", "domain:air-matters.io", "domain:airtable.com", "domain:akadns.net", "domain:apache.org", "domain:api.crisp.chat", "domain:api.termius.com", "domain:appshike.com", "domain:appstore.com", "domain:aweme.snssdk.com", "domain:bababian.com", "domain:battle.net", "domain:beatsbydre.com", "domain:bet365.com", "domain:bilibili.cn", "domain:ccgslb.com", "domain:ccgslb.net", "domain:chunbo.com", "domain:chunboimg.com", "domain:clashroyaleapp.com", "domain:cloudsigma.com", "domain:cloudxns.net", "domain:cmfu.com", "domain:culturedcode.com", "domain:dct-cloud.com", "domain:didialift.com", "domain:douyutv.com", "domain:duokan.com", "domain:dytt8.net", "domain:easou.com", "domain:ecitic.net", "domain:eclipse.org", "domain:eudic.net", "domain:ewqcxz.com", "domain:fir.im", "domain:frdic.com", "domain:fresh-ideas.cc", "domain:godic.net", "domain:goodread.com", "domain:haibian.com", "domain:hdslb.net", "domain:hollisterco.com", "domain:hongxiu.com", "domain:hxcdn.net", "domain:images.unsplash.com", "domain:img4me.com", "domain:ipify.org", "domain:ixdzs.com", "domain:jd.hk", "domain:jianshuapi.com", "domain:jomodns.com", "domain:jsboxbbs.com", "domain:knewone.com", "domain:kuaidi100.com", "domain:lemicp.com", "domain:letvcloud.com", "domain:lizhi.io", "domain:localizecdn.com", "domain:lucifr.com", "domain:luoo.net", "domain:mai.tn", "domain:maven.org", "domain:miwifi.com", "domain:moji.com", "domain:moke.com", "domain:mtalk.google.com", "domain:mxhichina.com", "domain:myqcloud.com", "domain:myunlu.com", "domain:netease.com", "domain:nfoservers.com", "domain:nssurge.com", "domain:nuomi.com", "domain:ourdvs.com", "domain:overcast.fm", "domain:paypal.com", "domain:paypalobjects.com", "domain:pgyer.com", "domain:qdaily.com", "domain:qdmm.com", "domain:qin.io", "domain:qingmang.me", "domain:qingmang.mobi", "domain:qqurl.com", "domain:rarbg.to", "domain:rrmj.tv", "domain:ruguoapp.com", "domain:sm.ms", "domain:snwx.com", "domain:soku.com", "domain:startssl.com", "domain:store.steampowered.com", "domain:symcd.com", "domain:teamviewer.com", "domain:tmzvps.com", "domain:trello.com", "domain:trellocdn.com", "domain:ttmeiju.com", "domain:udache.com", "domain:uxengine.net", "domain:weather.bjango.com", "domain:weather.com", "domain:webqxs.com", "domain:weico.cc", "domain:wenku8.net", "domain:werewolf.53site.com", "domain:windowsupdate.com", "domain:wkcdn.com", "domain:workflowy.com", "domain:xdrig.com", "domain:xiaojukeji.com", "domain:xiaomi.net", "domain:xiaomicp.com", "domain:ximalaya.com", "domain:xitek.com", "domain:xmcdn.com", "domain:xslb.net", "domain:xteko.com", "domain:yach.me", "domain:yixia.com", "domain:yunjiasu-cdn.net", "domain:zealer.com", "domain:zgslb.net", "domain:zimuzu.tv", "domain:zmz002.com", "domain:samsungdm.com" ] }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "block", "ip": null, "domain": [ "geosite:category-ads" ] }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "direct", "ip": [ "geoip:private" ], "domain": null }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "direct", "ip": [ "geoip:cn" ], "domain": null }, { "type": "field", "port": null, "inboundTag": null, "outboundTag": "direct", "ip": null, "domain": [ "geosite:cn" ] } ] } } ```
if1y commented 5 years ago

我也发现了,custom domain 设置了绕过,但是依然被代理。 把 ipv6代理功能关了之后,恢复正常。可能这个功能还有bug

2dust commented 5 years ago

Custom configuration can only be solved by yourself