amnezia-vpn / amnezia-client

Amnezia VPN Client (Desktop+Mobile)
https://amnezia.org
GNU General Public License v3.0
4.53k stars 291 forks source link

Linux tries IPv6 and VPN not working #699

Open alexeyq2 opened 6 months ago

alexeyq2 commented 6 months ago

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 commented 6 months ago

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

Koochr commented 3 months ago

I have a related issue - ipv6 is disabled in the kernel in my OS, and I get the error:

>LOG:1720051188,I,net_addr_v6_add: fd15:53b6:dead::2/64 dev tun0
>LOG:1720051188,W,sitnl_send: rtnl: generic error (-95): Operation not supported
>LOG:1720051188,F,Linux can't add IPv6 to interface tun0

Is it possible to add a setting to disable device ipv6 address insertion?

rasolAAaa commented 3 months ago

باسلام خسته نباشید من اشتراک رالغو مکنم با تشکر فراوان

در تاریخ پنجشنبه ۴ ژوئیهٔ ۲۰۲۴،‏ ۴:۵۹ Koochr @.***> نوشت:

I have a related issue - ipv6 is disabled in the kernel in my OS, and I get the error:

LOG:1720051188,I,net_addr_v6_add: fd15:53b6:dead::2/64 dev tun0 LOG:1720051188,W,sitnl_send: rtnl: generic error (-95): Operation not supported LOG:1720051188,F,Linux can't add IPv6 to interface tun0

Is it possible to add a setting to disable device ipv6 address insertion?

— Reply to this email directly, view it on GitHub https://github.com/amnezia-vpn/amnezia-client/issues/699#issuecomment-2207654273, or unsubscribe https://github.com/notifications/unsubscribe-auth/BIQMEYUJUN32JLNEJIOUQX3ZKSJM5AVCNFSM6AAAAABE64O4TKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBXGY2TIMRXGM . You are receiving this because you are subscribed to this thread.Message ID: @.***>