this post was submitted on 24 Aug 2023
38 points (95.2% liked)

Linux

47121 readers
1556 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS
 

cross-posted from: https://lemmy.world/post/3754933

While experimenting with ProtonVPN's Wireguard configs, I realized that my real IPv6 address was leaking while IPv4 was correctly going through the tunnel. How do I prevent this from happening?

I've already tried adding ::/0 to the AllowedIPs option and IPv6 is listed as disabled in the NetworkManager profile.

all 28 comments
sorted by: hot top controversial new old
[–] 30021190@lemmy.cloud.aboutcher.co.uk 18 points 1 year ago (4 children)

The bad practise would be to entirely disable IPv6. #ShittySysAdmin

[–] empireOfLove@lemmy.one 13 points 1 year ago* (last edited 1 year ago)

Broke: disabling ipv6 because it's causing security holes with software not originally built for it

Woke: disabling ipv6 because hex ip strings are too hard to type

[–] 3laws@lemmy.world 2 points 1 year ago* (last edited 1 year ago)

The whole Silicon Valley, governments and economic infrastructure of the world hang by a thread made of bootleg shortcuts.

[–] dotdotdot@kerala.party 0 points 1 year ago

I do the same, but would like to know the correct way to hide ipv6

[–] Engywuck@lemm.ee -2 points 1 year ago* (last edited 1 year ago)

IPv6 is broken by design /s.

[–] wgs@lemmy.sdf.org 13 points 1 year ago (1 children)

IPv4 and IPv6 are two different network stacks. Your IPv4 stack is hidden behind wireguard, but not the IPv6 one.

The correct way to fix your issue is to setup a second witeguard tunnel for IPv6, and route IPv6 traffic through it.

[–] notabot@lemm.ee 0 points 1 year ago

If you disable IPv6 at the kernel level there's no extra latency as nothing even tries to connect to an IPv6 address. It's a shame to have to do it, but does fix the issue.

[–] dr_robot@kbin.social 5 points 1 year ago (1 children)

Wireguard easily supports dual stack configuration on a single interface, but the VPN server must also have IPv6 enabled. I use AirVPN and I get both IPv6 and IPv4 with a single wireguard tunnel. In addition to the ::/0 route you also need a static IPv6 address for the wireguard interface. This address must be provided to you by ProtonVPN.

If that's not possible, the only solution is to entirely disable IPv6.

[–] Syrup@lemmy.world -1 points 1 year ago

Yes, agree with you, especially your last comment: disable entirely IPv6

[–] nothacking@discuss.tchncs.de 3 points 1 year ago

The true enterprise solution is to disable IPv6, if you disable IPv4 you might be surprised to see how many sites and services, even those run by large companies require IPv4.

[–] Dumbkid@lemmy.dbzer0.com 3 points 1 year ago (2 children)

My ISP doesn't even support IPv6

[–] Asymptote@lemmy.dbzer0.com 1 points 1 year ago

My country doesn't really support IPv6.

[–] frebib@social.nerdhouse.io 1 points 1 year ago

Time to get a better ISP

[–] sgued@pouet.chapril.org 3 points 1 year ago
[–] igorette@lemmy.ml 1 points 1 year ago
[–] Presi300@lemmy.world 1 points 1 year ago

Just disable IPv6, if you don't wanna, try a configuration tool like PiVPN, which can setup wireguard automatically

[–] authed@lemmy.ml 0 points 1 year ago (1 children)

I just disable ipv6 on my router to simply my firewall and such.... Won't use it until necessary

[–] PlexSheep@feddit.de 0 points 1 year ago (1 children)

This is a real backwards approach to this.

[–] authed@lemmy.ml 0 points 1 year ago (1 children)

Why? I don't miss anything

[–] wgs@lemmy.sdf.org 0 points 1 year ago

You're missing a chance to help cool tech moving forward :)

[–] sounddrill@lemmy.antemeridiem.xyz 0 points 1 year ago (1 children)

I use a magisk module to disable ipv6

[–] zwekihoyy@lemmy.ml 1 points 1 year ago (1 children)

decreasing security for a... privacy(?) increase 🤔

[–] sounddrill@lemmy.antemeridiem.xyz 0 points 1 year ago (1 children)

We're not talking about privacy in that context here

We're trying to patch a leaking ipv6 which I gave my solution to.

Don't use it if you don't like it lmao

[–] zwekihoyy@lemmy.ml 1 points 1 year ago (1 children)

I suppose but my point was that rooting your device decreases security immensely via crippling the android security model.

That is true... but it's always about your threat model

Here, the ipv6 leaks are the priority