9
6
Fork
You've already forked deploy
1

openvpn no longer works on Ubuntu 26.04 #20

Closed
opened 2026年03月30日 19:21:14 +02:00 by fkooman · 7 comments
Mar 30 17:19:52 ubunext.tuxed.net kernel: audit: type=1400 audit(1774891192.831:341): apparmor="DENIED" operation="mknod" class="file" profile="openvpn" name="/run/openvpn-server/default-1.sock" pid=3484 comm="openvpn" requested_mask="c" denied_mask="c" fsuid=0 ouid=0

We probably need to modify the apparmor profile in /etc/apparmor.d/openvpn (or similar) to give it access to this path, or figure out if there's another place where apparmor would allow this and use that as a socket location.

``` Mar 30 17:19:52 ubunext.tuxed.net kernel: audit: type=1400 audit(1774891192.831:341): apparmor="DENIED" operation="mknod" class="file" profile="openvpn" name="/run/openvpn-server/default-1.sock" pid=3484 comm="openvpn" requested_mask="c" denied_mask="c" fsuid=0 ouid=0 ``` We probably need to modify the apparmor profile in `/etc/apparmor.d/openvpn` (or similar) to give it access to this path, *or* figure out if there's another place where apparmor would allow this and use that as a socket location.
Author
Owner
Copy link

More issues:

Mar 30 17:29:04 ubunext.tuxed.net kernel: audit: type=1400 audit(1774891744.557:553): apparmor="DENIED" operation="mknod" class="file" profile="openvpn" name="/tmp/openvpn_cc_7927db93d788700777dc8e98bbf26956.tmp" pid=4922 comm="openvpn" requested_mask="c" denied_mask="c" fsuid=65534 ouid=65534
Mar 30 17:29:04 ubunext.tuxed.net kernel: audit: type=1400 audit(1774891744.558:554): apparmor="DENIED" operation="exec" class="file" profile="openvpn" name="/usr/libexec/vpn-server-node/client-disconnect" pid=5251 comm="openvpn" requested_mask="x" denied_mask="x" fsuid=65534 ouid=0
More issues: ``` Mar 30 17:29:04 ubunext.tuxed.net kernel: audit: type=1400 audit(1774891744.557:553): apparmor="DENIED" operation="mknod" class="file" profile="openvpn" name="/tmp/openvpn_cc_7927db93d788700777dc8e98bbf26956.tmp" pid=4922 comm="openvpn" requested_mask="c" denied_mask="c" fsuid=65534 ouid=65534 Mar 30 17:29:04 ubunext.tuxed.net kernel: audit: type=1400 audit(1774891744.558:554): apparmor="DENIED" operation="exec" class="file" profile="openvpn" name="/usr/libexec/vpn-server-node/client-disconnect" pid=5251 comm="openvpn" requested_mask="x" denied_mask="x" fsuid=65534 ouid=0 ```
Author
Owner
Copy link

The first issue can be fixed with this:

 # OpenVPN allow creating sockets
 file rw /run/openvpn-server/*.sock,
The first issue can be fixed with this: ``` # OpenVPN allow creating sockets file rw /run/openvpn-server/*.sock, ```
Author
Owner
Copy link

Fix for all of them:

 file rw /run/openvpn-server/*.sock,
 file ux /usr/libexec/vpn-server-node/client-{,dis}connect,
 file rw /tmp/openvpn_cc{,r}_*.tmp,
Fix for all of them: ``` file rw /run/openvpn-server/*.sock, file ux /usr/libexec/vpn-server-node/client-{,dis}connect, file rw /tmp/openvpn_cc{,r}_*.tmp, ```
Author
Owner
Copy link

So far my fix is to add this to /etc/apparmor.d/openvpn and then reload the "profile":

$ sudo apparmor_parser -r /etc/apparmor.d/openvpn
So far my fix is to add this to `/etc/apparmor.d/openvpn` and then reload the "profile": ``` $ sudo apparmor_parser -r /etc/apparmor.d/openvpn ```
Author
Owner
Copy link

It is possible to create local overrides in /etc/apparmor.d/local.

It is possible to create local overrides in `/etc/apparmor.d/local`.
Author
Owner
Copy link
See: https://gitlab.com/apparmor/apparmor/-/wikis/denial_quick_guide
Author
Owner
Copy link

Fixed for server.

Fixed for *server*.
Sign in to join this conversation.
No Branch/Tag specified
v3
wg-only
v4
v2
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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
eduVPN/deploy#20
Reference in a new issue
eduVPN/deploy
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?