Comments (7)
虽然这个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.
所有 naiveproxy_server 的 user:pass
全部一样就可以,haproxy 连接各个 naiveproxy_server,naiveproxy_client 连接 haproxy 的监听端口,之前 ss/ssr 负载均衡不都是这么做的。
from naiveproxy.
我照下面的設定沒有辦法連,請問這樣看得出是哪裡出問題嗎?
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.
haproxy 开 status 看服务器是不是都是健康在线,再看 haproxy 和 naiveproxy 的 log.
from naiveproxy.
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.
我測試這邊的牆,同一個navieproxy大概用三五分鐘之後就會變非常慢。如果馬上切換到別的naiveproxy點,又可以連三五分鐘。我猜牆把不是白名單的境外IP,超出流量後故意做出這些干擾。
我台灣家用的NAS也是傳一定傳輸量就會被斷線,處於無法傳檔的狀態。
不用為了我這個需求作修改。覺得即使修改之後,牆只要調整一下干擾的策略,我這邊肯定又還是一下能上一下不能上。慘
謝謝
from naiveproxy.
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)
- naive是不是被攻克了 HOT 29
- 这个是什么问题 ~/go/bin/xcaddy build --with github.com/caddyserver/forwardproxy@caddy2=github.com/klzgrad/forwardproxy@naive 运行这个命令的报错 HOT 5
- naiveproxy同时作为上游和中转服务器
- The writing issue with probe resistance requiring authentication in the JSON of forwardproxy v2.7.6-naive. (forwardproxy v2.7.6-naive的josn中probe resistance requires authentication写法问题) HOT 3
- CVE-2023-45288 (Caddy)
- Chromium 124 stable branch is out (cut)
- Connection immediately closed HOT 13
- v124.0.6367.54-1配置quic异常退出 HOT 21
- PostQuantumKyber breaks middleboxes after v124 HOT 34
- 请问现在iOS上没有支持naive的了吗 HOT 2
- MITM'd by Huorong Anti-Virus Personal Root Certificate HOT 13
- Release 无法下载到历史版本 HOT 2
- naiveproxy-v125.0.6422.35-1-openwrt-aarch64_generic.tar.xz unavailable
- 在域名块中添加 log 指令后 forward_proxy 无法正常工作 HOT 1
- [Non-issue] How come the first commit is only 4 days old? HOT 1
- The persistent compilation warning problem has not been solved. HOT 1
- how to deploy naiveproxy server side without caddy? HOT 3
- 请教如何配置access log,以记录所有代理的地址、ip等信息,类似nginx的access log HOT 1
- Feature request: proxy chain HOT 10
- to review caddy-tailscale HTTP3? HOT 2
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 naiveproxy.