mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6388] wireguard: cannot connect to server (configuration issue) #3259
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3259
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @luckylinux on GitHub (Jun 19, 2024).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6388
Description
Describe the bug
Wireguard cannot connect to external Server. Apparently (looking at my OPNSense Router/Firewall=, there is (ALMOST) no attempt at even trying to connect to the Remote Server. I think there was like 1 connection attempt within a Day or so (and not sure if I was playing with some sysctls or what at that point).
I had setup some Wireguard stuff in my Homelab between 2 Debian Machines (without firejail & with apparmor disabled) and no problems there. Connection occurs immediately.
I don't blame it all on
firejail, it might be a combination withapparmor(missing) Rules.There is definitively some cryptic
apparmorEntry indmesgwithDENIEDstatus.Steps to Reproduce
Steps to reproduce the behavior
This is probably not only
firejailrelated, since thewgProgram appears to be resolving to/usr/bin/wg, NOT/usr/local/bin/wg. I don't even know if there is a Wireguard Profile ...Expected behavior
What you expected to happen
Wireguard connecting successfully to Remote Server.
Actual behavior
What actually happened
Wireguard failing / not even trying to connect to Remote Server.
Behavior without a profile
What changed calling
LC_ALL=C firejail --noprofile /path/to/programin aterminal?
Probably not relevant (see above).
Additional context
Any other detail that may help to understand/debug the problem
Output of
sysctl -aattached.Environment
firejail --version):firejail version 0.9.72git rev-parse HEAD): N/AChecklist
/usr/bin/vlc) "fixes" it).https://github.com/netblue30/firejail/issues/1139)browser-allow-drm yes/browser-disable-u2f noinfirejail.configto allow DRM/U2F in browsers.--profile=PROFILENAMEto set the right profile. (Only relevant for AppImages)Log
Output of
LC_ALL=C firejail /path/to/programOutput of
LC_ALL=C firejail --debug /path/to/program@luckylinux commented on GitHub (Jun 19, 2024):
sysctl.txt
@kmk3 commented on GitHub (Jun 26, 2024):
This looks like a potential duplicate of #6389.
Does the problem still happen after running
sudo firecfg --cleanandrebooting?
There isn't.
What is the output of the following commands:
@luckylinux commented on GitHub (Jun 27, 2024):
@kmk3 commented on GitHub (Jul 4, 2024):
So wireguard does not have a profile and is not using any symlinks either.
This question still remains.
If you can demonstrate that the issue is indeed caused by firejail, feel free
to add a comment.
Closing as a likely duplicate of #6389.
@luckylinux commented on GitHub (Jul 4, 2024):
@kmk3: Sorry for the Trouble 😞.
Actually this specific Issue one was neither caused by
firejailneither by System Hardening.I needed to add this to the end of
/etc/wireguard/wg0.confon both Server and Client at the End of the[Peer]Section:Then it works like a Charm 👍.