-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wireguard tunnel (via wg-quick) not starting any more since 38.20230414.3.0 #1487
Comments
For wireguard the issue could be in the kernel itself or in the wireguard tools package or somewhere else. Here's where bugs are filed for at least kernel and wireguard-tools:
(click on the Bug Reports link on those pages) I know @jdoss uses wireguard and he's also the wireguard tools maintainer in Fedora so he may have seen this problem before. |
Hi, I'm running the same issue. Since Fedora 38, wg-quick is confined in its own context In my case, I have the same thing while trying to run Can you check in In my case, I got I open a ticket on Fedora SE linux fedora-selinux/selinux-policy#1675 |
thanks @quentin9696 - my avc error message looks slightly different on my end
but it seems that also my issue is in the same context of SELinux and wireguard - meanwhile I'll follow the rollback instructions here https://docs.fedoraproject.org/en-US/fedora-coreos/manual-rollbacks/ and observe and support troubleshooting here |
A temporary workaround for this issue is to mark the source domains ( You can do that with:
To remove it:
|
Are we expecting wireguard to work again soonish in Fedora or should we leverage the relative quietness of the next few months to work on switching distros? |
I would like to stay on coreOS ... |
just wanted to inform that the workaround as proposed by @travier did not work in my case my config worked without any isues till CoreOS 37 (see above), since 38 I got this error message:
applying the proposed workaround
my current workaround is to disable the systemd service completely and start the tunnel manually from commandline:
maybe someone who is more familiar with SELinux has a better idea - and can help me to re-establish the tunnel without any manual interaction?? |
@chrismade The last comment in the Red Hat Bugzilla thread has instructions on how to help the devs debug this. You could try those instructions and see if they help the devs help you :) |
thanks @runiq - looks like you don't leave anybody behind ;-) As no fast solution came on my reported issue ... did some more research on this issue and it looks like "by design" I found a redhat/fedora blog which said I have to use nmcli also for wireguard - instead of the pure wireguard config which is done on any other Linux system - and that fixed the problem. shame on me I lost the note which article led me to the solution - which is the reason I never closed this issue because I wanted to link it for anyone else coming this route - IIRC it was this one: |
I personally use Wireguard on my servers via the NetworkManager setup and I can confirm it works. The wg-quick setup is however untested so adding a test for it would help us surface issues and avoid those regressions in the future. |
I have to check the Wireguard configuration on a server with NetworkManager, but for people willing to use it separately (as it was possible in Fedora <38), I put the selinux policies required to make it work with firewalld in that Bugzilla bug. In short:
Nevertheless, maybe configuration with NM is in fact less problematic 🤔 |
Show how to set up wireguard with networkManager on FCOS. The wg-quick approach had selinux issues for a while now. coreos/fedora-coreos-tracker#1487 (comment) prompted this update.
Show how to set up wireguard with networkManager on FCOS. The wg-quick approach had selinux issues for a while now. coreos/fedora-coreos-tracker#1487 (comment) prompted this update.
maybe I'm wrong here to report an issue to CoreOS - then pls help me to find the right place
luckily I'm user of CoreOS since years - and this is now the first time I have to report an issue
to repro the issue use any CoreOS per-38.20230414.3.0
e.g. tested without issue:
Fedora CoreOS 37.20230322.3.0
config a tunnel in wireguard in /etc/wireguard/wg0.conf
which connects to any other wireguard endpoint
this is my config for reference
check with
ip a
orwg show
orwg-quick up wg0
that the tunnel is up - as expectedthen wait for the Zincati auto-update or enforce it to happen now - after update and reboot the tunnel is down and cannot be (re)started. check journalctl or try manually to start the tunnel - an error message shows:
which indicates why the tunnel does not start any more - the issue resists after (any number of reboots)
nothing else was changed on the system - should be easy to reproduce
The text was updated successfully, but these errors were encountered: