[GH-ISSUE #699] Linux tries IPv6 and VPN not working #180

Closed
opened 2026-10-13 20:14:38 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @alexeyq2 on GitHub (Mar 20, 2024).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/699

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

Originally created by @alexeyq2 on GitHub (Mar 20, 2024). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/699 ### 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** ```python 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](https://man7.org/linux/man-pages/man5/gai.conf.5.html), [ULA](https://en.wikipedia.org/wiki/Unique_local_address) Fix: [0001-Fix-AWG-WG-proto-IPv6-address-to-be-ULA.patch.txt](https://github.com/amnezia-vpn/amnezia-client/files/14662876/0001-Fix-AWG-WG-proto-IPv6-address-to-be-ULA.patch.txt)
Author
Owner

@alexeyq2 commented on GitHub (Mar 20, 2024):

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

<!-- gh-comment-id:2009452350 --> @alexeyq2 commented on GitHub (Mar 20, 2024): Fixed client is [here](https://github.com/alexeyq2/amnezia-client/releases/tag/4.4.1.4.git-7b7d7565). No IPv6 leak has been introduced by this change.
Author
Owner

@Koochr commented on GitHub (Jul 4, 2024):

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?

<!-- gh-comment-id:2207654273 --> @Koochr commented on GitHub (Jul 4, 2024): 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?
Author
Owner

@rasolAAaa commented on GitHub (Jul 4, 2024):

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

در تاریخ پنجشنبه ۴ ژوئیهٔ ۲۰۲۴،‏ ۴:۵۹ 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: @.***>

<!-- gh-comment-id:2209269910 --> @rasolAAaa commented on GitHub (Jul 4, 2024): باسلام خسته نباشید من اشتراک رالغو مکنم با تشکر فراوان در تاریخ پنجشنبه ۴ ژوئیهٔ ۲۰۲۴،‏ ۴:۵۹ 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: ***@***.***> >
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#180
No description provided.