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

Linux tries IPv6 and VPN not working #699

Open
alexeyq2 opened this issue Mar 20, 2024 · 1 comment
Open

Linux tries IPv6 and VPN not working #699

alexeyq2 opened this issue Mar 20, 2024 · 1 comment

Comments

@alexeyq2
Copy link
Contributor

AmneziaWG and WireGuard protocols do not work properly on Linux

Ordinary programs use IPv6 and hangs. However, sophisticated programs like browsers switches to IPv4 quickly.

wget

$ time wget ya.ru
--2023-12-14 09:19:58--  http://ya.ru
Resolving ya.ru (ya.ru)... 2a02:6b8::2:242 , 77.88.55.242, 5.255.255.242
Connecting to ya.ru (ya.ru)| 2a02:6b8::2:242 |:80... ^C
real    1m53s   <---- 2 minutes (!) Notice - it tries IPv6

python program - no response

import requests
requests.get("https://ya.ru")

Windows 10
Tries inet6 for 3-5 minutes then switches to inet4 system-wide (windows disables IPv6)

MacOS, Android - no problem (yet)

See also /etc/gai.conf, ULA

Fix:
0001-Fix-AWG-WG-proto-IPv6-address-to-be-ULA.patch.txt

@alexeyq2
Copy link
Contributor Author

Fixed client is here. No IPv6 leak has been introduced by this change.

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

1 participant