xvzc / SpoofDPI

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

Mac OS X, ARM, doesn't work — requests time out #130

Open brianconnoly opened 1 month ago

brianconnoly commented 1 month ago

Describe the bug

I started spoof-dpi, checked proxy setup but nothing worked

Entered debug mode — proxy is set correctly, requests are catched, but they fail by time out

Youtube videos (and youtube-dl) not working with or without utility

Expected behavior

Youtube videos are working again

Actual behavior

Not working

How To Reproduce?

Idk

Client information

OS: Mac OS Sonoma

Version: 14.5

Additional context

DEBU[2024-08-10T19:19:56+03:00] [HTTPS] New connection to the server www.youtube.com 192.168.1.67:61607 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Sent 200 Connection Estabalished to 127.0.0.1:61606 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Client sent hello 517bytes           
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Writing chunked client hello to www.youtube.com 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Chunking client hello.               
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Error reading from 64.233.165.198:443 timed out 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Error reading from 127.0.0.1:61594 timed out 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Closing client Connection.. 127.0.0.1:61594 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Error reading from 15.197.213.252:443 timed out 
DEBU[2024-08-10T19:19:56+03:00] [HTTPS] Closing server Connection.. clientstream.launchdarkly.com 192.168.1.67:61595 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Error reading from 127.0.0.1:61585 timed out 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Closing client Connection.. 127.0.0.1:61585 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Error reading from 17.248.214.67:443 timed out 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Closing server Connection.. gateway.icloud.com 192.168.1.67:61586 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Finished 127.0.0.1:61600             
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Closing client Connection.. 127.0.0.1:61600 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Error reading from 157.240.205.54:443 timed out 
DEBU[2024-08-10T19:19:57+03:00] [HTTPS] Closing server Connection.. graph.oculus.com 192.168.1.67:61601 
DEBU[2024-08-10T19:19:58+03:00] [HTTPS] Error reading from 127.0.0.1:61606 timed out 
DEBU[2024-08-10T19:19:58+03:00] [HTTPS] Closing client Connection.. 127.0.0.1:61606 
DEBU[2024-08-10T19:19:58+03:00] [HTTPS] Closing server Connection.. www.youtube.com 192.168.1.67:61607 
DEBU[2024-08-10T19:19:58+03:00] [PROXY] Request from 127.0.0.1:61620

youtube-dl error

ERROR: Unable to download API page: <urlopen error [SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)> (caused by URLError(SSLEOFError(8, '[SSL: UNEXPECTED_EOF_WHILE_READING] EOF occurred in violation of protocol (_ssl.c:1000)')))
asimba commented 1 month ago

Did you try "-window-size=2" or "-window-size=0"? (tested on macOS Sequoia x86-64, works well)

kurtalex commented 1 month ago

So I have MacBook on Apple Silicon(OS: Sonoma 14.6.1) and Spoof-DPI working well

I use this script to install:

macOS Apple Silicon

curl -fsSL https://raw.githubusercontent.com/xvzc/SpoofDPI/main/install.sh | bash -s darwin-arm64

Maybe you should reinstall it? You can also try using these parameters: spoof-dpi --enable-doh --window-size 0

Or your internet provider takes deeper approach to blocking :)

LiquidTheDangerous commented 1 month ago

still actual?

rgxfox commented 1 month ago

yes, actual, confirm the problem

LiquidTheDangerous commented 1 month ago

@rgxfox could you try this forked branch? https://github.com/LiquidTheDangerous/SpoofDPI/tree/client-hello-fix/main

upd: try build from source this repo main branch

Ledorub commented 3 weeks ago

Is this still relevant?

Works fine for me on Sonoma.

currantino commented 3 weeks ago

Works fine on m1 pro, Sonoma

SailorMax commented 3 weeks ago

m1 pro, Sonoma 14.3. Solution in docker container - timeout. With Windows works fine, but only with windows-size=0.

SailorMax commented 2 weeks ago

@rgxfox could you try this forked branch? https://github.com/LiquidTheDangerous/SpoofDPI/tree/client-hello-fix/main

upd: try build from source this repo main branch

It also doesn't work:

Снимок экрана 2024-08-23 в 20 04 42
LiquidTheDangerous commented 2 weeks ago

@SailorMax It looks like the proxy can't reach the remote service. We need to rule out a problem with the docker network setup. Can you try running the latest release from the host machine, not through a container?

SailorMax commented 2 weeks ago

Can you try running the latest release from the host machine, not through a container?

These computers are not mine. The owners are ordinary users. I'll try when they're in front of me...