xvzc / SpoofDPI

A simple and fast anti-censorship tool written in Go
Apache License 2.0
3.4k stars 246 forks source link

not work - linux traffic stoped, today #252

Open 7dir opened 1 day ago

7dir commented 1 day ago

Version

v0.12.0

Operating System

Linux Mint

How are you running SpoofDPI?

/usr/local/bin/spoofdpi -addr 192.168.1.10 -port 3128 -enable-doh -dns-addr 8.8.8.8

Description

today stop working yerstoday is fine

LiquidTheDangerous commented 1 day ago

@7dir Attach logs please

goglm commented 1 day ago

YouTube also doesn't open

yamuru commented 21 hours ago

Can't open YT. I use Firefox, spoof-dpi v0.10.11, default dns and port, window-size 1, here are the logs from debug true:

2024-09-19T17:09:47+09:00 INF [PROXY] created a listener on port 8080
2024-09-19T17:09:49+09:00 DBG [PROXY] request from 127.0.0.1:59886

CONNECT www.youtube.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: www.youtube.com:443

2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [DNS] resolving www.youtube.com using general resolver(8.8.8.8:53)
2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [DNS] resolved 209.85.233.198 from www.youtube.com in 126 ms
2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] new connection to the server 192.168.74.16:40080 -> www.youtube.com
2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] sent connection estabalished to 127.0.0.1:59886
2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] client sent hello 663 bytes
2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] writing chunked client hello to www.youtube.com
2024-09-19T17:09:49+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] window-size: 1
2024-09-19T17:09:50+09:00 DBG [PROXY] request from 127.0.0.1:59898

CONNECT incoming.telemetry.mozilla.org:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: incoming.telemetry.mozilla.org:443

2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [DNS] resolving incoming.telemetry.mozilla.org using general resolver(8.8.8.8:53)
2024-09-19T17:09:50+09:00 DBG [PROXY] request from 127.0.0.1:59914

CONNECT mozilla.cloudflare-dns.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: mozilla.cloudflare-dns.com:443

2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [DNS] resolving mozilla.cloudflare-dns.com using general resolver(8.8.8.8:53)
2024-09-19T17:09:50+09:00 DBG [PROXY] request from 127.0.0.1:59916

CONNECT i.ytimg.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: i.ytimg.com:443

2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [DNS] resolving i.ytimg.com using general resolver(8.8.8.8:53)
2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [DNS] resolved 34.120.208.123 from incoming.telemetry.mozilla.org in 115 ms
2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [DNS] resolved 172.64.41.4 from mozilla.cloudflare-dns.com in 129 ms
2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [DNS] resolved 142.250.74.150 from i.ytimg.com in 121 ms
2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] new connection to the server 192.168.74.16:39360 -> incoming.telemetry.mozilla.org
2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] sent connection estabalished to 127.0.0.1:59898
2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [HTTPS] new connection to the server 192.168.74.16:42426 -> mozilla.cloudflare-dns.com
2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [HTTPS] sent connection estabalished to 127.0.0.1:59914
2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] client sent hello 1254 bytes
2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] writing chunked client hello to incoming.telemetry.mozilla.org
2024-09-19T17:09:50+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] window-size: 1
2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [HTTPS] client sent hello 674 bytes
2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [HTTPS] writing chunked client hello to mozilla.cloudflare-dns.com
2024-09-19T17:09:50+09:00 DBG c66ba295-e399544c-762f4679-08ea1a51 [HTTPS] window-size: 1
2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] new connection to the server 192.168.74.16:53808 -> i.ytimg.com
2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] sent connection estabalished to 127.0.0.1:59916
2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] client sent hello 659 bytes
2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] writing chunked client hello to i.ytimg.com
2024-09-19T17:09:50+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] window-size: 1
2024-09-19T17:09:50+09:00 DBG [PROXY] request from 127.0.0.1:59926

POST http://o.pki.goog/wr2 HTTP/1.1
Host: o.pki.goog
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Accept: */*
Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3
Accept-Encoding: gzip, deflate
Content-Type: application/ocsp-request
Content-Length: 83
Connection: keep-alive
Priority: u=4
Pragma: no-cache
Cache-Control: no-cache

0Q0O0M0K0I0 +�SBԄ����Mw|�#1{5��y�>7$�!��49mB�0{)hL�I��S��ݲb
2024-09-19T17:09:50+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [DNS] resolving o.pki.goog using general resolver(8.8.8.8:53)
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [DNS] resolved 142.250.74.163 from o.pki.goog in 121 ms
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [HTTP] new connection to the server 192.168.74.16:44982 -> o.pki.goog
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [HTTP] sent a request to o.pki.goog
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [HTTP] finished reading from o.pki.goog
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [HTTP] error reading from 127.0.0.1:59926: read tcp 127.0.0.1:8080->127.0.0.1:59926: use of closed network connection
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [HTTP] closing proxy connection: o.pki.goog -> 127.0.0.1:59926
2024-09-19T17:09:51+09:00 DBG 038450d1-57db76ec-ed2e2300-27d755bd [HTTP] closing proxy connection: 127.0.0.1:59926 -> o.pki.goog
2024-09-19T17:10:06+09:00 DBG [PROXY] request from 127.0.0.1:37860

CONNECT push.services.mozilla.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: push.services.mozilla.com:443

2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [DNS] resolving push.services.mozilla.com using general resolver(8.8.8.8:53)
2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [DNS] resolved 34.107.243.93 from push.services.mozilla.com in 117 ms
2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] new connection to the server 192.168.74.16:38802 -> push.services.mozilla.com
2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] sent connection estabalished to 127.0.0.1:37860
2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] client sent hello 673 bytes
2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] writing chunked client hello to push.services.mozilla.com
2024-09-19T17:10:06+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] window-size: 1
2024-09-19T17:10:07+09:00 DBG [PROXY] request from 127.0.0.1:37862

CONNECT push.services.mozilla.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: push.services.mozilla.com:443

2024-09-19T17:10:07+09:00 DBG ef8e6981-bf8b749e-1f9e4d22-d82c6595 [DNS] resolving push.services.mozilla.com using general resolver(8.8.8.8:53)
2024-09-19T17:10:07+09:00 DBG ef8e6981-bf8b749e-1f9e4d22-d82c6595 [DNS] resolved 34.107.243.93 from push.services.mozilla.com in 384 ms
2024-09-19T17:10:07+09:00 DBG ef8e6981-bf8b749e-1f9e4d22-d82c6595 [HTTPS] new connection to the server 192.168.74.16:38818 -> push.services.mozilla.com
2024-09-19T17:10:07+09:00 DBG ef8e6981-bf8b749e-1f9e4d22-d82c6595 [HTTPS] sent connection estabalished to 127.0.0.1:37862
2024-09-19T17:10:07+09:00 DBG ef8e6981-bf8b749e-1f9e4d22-d82c6595 [HTTPS] error reading client hello from 127.0.0.1:37862: EOF
2024-09-19T17:10:50+09:00 DBG [PROXY] request from 127.0.0.1:59968

CONNECT push.services.mozilla.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: push.services.mozilla.com:443

2024-09-19T17:10:50+09:00 DBG faa31b11-71167441-44721655-a13c807f [DNS] resolving push.services.mozilla.com using general resolver(8.8.8.8:53)
2024-09-19T17:10:50+09:00 DBG faa31b11-71167441-44721655-a13c807f [DNS] resolved 34.107.243.93 from push.services.mozilla.com in 328 ms
2024-09-19T17:10:51+09:00 DBG faa31b11-71167441-44721655-a13c807f [HTTPS] new connection to the server 192.168.74.16:38528 -> push.services.mozilla.com
2024-09-19T17:10:51+09:00 DBG faa31b11-71167441-44721655-a13c807f [HTTPS] sent connection estabalished to 127.0.0.1:59968
2024-09-19T17:10:51+09:00 DBG faa31b11-71167441-44721655-a13c807f [HTTPS] client sent hello 670 bytes
2024-09-19T17:10:51+09:00 DBG faa31b11-71167441-44721655-a13c807f [HTTPS] writing chunked client hello to push.services.mozilla.com
2024-09-19T17:10:51+09:00 DBG faa31b11-71167441-44721655-a13c807f [HTTPS] window-size: 1
2024-09-19T17:11:39+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] finished reading from 127.0.0.1:59886
2024-09-19T17:11:39+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] error reading from www.youtube.com: read tcp 192.168.74.16:40080->209.85.233.198:443: use of closed network connection
2024-09-19T17:11:39+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] closing proxy connection: 127.0.0.1:59886 -> www.youtube.com
2024-09-19T17:11:39+09:00 DBG c5d9f335-be197ea0-78ba23f8-69ddac7a [HTTPS] closing proxy connection: www.youtube.com -> 127.0.0.1:59886
2024-09-19T17:12:41+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] finished reading from 127.0.0.1:59898
2024-09-19T17:12:41+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] error reading from incoming.telemetry.mozilla.org: read tcp 192.168.74.16:39360->34.120.208.123:443: use of closed network connection
2024-09-19T17:12:41+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] closing proxy connection: incoming.telemetry.mozilla.org -> 127.0.0.1:59898
2024-09-19T17:12:41+09:00 DBG 77516dd5-8a934515-49e6ed92-f8492675 [HTTPS] closing proxy connection: 127.0.0.1:59898 -> incoming.telemetry.mozilla.org
2024-09-19T17:12:45+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] finished reading from 127.0.0.1:59916
2024-09-19T17:12:45+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] error reading from i.ytimg.com: read tcp 192.168.74.16:53808->142.250.74.150:443: use of closed network connection
2024-09-19T17:12:45+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] closing proxy connection: i.ytimg.com -> 127.0.0.1:59916
2024-09-19T17:12:45+09:00 DBG 19a9d42a-eede8971-de3c8393-8461dcd7 [HTTPS] closing proxy connection: 127.0.0.1:59916 -> i.ytimg.com
2024-09-19T17:12:54+09:00 DBG [PROXY] request from 127.0.0.1:39688

CONNECT www.youtube.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: www.youtube.com:443

2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [DNS] resolving www.youtube.com using general resolver(8.8.8.8:53)
2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [DNS] resolved 209.85.233.198 from www.youtube.com in 124 ms
2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [HTTPS] new connection to the server 192.168.74.16:46322 -> www.youtube.com
2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [HTTPS] sent connection estabalished to 127.0.0.1:39688
2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [HTTPS] client sent hello 1229 bytes
2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [HTTPS] writing chunked client hello to www.youtube.com
2024-09-19T17:12:54+09:00 DBG a34c397f-8512f275-35ede8e6-5e064253 [HTTPS] window-size: 1
2024-09-19T17:12:55+09:00 DBG [PROXY] request from 127.0.0.1:39690

CONNECT i.ytimg.com:443 HTTP/1.1
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:126.0) Gecko/20100101 Firefox/126.0
Proxy-Connection: keep-alive
Connection: keep-alive
Host: i.ytimg.com:443

2024-09-19T17:12:55+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [DNS] resolving i.ytimg.com using general resolver(8.8.8.8:53)
2024-09-19T17:12:55+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [DNS] resolved 142.250.74.86 from i.ytimg.com in 118 ms
2024-09-19T17:12:56+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [HTTPS] new connection to the server 192.168.74.16:51162 -> i.ytimg.com
2024-09-19T17:12:56+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [HTTPS] sent connection estabalished to 127.0.0.1:39690
2024-09-19T17:12:56+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [HTTPS] client sent hello 1225 bytes
2024-09-19T17:12:56+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [HTTPS] writing chunked client hello to i.ytimg.com
2024-09-19T17:12:56+09:00 DBG 37e58041-b3fe8da3-b6815464-8c9443cb [HTTPS] window-size: 1
2024-09-19T17:12:57+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] finished reading from 127.0.0.1:37860
2024-09-19T17:12:57+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] error reading from push.services.mozilla.com: read tcp 192.168.74.16:38802->34.107.243.93:443: use of closed network connection
2024-09-19T17:12:57+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] closing proxy connection: push.services.mozilla.com -> 127.0.0.1:37860
2024-09-19T17:12:57+09:00 DBG f1e0583a-0f1ecca7-56b55ec7-1b490bae [HTTPS] closing proxy connection: 127.0.0.1:37860 -> push.services.mozilla.com
Krasnoslabodtsev commented 19 hours ago

I've no idea if it's the same, I'm new user, but when I turn it on, I cannot access any site using any browser because of empty server response (Sonoma 14.6.1 (23G93) )

LiquidTheDangerous commented 16 hours ago

@Krasnoslabodtsev @7dir @goglm @yamuru Please, Y'all can check this branch https://github.com/xvzc/SpoofDPI/tree/fix-tunneling-err-handling/main PR #253

Maybe it could help

Manual building required

Krasnoslabodtsev commented 13 hours ago

@LiquidTheDangerous переключился локально в ветку МР, собрал, запустил, поведение не поменялось.

Сайт google.com не отправил данных. ERR_EMPTY_RESPONSE

image
edoooss22 commented 11 hours ago

такая же проблема

ar-martynov commented 8 hours ago

same thing here