amnezia-vpn/amnezia-client

Linux tries IPv6 and VPN not working

alexeyq2 opened this issue · 1 comments

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

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