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

curl can't complete handshake with blocked websites (TLS v1.2 0x16 0x03 0x03) #353

Closed
WPMGPRoSToTeMa opened this issue May 14, 2024 · 4 comments
Labels

Comments

@WPMGPRoSToTeMa
Copy link

Operating system / операционная система

Windows 10 22H2

Running as service / Запуск программы как сервис

I installed it as a service / Установил как сервис Windows

Describe the bug / Опишите ошибку программы

The blocked websites work fine in the Firefox browser, but curl can't access them.
Here is an example:

>curl -v https://rutracker.org
* Host rutracker.org:443 was resolved.
* IPv6: (none)
* IPv4: 104.21.32.39, 172.67.182.196
*   Trying 104.21.32.39:443...
* Connected to rutracker.org (104.21.32.39) port 443
* ALPN: curl offers h2,http/1.1
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
*  CAfile: D:\curl\bin\curl-ca-bundle.crt
*  CApath: none
* LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rutracker.org:443
* Closing connection
curl: (35) LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to rutracker.org:443

Additional information / Дополнительная информация

No response

@ValdikSS
Copy link
Owner

Provide the pcap dumps of both Firefox and cURL.
https://github.com/ValdikSS/GoodbyeDPI/wiki/How-to-make-traffic-dump-with-Wireshark

@ValdikSS ValdikSS changed the title curl can't complete handshake with blocked websites curl can't complete handshake with blocked websites (TLS v1.2 0x16 0x03 0x03) May 15, 2024
@ValdikSS ValdikSS added the bug label May 15, 2024
@ValdikSS
Copy link
Owner

GoodbyeDPI does not handle "TLSv1.2" record version handshakes yet.

(packet_dataLen >= 3 && memcmp(packet_data, "\x16\x03\x01", 3) == 0))

@ValdikSS
Copy link
Owner

Try it, it should work.
https://github.com/ValdikSS/GoodbyeDPI/actions/runs/9307102451
Please report if it still doesn't.

@WPMGPRoSToTeMa
Copy link
Author

It works, thanks!

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

No branches or pull requests

2 participants