Giter VIP home page Giter VIP logo

Comments (7)

klzgrad avatar klzgrad commented on July 26, 2024 1

虽然这个107错误并不是证书错误,但不测试也不清楚是什么错误。只肉眼看会发现

"proxy": "https://user:[email protected]:1078"

这里的域名与服务器返回证书的域名不符。

你在config.json加上

"host-resolver-rules": "MAP server.com:443 127.0.0.1:1078",
"proxy": "https://user:[email protected]",

这样还是有server.com跟a.server.com证书不符的问题。所以你几个服务器上的证书得用同一个域名,证书可以不同,域名要一样。这种约束就是运行在HTTPS之上的代价。

但是,在提出解决方案之前,能不能先解释一下需求?你只是要简单的负载平衡?因为我的理解中这种负载平衡跟“快”没有必然联系,你也可能被平衡到一个慢速服务器上。

from naiveproxy.

rampageX avatar rampageX commented on July 26, 2024

所有 naiveproxy_server 的 user:pass 全部一样就可以,haproxy 连接各个 naiveproxy_server,naiveproxy_client 连接 haproxy 的监听端口,之前 ss/ssr 负载均衡不都是这么做的。

from naiveproxy.

kousyougi avatar kousyougi commented on July 26, 2024

我照下面的設定沒有辦法連,請問這樣看得出是哪裡出問題嗎?

naive的config.json

{
"listen": "socks://0.0.0.0:1079",
"proxy": "https://user:[email protected]:1078",
"padding": true
}

haproxy.cfg設定

listen naive
bind 0.0.0.0:1078
mode tcp
balance roundrobin
server t1 a.server.com:443 check inter 1000 weight 1
server t2 b.server.com:443 check inter 1000 weight 1
server t3 c.server.com:443 check inter 1000 weight 1
server t4 d.server.com:443 check inter 1000 weight 1
server t5 e.server.com:443 check inter 1000 weight 1

from naiveproxy.

rampageX avatar rampageX commented on July 26, 2024

haproxy 开 status 看服务器是不是都是健康在线,再看 haproxy 和 naiveproxy 的 log.

from naiveproxy.

kousyougi avatar kousyougi commented on July 26, 2024

haproxy的status大部分都是綠色的。
naiveproxy一直跳出下面的信息。

ERR_PROXY_CONNECTION_FAILED
[0419/220043.367:ERROR:ssl_client_socket_impl.cc(941)] handshake failed; returned -1, SSL error code 1, net_error -107
[0419/220043.367:INFO:naive_proxy.cc(164)] Connection 67 closed: ERR_PROXY_CONNECTION_FAILED
[0419/220043.406:ERROR:ssl_client_socket_impl.cc(941)] handshake failed; returned -1, SSL error code 1, net_error -107
[0419/220043.406:INFO:naive_proxy.cc(164)] Connection 58 closed: ERR_PROXY_CONNECTION_FAILED

from naiveproxy.

kousyougi avatar kousyougi commented on July 26, 2024

我測試這邊的牆,同一個navieproxy大概用三五分鐘之後就會變非常慢。如果馬上切換到別的naiveproxy點,又可以連三五分鐘。我猜牆把不是白名單的境外IP,超出流量後故意做出這些干擾。
我台灣家用的NAS也是傳一定傳輸量就會被斷線,處於無法傳檔的狀態。

不用為了我這個需求作修改。覺得即使修改之後,牆只要調整一下干擾的策略,我這邊肯定又還是一下能上一下不能上。慘

謝謝

from naiveproxy.

Loyalsoldier avatar Loyalsoldier commented on July 26, 2024

Finally you will find out that the last and biggest problem is global QoS on ISP networks in China Mainland.

from naiveproxy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.