Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

尝试搭建CDN节点,但一旦打开CF的小黄云代理就无法使用。 #1396

Open
villager10115 opened this issue Jan 16, 2025 · 4 comments

Comments

@villager10115
Copy link

操作顺序:
1.将域名解析到VPS的IPV4地址
2.查询是否解析成功
3.解析成功后尝试用本脚本配置tls节点
4.测试访问
5.连接后打开CF的代理再一次测试
6.没有延迟,无法访问。
日志如下

2025/01/16 14:31:43 [Warning] core: Xray 24.12.31 started
2025/01/16 14:31:43 from 127.0.0.1:51257 accepted //geo.prod.do.dsp.mp.microsoft.com:443 [socks -> proxy]
2025/01/16 14:31:44 [Warning] [1195190411] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request "\x00"
2025/01/16 14:31:44 from tcp:127.0.0.1:51263 accepted tcp:www.google.com:443 [socks -> proxy]
2025/01/16 14:31:44 from udp:127.0.0.1:49666 accepted udp:8.8.8.8:53 [socks -> proxy]
2025/01/16 14:31:46 from 127.0.0.1:51281 accepted //mtalk.google.com:5228 [socks -> proxy]
2025/01/16 14:31:46 from 127.0.0.1:51282 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 14:31:46 from 127.0.0.1:51283 accepted //beacons5.gvt3.com:443 [socks -> proxy]
2025/01/16 14:31:46 from 127.0.0.1:51284 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 14:31:46 from 127.0.0.1:51285 accepted //prod-eastasia.access-point.cloudmessaging.edge.microsoft.com:443 [socks -> proxy]
2025/01/16 14:31:48 [Error] [664056077] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [664056077] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [206428837] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [206428837] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [664056077] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [206428837] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [664056077] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:48 [Error] [206428837] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:49 from 127.0.0.1:51309 accepted //clients2.google.com:443 [socks -> proxy]
2025/01/16 14:31:49 from 127.0.0.1:51310 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 14:31:49 from 127.0.0.1:51311 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 14:31:49 from 127.0.0.1:51312 accepted //prod-eastasia.access-point.cloudmessaging.edge.microsoft.com:443 [socks -> proxy]
2025/01/16 14:31:49 [Error] [664056077] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:49 [Error] [206428837] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:49 [Error] [2444033454] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:49 [Error] [2444033454] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:49 [Error] [2444033454] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:50 [Error] [2444033454] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:50 [Error] [2444033454] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: operation was canceled
2025/01/16 14:31:53 from 127.0.0.1:51325 accepted http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/disallowedcertstl.cab?14c6074d1257a973 [socks -> direct]
2025/01/16 14:31:53 from 127.0.0.1:51325 accepted http://ctldl.windowsupdate.com/msdownload/update/v3/static/trustedr/en/pinrulesstl.cab?b781675d95b79b60 [socks -> direct]
2025/01/16 14:31:54 当前延迟: -1 ms,none
+0800 2025-01-16 14:31:54 ERROR [3667730312 9.99s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3906774089 10.0s] dns: exchange failed for www.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3667730312 9.99s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3906774089 10.0s] dns: exchange failed for www.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3667730312 9.99s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3906774089 10.0s] dns: exchange failed for www.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3667730312 9.99s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3906774089 10.0s] dns: exchange failed for www.msftconnecttest.com. IN A: context deadline exceeded
+0800 2025-01-16 14:31:54 ERROR [3667730312 9.99s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [1072892661 5.17s] dns: exchange failed for geo.prod.do.dsp.mp.microsoft.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [3906774089 10.0s] dns: exchange failed for www.msftconnecttest.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [1072892661 5.17s] dns: exchange failed for geo.prod.do.dsp.mp.microsoft.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [1072892661 5.17s] dns: exchange failed for geo.prod.do.dsp.mp.microsoft.com. IN A: context canceled
+0800 2025-01-16 14:31:54 ERROR [1072892661 5.17s] dns: exchange failed for geo.prod.do.dsp.mp.microsoft.com. IN A: context canceled
2025/01/16 14:31:55 [Error] [3263606133] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: no such host
2025/01/16 14:31:55 [Error] [3266079871] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: no such host
2025/01/16 14:31:55 [Error] [1388758413] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: no such host
2025/01/16 14:31:55 [Error] [1972171606] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: no such host
2025/01/16 14:31:55 [Error] [1965499716] transport/internet/websocket: failed to dial to akiyama301.com:443 > dial tcp: lookup akiyama301.com: no such host
2025/01/16 14:31:56 from udp:127.0.0.1:61421 accepted udp:8.8.8.8:53 [socks -> proxy]
+0800 2025-01-16 14:31:58 ERROR [3653304409 2.35s] inbound/tun[tun-in]: dial tcp 150.66.48.157:443: connectex: No connection could be made because the target machine actively refused it.
+0800 2025-01-16 14:31:58 ERROR [332852159 2.36s] inbound/tun[tun-in]: dial tcp 150.66.48.157:443: connectex: No connection could be made because the target machine actively refused it.
+0800 2025-01-16 14:31:58 ERROR [110322647 2.36s] inbound/tun[tun-in]: dial tcp 150.66.48.157:443: connectex: No connection could be made because the target machine actively refused it.
+0800 2025-01-16 14:31:58 ERROR [2414632652 2.36s] inbound/tun[tun-in]: dial tcp 150.66.48.157:443: connectex: No connection could be made because the target machine actively refused it.
+0800 2025-01-16 14:31:58 ERROR [2566536898 2.37s] inbound/tun[tun-in]: dial tcp 150.66.48.157:443: connectex: No connection could be made because the target machine actively refused it.
+0800 2025-01-16 14:31:58 ERROR [3508005291 2.37s] inbound/tun[tun-in]: dial tcp 150.66.48.157:443: connectex: No connection could be made because the target machine actively refused it.
2025/01/16 14:32:00 [Error] [3263606133] transport/internet/websocket: failed to dial to akiyama301.com:443 > context canceled
@233boy
Copy link
Owner

233boy commented Jan 16, 2025

你本地PING 一下你的域名看看有没有正常解析上 CF 的IP 吧,看日志没有

@villager10115
Copy link
Author

villager10115 commented Jan 16, 2025

你本地PING 一下你的域名看看有没有正常解析上 CF 的IP 吧,看日志没有

只要检测ip不符就是了吗?ping的时候确实不是解析的ip,关掉代理又是解析的ip,新的日志:

[VMess] 233boy-ws-akiyama301.com(***com:443)
Microsoft Windows NT 10.0.22631.0 - 64
启动服务(2025/01/16 22:01:37)...
Xray 24.12.31 (Xray, Penetrates Everything.) 4be32e9 (go1.23.4 windows/amd64)
A unified platform for anti-censorship.
2025/01/16 22:01:37 [Info] infra/conf/serial: Reading config: &{Name:config.json Format:json}
2025/01/16 22:01:37 [Warning] common/errors: This feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated and being migrated to XHTTP H2 & H3. Please update your config(s) according to release note and documentation before removal.
2025/01/16 22:01:37 [Warning] common/errors: This feature "host" in "headers" is deprecated and being migrated to independent "host". Please update your config(s) according to release note and documentation before removal.
2025/01/16 22:01:37 [Warning] core: Xray 24.12.31 started
2025/01/16 22:01:38 [Warning] [2936194197] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request "\x00"
2025/01/16 22:01:38 from tcp:127.0.0.1:50344 accepted tcp:api.ip.sb:443 [socks -> proxy]
2025/01/16 22:01:38 [Warning] [2914667943] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request "\x00"
2025/01/16 22:01:38 from tcp:127.0.0.1:50347 accepted tcp:www.google.com:443 [socks -> proxy]
2025/01/16 22:01:38 from 127.0.0.1:50360 accepted //beacons2.gvt2.com:443 [socks -> block]
2025/01/16 22:01:38 from 127.0.0.1:50361 accepted //beacons2.gvt2.com:443 [socks -> block]
2025/01/16 22:01:39 from 127.0.0.1:50365 accepted //clients4.google.com:443 [socks -> proxy]
2025/01/16 22:01:45 当前延迟: -1 ms,none
2025/01/16 22:01:46 from 127.0.0.1:50380 accepted //play.google.com:443 [socks -> proxy]
2025/01/16 22:01:46 from 127.0.0.1:50382 accepted //translate.google.com:443 [socks -> proxy]
2025/01/16 22:01:46 from 127.0.0.1:50384 accepted //play.google.com:443 [socks -> proxy]
2025/01/16 22:01:47 from 127.0.0.1:50391 accepted //clients2.google.com:443 [socks -> proxy]
2025/01/16 22:01:48 from 127.0.0.1:50396 accepted //clients4.google.com:443 [socks -> proxy]
[VMess] 233boy-tcp-150.66.48.157(150***157:27774)
Microsoft Windows NT 10.0.22631.0 - 64
启动服务(2025/01/16 22:01:49)...
2025/01/16 22:01:49 当前延迟: 141 ms,() 
Xray 24.12.31 (Xray, Penetrates Everything.) 4be32e9 (go1.23.4 windows/amd64)
A unified platform for anti-censorship.
2025/01/16 22:01:50 [Info] infra/conf/serial: Reading config: &{Name:config.json Format:json}
2025/01/16 22:01:50 [Warning] core: Xray 24.12.31 started
2025/01/16 22:01:50 from 127.0.0.1:50404 accepted //play.google.com:443 [socks -> proxy]
2025/01/16 22:01:50 from 127.0.0.1:50402 accepted //play.google.com:443 [socks -> proxy]
2025/01/16 22:01:50 from 127.0.0.1:50403 accepted //clients2.google.com:443 [socks -> proxy]
2025/01/16 22:01:50 from 127.0.0.1:50405 accepted //translate.google.com:443 [socks -> proxy]
2025/01/16 22:01:51 [Warning] [296809761] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request "\x00"
2025/01/16 22:01:51 from tcp:127.0.0.1:50411 accepted tcp:www.google.com:443 [socks -> proxy]
2025/01/16 22:01:51 from 127.0.0.1:50424 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50426 accepted //beacons.gcp.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50425 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50427 accepted //beacons.gcp.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50428 accepted //beacons4.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50429 accepted //beacons4.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50430 accepted //beacons5.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50431 accepted //beacons5.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50432 accepted //beacons.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50433 accepted //beacons.gvt2.com:443 [socks -> block]
2025/01/16 22:01:51 from 127.0.0.1:50434 accepted //beacons5.gvt3.com:443 [socks -> proxy]
2025/01/16 22:01:51 [Warning] [3830331821] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request "\x00"
2025/01/16 22:01:51 from tcp:127.0.0.1:50437 accepted tcp:api.ip.sb:443 [socks -> proxy]
2025/01/16 22:01:53 当前延迟: 76 ms,(JP) 150.66.48.157
[VMess] 233boy-ws-akiyama301.com(***com:443)
Microsoft Windows NT 10.0.22631.0 - 64
启动服务(2025/01/16 22:01:54)...
Xray 24.12.31 (Xray, Penetrates Everything.) 4be32e9 (go1.23.4 windows/amd64)
A unified platform for anti-censorship.
2025/01/16 22:01:55 [Info] infra/conf/serial: Reading config: &{Name:config.json Format:json}
2025/01/16 22:01:55 [Warning] common/errors: This feature WebSocket transport (with ALPN http/1.1, etc.) is deprecated and being migrated to XHTTP H2 & H3. Please update your config(s) according to release note and documentation before removal.
2025/01/16 22:01:55 [Warning] common/errors: This feature "host" in "headers" is deprecated and being migrated to independent "host". Please update your config(s) according to release note and documentation before removal.
2025/01/16 22:01:55 [Warning] core: Xray 24.12.31 started
2025/01/16 22:01:55 from 127.0.0.1:50444 accepted //beacons2.gvt2.com:443 [socks -> block]
2025/01/16 22:01:55 from 127.0.0.1:50446 accepted //beacons2.gvt2.com:443 [socks -> block]
2025/01/16 22:01:55 from 127.0.0.1:50445 accepted //beacons2.gvt2.com:443 [socks -> block]
2025/01/16 22:01:55 from 127.0.0.1:50447 accepted //beacons2.gvt2.com:443 [socks -> block]
2025/01/16 22:01:56 [Warning] [103122084] app/proxyman/inbound: connection ends > proxy/http: failed to read http request > malformed HTTP request "\x00"
2025/01/16 22:01:56 from tcp:127.0.0.1:50449 accepted tcp:www.google.com:443 [socks -> proxy]
2025/01/16 22:01:56 from 127.0.0.1:50462 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 22:01:56 from 127.0.0.1:50463 accepted //beacons3.gvt2.com:443 [socks -> block]
2025/01/16 22:02:00 from 127.0.0.1:50469 accepted //main.vscode-cdn.net:443 [socks -> proxy]
2025/01/16 22:02:04 当前延迟: -1 ms,none
2025/01/16 22:02:10 from 127.0.0.1:50480 accepted //main.vscode-cdn.net:443 [socks -> proxy]

ping命令:

正在 Ping akiyama301.com [104.21.16.1] 具有 32 字节的数据:
来自 104.21.16.1 的回复: 字节=32 时间=295ms TTL=53
来自 104.21.16.1 的回复: 字节=32 时间=299ms TTL=53
来自 104.21.16.1 的回复: 字节=32 时间=219ms TTL=53
来自 104.21.16.1 的回复: 字节=32 时间=304ms TTL=53

104.21.16.1 的 Ping 统计信息:
    数据包: 已发送 = 4,已接收 = 4,丢失 = 0 (0% 丢失),
往返行程的估计时间(以毫秒为单位):
    最短 = 219ms,最长 = 304ms,平均 = 279ms

@233boy
Copy link
Owner

233boy commented Jan 17, 2025

你参考这些教程吧

sing-box 套 CF 中转教程:
https://233boy.com/sing-box/sing-box-cloudflare/

V2Ray 套 CF 中转教程:
https://233boy.com/v2ray/v2ray-cloudflare/

XRay 套 CF 中转教程:
https://233boy.com/xray/xray-cloudflare/

@villager10115
Copy link
Author

villager10115 commented Jan 18, 2025

我参考教程关闭dns代理重新弄了下,有新报错:

Caddy 运行失败信息:
2025/01/18 03:02:59.663	INFO	using config from file	{"file": "/etc/caddy/Caddyfile"}
2025/01/18 03:02:59.663	WARN	No files matching import glob pattern	{"pattern": "/etc/caddy/sites/*.conf"}
2025/01/18 03:02:59.665	INFO	adapted config to JSON	{"adapter": "caddyfile"}
2025/01/18 03:02:59.665	WARN	Caddyfile input is not formatted; run 'caddy fmt --overwrite' to fix inconsistencies	{"adapter": "caddyfile", "file": "/etc/caddy/Caddyfile", "line": 7}
2025/01/18 03:02:59.665	WARN	admin	admin endpoint disabled
2025/01/18 03:02:59.665	INFO	http.auto_https	server is listening only on the HTTPS port but has no TLS connection policies; adding one to enable TLS	{"server_name": "srv0", "https_port": 443}
2025/01/18 03:02:59.665	INFO	http.auto_https	enabling automatic HTTP->HTTPS redirects	{"server_name": "srv0"}
2025/01/18 03:02:59.665	INFO	tls.cache.maintenance	started background certificate maintenance	{"cache": "0xc0000b7c80"}
Error: loading initial config: loading new config: http app module: start: listening on :443: listen tcp :443: bind: address already in use

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants