Bug 2293925 - wireguard+ipv6 traffic blocked by default firewall
Summary: wireguard+ipv6 traffic blocked by default firewall
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: firewalld
Version: 42
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Eric Garver
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-06-24 12:57 UTC by François Kooman
Modified: 2025-06-17 20:52 UTC (History)
5 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-06-17 20:52:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github firewalld firewalld issues 1203 0 None open IPv6_rpfilter=yes breaks WireGuard VPN over IPv6 2024-06-24 16:53:21 UTC

Description François Kooman 2024-06-24 12:57:27 UTC
When trying to connect to an IPv6 VPN server using WireGuard protocol, the VPN won't work with the default firewall (firewalld) on Fedora Workstation.

Removing firewalld (sudo dnf remove firewalld) resolves the issue.


Reproducible: Always

Steps to Reproduce:
1. Make sure you have native IPv6 on your Fedora workstation
2. Try to connect to a WireGuard server over IPv6
Actual Results:  
No connection over WireGuard

Expected Results:  
Connection over WireGuard

Comment 1 François Kooman 2024-06-24 12:59:39 UTC
By the way: connecting over IPv4 works just fine, e.g. by setting the IPv4 address of the server's hostname in `/etc/hosts` explicitly.

Comment 2 Eric Garver 2024-06-24 16:53:22 UTC
Workaround is to disable IPv6 rpfilter via firewalld.conf, i.e. set IPv6_rpfilter=no in /etc/firewalld/firewalld.conf.

See upstream bug: https://github.com/firewalld/firewalld/issues/1203

Comment 3 François Kooman 2024-06-24 16:59:31 UTC
Ah, thanks for the suggestion and upstream link! :)

Comment 4 François Kooman 2025-03-19 06:25:11 UTC
After some quick testing, it seems that setting it to "loose" which will be the default in Fedora >42 also works!

https://fedoraproject.org/wiki/Releases/42/ChangeSet#Firewalld_IPv6_rpfilter_default_to_loose_on_Workstations

(I don't have a GitHub account, so can't comment on the upstream firewalld issue tracker).

Comment 5 Aoife Moloney 2025-04-28 13:24:37 UTC
This message is a reminder that Fedora Linux 40 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 40 on 2025-05-13.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '40'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 40 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 6 Aoife Moloney 2025-05-20 09:27:08 UTC
Fedora Linux 40 entered end-of-life (EOL) status on 2025-05-13.

Fedora Linux 40 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.

Comment 7 Bojan Smojver 2025-06-17 20:46:11 UTC
This is still a problem on F42. Reopening.

Comment 8 Bojan Smojver 2025-06-17 20:52:38 UTC
Looks like my custom /etc/firewalld/firewalld.conf file retained IPv6_rpfilter=strict. Setting this to IPv6_rpfilter=loose indeed made Wireguard work.

Closing again. Sorry about the noise.

PS. This is all documented behaviour: https://fedoraproject.org/wiki/Changes/Firewalld_IPv6_rpfilter_Default_Loose#Detailed_Description


Note You need to log in before you can comment on or make changes to this bug.