Alvin9999 / new-pac

翻墙-科学上网、自由上网、免费科学上网、免费翻墙、油管youtube、fanqiang、软件、VPN、一键翻墙浏览器,vps一键搭建翻墙服务器脚本/教程,免费shadowsocks/ss/ssr/v2ray/goflyway账号/节点,翻墙梯子,电脑、手机、iOS、安卓、windows、Mac、Linux、路由器翻墙、科学上网、youtube视频下载、美区apple id共享账号
54.35k stars 9.3k forks source link

v2ray按照配置无法科学上网 #663

Open xiatengwei opened 4 years ago

xiatengwei commented 4 years ago

这是客户端的配置, "dns" : { "servers" : [ "localhost" ] }, "inbounds" : [ { "listen" : "127.0.0.1", "port" : 1081, "protocol" : "socks", "tag" : "socksinbound", "settings" : { "auth" : "noauth", "udp" : false, "ip" : "127.0.0.1" } }, { "listen" : "127.0.0.1", "port" : 8001, "protocol" : "http", "tag" : "httpinbound", "settings" : { "timeout" : 0 } } ], "outbounds" : [ { "sendThrough" : "0.0.0.0", "mux" : { "enabled" : false, "concurrency" : 8 }, "protocol" : "vmess", "settings" : { "vnext" : [ { "address" : "www.free6666.net", "users" : [ { "id" : "1382eedb-da7e-4f4f-87d4-29ad00e8187b", "alterId" : 64, "security" : "auto", "level" : 0 } ], "port" : 443 } ] }, "tag" : "test server", "streamSettings" : { "wsSettings" : { "path" : "\/18425739\/", "headers" : {

      }
    },
    "quicSettings" : {
      "key" : "",
      "header" : {
        "type" : "none"
      },
      "security" : "none"
    },
    "tlsSettings" : {
      "allowInsecure" : false,
      "alpn" : [
        "http\/1.1"
      ],
      "serverName" : "server.cc",
      "allowInsecureCiphers" : false
    },
    "httpSettings" : {
      "path" : "\/18425739\/"
    },
    "kcpSettings" : {
      "header" : {
        "type" : "none"
      },
      "mtu" : 1350,
      "congestion" : false,
      "tti" : 20,
      "uplinkCapacity" : 5,
      "writeBufferSize" : 1,
      "readBufferSize" : 1,
      "downlinkCapacity" : 20
    },
    "tcpSettings" : {
      "header" : {
        "type" : "none"
      }
    },
    "security" : "none",
    "network" : "ws"
  }
}

],

wildlily980 commented 4 years ago

"protocol" : "socks",改成http 如果还不成,看日志

WangZhonglei commented 4 years ago

好能用,安卓版的,一填就连上了!!!!感谢Alvin9999

你这是啥系统啊? Ubuntu的配置?

xiatengwei commented 4 years ago

macOs的,V2ray客户端我用的是Version 1.5.1版本,没找到地方可以配置protocol。 日志如下 2019/09/28 16:54:22 [Warning] [4155550778] v2ray.com/core/app/proxyman/outbound: failed to process outbound traffic > v2ray.com/core/proxy/vmess/outbound: failed to find an available destination > v2ray.com/core/common/retry: [v2ray.com/core/transport/internet/websocket: failed to dial WebSocket > v2ray.com/core/transport/internet/websocket: failed to dial to (ws://www.free6666.net:443/): 400 Bad Request > websocket: bad handshake] > v2ray.com/core/common/retry: all retry attempts failed

xiatengwei commented 4 years ago

最新错误日志: 2019/09/28 17:07:20 [Warning] v2ray.com/core: V2Ray 4.15.1 started 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [http://www.gstatic.com/generate_204] 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:www.gstatic.com:80] 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/proxy/freedom: opening connection to tcp:www.gstatic.com:80 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:www.gstatic.com:80 2019/09/28 17:07:26 [Info] [708256277] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/http: failed to read http request > read tcp 127.0.0.1:8001->127.0.0.1:63063: i/o timeout 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [http://www.gstatic.com/generate_204] 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:www.gstatic.com:80] 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/proxy/freedom: opening connection to tcp:www.gstatic.com:80 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp:www.gstatic.com:80 2019/09/28 17:07:41 [Info] [22162704] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/http: failed to read http request > read tcp 127.0.0.1:8001->127.0.0.1:63067: i/o timeout

wildlily980 commented 4 years ago

你的本地8001端口开了吗?

xiatengwei notifications@github.com 于2019年9月28日周六 下午5:09写道:

最新错误日志: 2019/09/28 17:07:20 [Warning] v2ray.com/core: V2Ray 4.15.1 started 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [ http://www.gstatic.com/generate_204] 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:www.gstatic.com:80] 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/proxy/freedom: opening connection to tcp:www.gstatic.com:80 2019/09/28 17:07:22 [Info] [708256277] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp: www.gstatic.com:80 2019/09/28 17:07:26 [Info] [708256277] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/http: failed to read http request

read tcp 127.0.0.1:8001->127.0.0.1:63063: i/o timeout 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/proxy/http: request to Method [GET] Host [www.gstatic.com] with URL [ http://www.gstatic.com/generate_204] 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/app/dispatcher: taking detour [direct] for [tcp:www.gstatic.com:80] 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/proxy/freedom: opening connection to tcp:www.gstatic.com:80 2019/09/28 17:07:36 [Info] [22162704] v2ray.com/core/transport/internet/tcp: dialing TCP to tcp: www.gstatic.com:80 2019/09/28 17:07:41 [Info] [22162704] v2ray.com/core/app/proxyman/inbound: connection ends > v2ray.com/core/proxy/http: failed to read http request read tcp 127.0.0.1:8001->127.0.0.1:63067: i/o timeout

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Alvin9999/new-pac/issues/663?email_source=notifications&email_token=AKIPAVB5RKC5IMEFELQHJXDQL4NNLA5CNFSM4I3MZBG2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD72UQ4Q#issuecomment-536168562, or mute the thread https://github.com/notifications/unsubscribe-auth/AKIPAVDMJQTBVH7V7ER4DRLQL4NNLANCNFSM4I3MZBGQ .

xiatengwei commented 4 years ago

端口我查了没有问题呢。

WangZhonglei commented 4 years ago

端口我查了没有问题呢。

连上了么? 就装一个客户端吧?

John-zhan commented 4 years ago

好能用,安卓版的,一填就连上了!!!!感谢Alvin9999

你这是啥系统啊? Ubuntu的配置?

你的安卓配置可以用了?

WangZhonglei commented 4 years ago

好能用,安卓版的,一填就连上了!!!!感谢Alvin9999 你这是啥系统啊? Ubuntu的配置?

你的安卓配置可以用了?

可以,今天是号上不去,估计被封了

hehh2001 commented 4 years ago

@xiatengwei json配置文件太难写了,我用jq检查工具老是错误,能否给一个你的配置,我也是linux系统,自定义代理端口,

hehh2001 commented 4 years ago

{ "log": { "loglevel": "warning" }, "inbound": { "listen": "127.0.0.1", "port": 1080, "protocol": "http", "settings": { "auth": "noauth", "udp": true, "ip": "127.0.0.1" } }, "outbound": { "protocol": "vmess", "settings": { "vnext": [ { "address": "www.free6666.net", "port": 443, "users": [ { "id": "1382eedb-da7e-4f4f-87d4-29ad00e8187b", "level": 1, "alterId": 64 } ] } ] }, "mux": { "enabled": true, "concurrency": 8 }, "streamSettings": { "network": "ws", "security": "tls", "tlsSettings": { "serverName": "www.free6666.net", "allowInsecure": true } } }, "wsSettings": { "path": "/18425739/", "headers": {} }, "outboundDetour": [ { "protocol": "freedom", "settings": {}, "tag": "direct" } ], "routing": { "strategy": "rules", "settings": { "rules": [ { "type": "field", "port": "54-79", "outboundTag": "direct" }, { "type": "field", "port": "81-442", "outboundTag": "direct" }, { "type": "field", "port": "444-65535", "outboundTag": "direct" }, { "type": "field", "domain": [ "gc.kis.scr.kaspersky-labs.com" ], "outboundTag": "direct" }, { "type": "chinasites", "outboundTag": "direct" }, { "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": "direct" }, { "type": "chinaip", "outboundTag": "direct" } ] } } }

这是我自已改的json文件,jq检查通过,能启动v2ray服务,但设置代理后无法上谷歌,我用win版生成的配置导入linux也无法成功过墙.

Alvin9999 commented 4 years ago

增加了一个v2ray账号,可以试试看