OpenVPN/openvpn3-linux
9
20
Fork
You've already forked openvpn3-linux
9

Support for OpenSuse Tumbleweed #71

Open
opened 2025年08月29日 00:28:36 +02:00 by dazo · 18 comments
Owner
Copy link

Issue is migrated from GitHub


I couldn't find any release targeted for OpenSuse and I couldn't build it from source.

Related issue #33


Author (GitHub user): @ayZagen
Created: 2024年06月07日T09:26:59Z - Updated: 2025年08月28日T19:56:33Z
GitHub issue: https://github.com/OpenVPN/openvpn3-linux/issues/264

COMMENTS

2024年06月09日T17:26:33Z - @dsommers

(seems my comment here got lost ... so re-writing it)

OpenSUSE and SUSE distributions is currently not on our list of officially supported distributions in the project. The reason is that there has been very few requests for it and we don't have too much resources to available to do proper QA on even more distributions. The biggest demands has been in the Debian, Fedora, RHEL/CentOS and Ubuntu scopes. Since CentOS is no longer what it used to be, we are moving towards CentOS Stream - as it's close enough to Fedora/RHEL.

That said ... if there are OpenSUSE or SUSE package maintainers willing to look into packaging OpenVPN 3 Linux for that distribution, I will happily support and help them get that task done. But I, unfortunately, do not have the capacity to bring in that distro myself at the moment.


2025年02月16日T08:54:26Z - @sajonCC

Hi,

I will be very happy to see a package for OpenSUSES as well. However, with instruction given on this git, you can easily build it from source.

@ayZagen if you need help with building openvpn from source. Let me know. I can try to help you with it.


2025年05月09日T18:41:05Z - @jtourlamain

Some people created a build of this repo on the build service of OpenSuse (https://build.opensuse.org/search?search_text=openvpn3). The problem is that they work as smooth as on Fedora. The one from stacheldrahtje doesn't allow you to authorize (I think it has something to do with SELinux permission). The build from polyconvex allows you to authorize, but the split tunnel doesn't seem to work.


2025年05月12日T13:09:32Z - @dsommers

For split tunnel to work, it is required that you use systemd-resolved ... please check the output of openvpn3-admin init-config to get an idea of what the default configuration might be set up to use


2025年05月16日T21:51:22Z - @jtourlamain

Running sudo openvpn3-admin init-config gives:

- Detected settings will be saved to disk? No
* Checking for OpenVPN user and group accounts
 Found: openvpn user - uid 455
 Found: openvpn group - gid 454
* Checking OpenVPN 3 Linux state/configuration directory
 Using directory: /var/lib/openvpn3
 Directory found
* Logger Configuration
 Configuration file: /var/lib/openvpn3/log-service.json
 systemd-journald active state: active
 :: Result :: Will use systemd journald for logging
 !! Configuration UNCHANGED
* Network Configuration
 Configuration file: /var/lib/openvpn3/netcfg.json
 !! Could not connect to D-Bus
 Found accessible /etc/resolv.conf
 :: Result :: Will use /etc/resolv.conf
 !! Configuration UNCHANGED
* Ensuring SELinux file labels are correct
 - SELinux status: Enforcing mode

I ran the SELinux configs:

 # semodule -i /etc/openvpn3/selinux/openvpn3.pp
 # semanage boolean --m --on dbus_access_tuntap_device

It's also strange that I can import a config file like

openvpn3 config-import --config ~/myvpn.ovpn --name myvpn --persistent

but once restarted the openvpn3 configs-list is empty (on fedora the config is persisted)


2025年05月18日T19:41:55Z - @dsommers

* Network Configuration
 Configuration file: /var/lib/openvpn3/netcfg.json
 !! Could not connect to D-Bus

These lines indicates that it could not connect to the systemd-resolved service (aka org.freedesktop.resolve1).

Regarding SELinux - There are also 2 SELinux policies needed. I haven't looked at the openSUSE packaging, but all other distros uses /usr/share/selinux/packages as the destination for installation. There should be two policies here: openvpn3.pp.bz2 and openvpn3_service.pp.bz2 (both are compressed, semodule can handle these compressed policies out-of-the-box).

The first one just gives you an SELinux boolean you need to enable - dbus_access_tuntap_device (which you already did); this allows the D-Bus daemon/broker to pass file descriptors over D-Bus. The openvpn3-service-netcfg service is the process creating the tun/dco interfaces and configures them, and passes a file descriptor to the openvpn3-service-client so it can pass network traffic to the tun device or handle the data channel encryption keys for the DCO interfaces.

The second policy handles the process context transition and grants the openvpn3-service-netcfg and openvpn3-service-client the needed permissions to operate properly. In practice this policy confines these two processes into separate process contexts.

In regards to the openvpn3 config-import not working as expected is odd. Again, you can try to start this service manually and see if it behaves as expected ...

 # /usr/libexec/openvpn3-linux/openvpn3-service-configmgr --log-level 6 --log-file stdout: --idle-exit 0 --state-dir /var/lib/openvpn3/configs

Also, what's the output of openvpn3-admin version --services?


2025年05月21日T14:19:02Z - @wfrisch

gdbuspp, the only openvpn3-linux dependency not yet packaged for openSUSE, is now on its way to our main repository.
https://build.opensuse.org/requests/1279060

As soon as the remaining bugs have been ironed out, it shouldn't be a problem to get openvpn3-linux itself into openSUSE Tumbleweed as well.

Thanks for all your efforts so far.

*Issue is migrated from GitHub* ------ I couldn't find any release targeted for OpenSuse and I couldn't build it from source. Related issue [#33](https://github.com/OpenVPN/openvpn3-linux/issues/33) ------ Author (GitHub user): **[@ayZagen](https://github.com/ayZagen)** Created: **2024年06月07日T09:26:59Z** - Updated: **2025年08月28日T19:56:33Z** GitHub issue: https://github.com/OpenVPN/openvpn3-linux/issues/264 ## COMMENTS > **[2024年06月09日T17:26:33Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2156708253) - [@dsommers](https://github.com/dsommers)** > > (seems my comment here got lost ... so re-writing it) > > OpenSUSE and SUSE distributions is currently not on our list of officially supported distributions in the project. The reason is that there has been very few requests for it and we don't have too much resources to available to do proper QA on even more distributions. The biggest demands has been in the Debian, Fedora, RHEL/CentOS and Ubuntu scopes. Since CentOS is no longer what it used to be, we are moving towards CentOS Stream - as it's close enough to Fedora/RHEL. > > That said ... if there are OpenSUSE or SUSE package maintainers willing to look into packaging OpenVPN 3 Linux for that distribution, I will happily support and help them get that task done. But I, unfortunately, do not have the capacity to bring in that distro myself at the moment. ----- > **[2025年02月16日T08:54:26Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2661327896) - [@sajonCC](https://github.com/sajonCC)** > > Hi, > > I will be very happy to see a package for OpenSUSES as well. However, with instruction given on this git, you can easily build it from source. > > @ayZagen if you need help with building openvpn from source. Let me know. I can try to help you with it. ----- > **[2025年05月09日T18:41:05Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2867592581) - [@jtourlamain](https://github.com/jtourlamain)** > > Some people created a build of this repo on the build service of OpenSuse (https://build.opensuse.org/search?search_text=openvpn3). The problem is that they work as smooth as on Fedora. The one from stacheldrahtje doesn't allow you to authorize (I think it has something to do with SELinux permission). The build from polyconvex allows you to authorize, but the split tunnel doesn't seem to work. ----- > **[2025年05月12日T13:09:32Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2872514456) - [@dsommers](https://github.com/dsommers)** > > For split tunnel to work, it is required that you use `systemd-resolved` ... please check the output of `openvpn3-admin init-config` to get an idea of what the default configuration might be set up to use ----- > **[2025年05月16日T21:51:22Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2887736181) - [@jtourlamain](https://github.com/jtourlamain)** > > Running `sudo openvpn3-admin init-config` gives: > > ``` > - Detected settings will be saved to disk? No > > * Checking for OpenVPN user and group accounts > Found: openvpn user - uid 455 > Found: openvpn group - gid 454 > > * Checking OpenVPN 3 Linux state/configuration directory > Using directory: /var/lib/openvpn3 > Directory found > > * Logger Configuration > Configuration file: /var/lib/openvpn3/log-service.json > systemd-journald active state: active > :: Result :: Will use systemd journald for logging > !! Configuration UNCHANGED > > * Network Configuration > Configuration file: /var/lib/openvpn3/netcfg.json > !! Could not connect to D-Bus > Found accessible /etc/resolv.conf > :: Result :: Will use /etc/resolv.conf > !! Configuration UNCHANGED > > * Ensuring SELinux file labels are correct > - SELinux status: Enforcing mode > ``` > > I ran the SELinux configs: > > ``` > # semodule -i /etc/openvpn3/selinux/openvpn3.pp > # semanage boolean --m --on dbus_access_tuntap_device > ``` > > It's also strange that I can import a config file like > > ``` > openvpn3 config-import --config ~/myvpn.ovpn --name myvpn --persistent > ``` > but once restarted the openvpn3 configs-list is empty (on fedora the config is persisted) ----- > **[2025年05月18日T19:41:55Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2889173211) - [@dsommers](https://github.com/dsommers)** > > ``` > * Network Configuration > Configuration file: /var/lib/openvpn3/netcfg.json > !! Could not connect to D-Bus > ``` > These lines indicates that it could not connect to the `systemd-resolved` service (aka `org.freedesktop.resolve1`). > > Regarding SELinux - There are also 2 SELinux policies needed. I haven't looked at the openSUSE packaging, but all other distros uses `/usr/share/selinux/packages` as the destination for installation. There should be two policies here: `openvpn3.pp.bz2` and `openvpn3_service.pp.bz2` (both are compressed, `semodule` can handle these compressed policies out-of-the-box). > > The first one just gives you an SELinux boolean you need to enable - `dbus_access_tuntap_device` (which you already did); this allows the D-Bus daemon/broker to pass file descriptors over D-Bus. The `openvpn3-service-netcfg` service is the process creating the tun/dco interfaces and configures them, and passes a file descriptor to the `openvpn3-service-client` so it can pass network traffic to the `tun` device or handle the data channel encryption keys for the DCO interfaces. > > The second policy handles the process context transition and grants the `openvpn3-service-netcfg` and `openvpn3-service-client` the needed permissions to operate properly. In practice this policy confines these two processes into separate process contexts. > > > In regards to the `openvpn3 config-import` not working as expected is odd. Again, you can try to start this service manually and see if it behaves as expected ... > > # /usr/libexec/openvpn3-linux/openvpn3-service-configmgr --log-level 6 --log-file stdout: --idle-exit 0 --state-dir /var/lib/openvpn3/configs > > Also, what's the output of `openvpn3-admin version --services`? ----- > **[2025年05月21日T14:19:02Z](https://github.com/OpenVPN/openvpn3-linux/issues/264#issuecomment-2898146298) - [@wfrisch](https://github.com/wfrisch)** > > `gdbuspp`, the only openvpn3-linux dependency not yet packaged for openSUSE, is now on its way to our main repository. > https://build.opensuse.org/requests/1279060 > > As soon as the remaining bugs have been ironed out, it shouldn't be a problem to get `openvpn3-linux` itself into openSUSE Tumbleweed as well. > > Thanks for all your efforts so far.
Author
Owner
Copy link
There are now packages built, but completely untested for openSUSE ... https://build.opensuse.org/package/show/isv:OpenVPN:Stable/openvpn3-linux https://build.opensuse.org/package/show/isv:OpenVPN:Stable/gdbuspp

Unfortunately that package cannot be installed because of its dbus dependency. It expects 'dbus' whereas in openSUSE it's 'dbus-1'.

sudo zypper in openvpn3
Loading repository data...
Reading installed packages...
Resolving package dependencies...

Problem: 1: nothing provides 'dbus' needed by the to be installed openvpn3-27-9.1.x86_64
Solution 1: do not install openvpn3-27-9.1.x86_64
Solution 2: break openvpn3-27-9.1.x86_64 by ignoring some of its dependencies

If installation is enforced with option 2, it doesn't work:

Mar 24 07:36:41 lightsong systemd[1]: Started dbus-:1.2-net.openvpn.v3.backends@1.service.
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22039]: OpenVPN3/Linux v27 (openvpn3-service-backendstart)
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22039]: OpenVPN core v3.11.6 linux x86_64 64-bit
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22039]: Copyright (C) 2012- OpenVPN Inc. All rights reserved.
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22046]: Re-initiated process from pid 22046 to backend process pid 22047
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22047]: OpenVPN3/Linux v27 (openvpn3-service-client)
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22047]: OpenVPN core 3.11.6 linux x86_64 64-bit
Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22047]: Copyright (C) 2012- OpenVPN Inc. All rights reserved.
Mar 24 07:36:41 lightsong systemd[1]: Starting Hostname Service...
Mar 24 07:36:41 lightsong systemd[1]: Started Hostname Service.
Mar 24 07:36:57 lightsong openvpn3-service-log[19243]: {tag:6616519286352099422} Starting connection
Mar 24 07:36:57 lightsong openvpn3-service-log[19243]: {tag:4878609358478858812} Cleaning up resources for PID 22047.
Mar 24 07:36:58 lightsong openvpn3-service-backendstart[22047]: ** ERROR ** Failed closing down: [Proxy::Client('net.openvpn.v3.log', '/net/openvpn/v3/log', 'net.openvpn.v3.log', 'Detach')] DBus::Connection is not valid** ERROR ** An unrecoverable D-Bus error occurred
Mar 24 07:36:58 lightsong openvpn3-service-backendstart[22047]: openvpn3-service-client lost the 'net.openvpn.v3.backends.be22047' registration on the D-Bus
Mar 24 07:36:58 lightsong openvpn3-service-backendstart[22047]: [DBus::Connection] Connection flush failed The connection is closed
Mar 24 07:36:58 lightsong openvpn3-service-log[19243]: {tag:11704837459724119569} Backend VPN did not respond: The name is not activatable - /net/openvpn/v3/sessions/335ba926sdae1s4fc6sabbbsfc7e7dc2c7ce
Mar 24 07:37:11 lightsong systemd[1]: systemd-hostnamed.service: Deactivated successfully.

Unfortunately that package cannot be installed because of its dbus dependency. It expects 'dbus' whereas in openSUSE it's 'dbus-1'. > sudo zypper in openvpn3 > Loading repository data... > Reading installed packages... > Resolving package dependencies... > > Problem: 1: nothing provides 'dbus' needed by the to be installed openvpn3-27-9.1.x86_64 > Solution 1: do not install openvpn3-27-9.1.x86_64 > Solution 2: break openvpn3-27-9.1.x86_64 by ignoring some of its dependencies If installation is enforced with option 2, it doesn't work: > Mar 24 07:36:41 lightsong systemd[1]: Started dbus-:1.2-net.openvpn.v3.backends@1.service. > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22039]: OpenVPN3/Linux v27 (openvpn3-service-backendstart) > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22039]: OpenVPN core v3.11.6 linux x86_64 64-bit > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22039]: Copyright (C) 2012- OpenVPN Inc. All rights reserved. > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22046]: Re-initiated process from pid 22046 to backend process pid 22047 > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22047]: OpenVPN3/Linux v27 (openvpn3-service-client) > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22047]: OpenVPN core 3.11.6 linux x86_64 64-bit > Mar 24 07:36:41 lightsong openvpn3-service-backendstart[22047]: Copyright (C) 2012- OpenVPN Inc. All rights reserved. > Mar 24 07:36:41 lightsong systemd[1]: Starting Hostname Service... > Mar 24 07:36:41 lightsong systemd[1]: Started Hostname Service. > Mar 24 07:36:57 lightsong openvpn3-service-log[19243]: {tag:6616519286352099422} Starting connection > Mar 24 07:36:57 lightsong openvpn3-service-log[19243]: {tag:4878609358478858812} Cleaning up resources for PID 22047. > Mar 24 07:36:58 lightsong openvpn3-service-backendstart[22047]: ** ERROR ** Failed closing down: [Proxy::Client('net.openvpn.v3.log', '/net/openvpn/v3/log', 'net.openvpn.v3.log', 'Detach')] DBus::Connection is not valid** ERROR ** An unrecoverable D-Bus error occurred > Mar 24 07:36:58 lightsong openvpn3-service-backendstart[22047]: openvpn3-service-client lost the 'net.openvpn.v3.backends.be22047' registration on the D-Bus > Mar 24 07:36:58 lightsong openvpn3-service-backendstart[22047]: [DBus::Connection] Connection flush failed The connection is closed > Mar 24 07:36:58 lightsong openvpn3-service-log[19243]: {tag:11704837459724119569} Backend VPN did not respond: The name is not activatable - /net/openvpn/v3/sessions/335ba926sdae1s4fc6sabbbsfc7e7dc2c7ce > Mar 24 07:37:11 lightsong systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Author
Owner
Copy link

Thanks a lot for testing. We can probably fix the dependency issue in the .spec file in OBS independently of what we do in Fedora Copr.

The issues you're seeing when starting a connection sounds like either some D-Bus policy or something similar we saw with SELinux in the earlier days - but openSUSE uses AppArmour, doesn't it?

Try running openvpn3-admin version --services and see which services starts up and reports back. And also check if you have some config files in /var/lib/openvpn3, especially log-service.json and netcfg.json. If there is an openvpn3-init-config.log file there, have a look at that too. If there are no config files there, run openvpn3-admin init-config --write-configs.

Thanks a lot for testing. We can probably fix the dependency issue in the `.spec` file in OBS independently of what we do in Fedora Copr. The issues you're seeing when starting a connection sounds like either some D-Bus policy or something similar we saw with SELinux in the earlier days - but openSUSE uses AppArmour, doesn't it? Try running `openvpn3-admin version --services` and see which services starts up and reports back. And also check if you have some config files in `/var/lib/openvpn3`, especially `log-service.json` and `netcfg.json`. If there is an `openvpn3-init-config.log` file there, have a look at that too. If there are no config files there, run `openvpn3-admin init-config --write-configs`.

I really appreciate that you replied! I'm sorry, but I don't know much (yet) about Linux internals. I'm just trying to switch from Windows to Linux. I tested the openvpn3 client on Fedora before and it worked fine there, but I'd like to use openSUSE and hit a wall. I need OpenVPN for work and it has to work with Duo MFA. My experience has been that NetworkManager doesn't ask for the challenge token, while the classic CLI OpenVPN client establishes connection but doesn't set up DNS, I really need v3 which does all. :)

I am technical though so I can troubleshoot given instructions.

I think openSUSE uses SELinux since last year (2025). I use the Tumbleweed rolling distro and just installed it last week so it's fresh.

I'm testing in a VM right now, so the below information will be from that VM. Here's what I got:

sudo openvpn3-admin version --services
OpenVPN 3 D-Bus services:

  • Client backend starter service
    (unknown binary): (inaccessible)

  • Configuration Service
    openvpn3-service-configmgr: v27

  • Log Service
    openvpn3-service-log: v27

  • Network Configuration Service
    openvpn3-service-netcfg: v27

  • Session Manager Service
    (unknown binary): (inaccessible)

** Some errors occurred retrieving version information.
** Ensure you run this command as the root or openvpn user.

Contents of the openvpn3 directory:

sudo ls /var/lib/openvpn3
configs log-service.json netcfg.json openvpn3-init-config.log

Hope that helps. Let me know what else I can do.

I really appreciate that you replied! I'm sorry, but I don't know much (yet) about Linux internals. I'm just trying to switch from Windows to Linux. I tested the openvpn3 client on Fedora before and it worked fine there, but I'd like to use openSUSE and hit a wall. I need OpenVPN for work and it has to work with Duo MFA. My experience has been that NetworkManager doesn't ask for the challenge token, while the classic CLI OpenVPN client establishes connection but doesn't set up DNS, I really need v3 which does all. :) I am technical though so I can troubleshoot given instructions. I think openSUSE uses SELinux since last year (2025). I use the Tumbleweed rolling distro and just installed it last week so it's fresh. I'm testing in a VM right now, so the below information will be from that VM. Here's what I got: > sudo openvpn3-admin version --services > OpenVPN 3 D-Bus services: > > - Client backend starter service > (unknown binary): (inaccessible) > > - Configuration Service > openvpn3-service-configmgr: v27 > > - Log Service > openvpn3-service-log: v27 > > - Network Configuration Service > openvpn3-service-netcfg: v27 > > - Session Manager Service > (unknown binary): (inaccessible) > > ** Some errors occurred retrieving version information. > ** Ensure you run this command as the root or openvpn user. Contents of the openvpn3 directory: > > sudo ls /var/lib/openvpn3 > configs log-service.json netcfg.json openvpn3-init-config.log Hope that helps. Let me know what else I can do.
Author
Owner
Copy link

I appreciate everyone willing to test, so thank you very much!

Okay, so yes - this uses SELinux. Okay, that's normally a good thing. It is a bit odd that the openvpn3-service-backend and openvpn3-service-sesisonmgr services does not start. That's what the (inaccessible) lines indicates.

Can you try to run this command as root?

# /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-level 6 --log-file stdout:

Also, try to put SELinux into permissive mode and run the openvpn3-admin version --services and the openvpn3-service-sessionmgr checks once more.

# getenforce
# setenforce 0
# getenforce

I see in the openSUSE Tumbleweed build log that building of the SELinux policy has been disabled. That needs to be fixed. I probably need get hands-on on an openSUSE host to check that it builds fine.

I appreciate everyone willing to test, so thank you very much! Okay, so yes - this uses SELinux. Okay, that's normally a good thing. It is a bit odd that the `openvpn3-service-backend` and `openvpn3-service-sesisonmgr` services does not start. That's what the `(inaccessible)` lines indicates. Can you try to run this command as root? ``` # /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-level 6 --log-file stdout: ``` Also, try to put SELinux into permissive mode and run the `openvpn3-admin version --services` and the `openvpn3-service-sessionmgr` checks once more. ``` # getenforce # setenforce 0 # getenforce ``` I see in the openSUSE Tumbleweed build log that building of the SELinux policy has been disabled. That needs to be fixed. I probably need get hands-on on an openSUSE host to check that it builds fine.

sudo /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-level 6 --log-file stdout
sudo: /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr: command not found

So maybe that's why it's not starting? ;)

> sudo /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-level 6 --log-file stdout > sudo: /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr: command not found So maybe that's why it's not starting? ;)
Author
Owner
Copy link

Check if you have installed the openvpn3-client package

Check if you have installed the `openvpn3-client` package

Oh, I didn't have that. It resolved all issues! I can actually connect now, even Duo MFA works!

So the OpenVPN client actually builds correctly for openSUSE and the error about dbus is misleading. It CAN be ignored, but you need to have both openvpn3 AND openvpn3-client packages! I feel a bit dumb, but as I said I'm new to this and have never used OpenVPN under Linux, just OpenVPN Connect on Windows which is a GUI app. Thank you!

Another thing that was misleading is that when I launch the session, it exits to the terminal without either an error or a confirmation message, so it appeared like the process crashed.

pawel@localhost:~> openvpn3 session-start --config ProfileName
Using pre-loaded configuration profile 'ProfileName'
Session path: /net/openvpn/v3/sessions/c8af0ed8sfcc5s49bbsaab0s20dba8efa46d
Auth User name: pkrakowiak
Auth Password: 
Enter MFA code : push
pawel@localhost:~> 

If it said something at the end I think it would be beneficial for the regular users. :)

Oh, I didn't have that. It resolved all issues! I can actually connect now, even Duo MFA works! So the OpenVPN client actually builds correctly for openSUSE and the error about dbus is misleading. It CAN be ignored, but you need to have both `openvpn3` AND `openvpn3-client` packages! I feel a bit dumb, but as I said I'm new to this and have never used OpenVPN under Linux, just OpenVPN Connect on Windows which is a GUI app. Thank you! Another thing that was misleading is that when I launch the session, it exits to the terminal without either an error or a confirmation message, so it appeared like the process crashed. ``` pawel@localhost:~> openvpn3 session-start --config ProfileName Using pre-loaded configuration profile 'ProfileName' Session path: /net/openvpn/v3/sessions/c8af0ed8sfcc5s49bbsaab0s20dba8efa46d Auth User name: pkrakowiak Auth Password: Enter MFA code : push pawel@localhost:~> ``` If it said something at the end I think it would be beneficial for the regular users. :)
Author
Owner
Copy link

Check if you can get openvpn3-indicator running ... That gives you a GUI interface.

https://github.com/OpenVPN/openvpn3-indicator

Check if you can get openvpn3-indicator running ... That gives you a GUI interface. https://github.com/OpenVPN/openvpn3-indicator
Author
Owner
Copy link

Another thing that was misleading is that when I launch the session, it exists to the terminal without either an error or a confirmation message, so it appeared like the process crashed.

I've never tested cases where the client or session manager services are unavailable, but will look into that for the next release.

> Another thing that was misleading is that when I launch the session, it exists to the terminal without either an error or a confirmation message, so it appeared like the process crashed. I've never tested cases where the client or session manager services are unavailable, but will look into that for the next release.

I mean, it happens now, when it's working correctly. Looks like it's by design and it may be a "me" problem, because when I launch a command I expect some feedback from the program, but OpenVPN just exits as you can see on the console log which I pasted. Just basic UX if we can talk about that in the context of CLI.

Something like "The session was started successfully and is running in the background."

I mean, it happens now, when it's working correctly. Looks like it's by design and it may be a "me" problem, because when I launch a command I expect some feedback from the program, but OpenVPN just exits as you can see on the console log which I pasted. Just basic UX if we can talk about that in the context of CLI. Something like "The session was started successfully and is running in the background."
Author
Owner
Copy link

Well, the issue you hit made me bark up the wrong tree as well, so it should give a better user experience than what you got. 😉

Well, the issue you hit made me bark up the wrong tree as well, so it should give a better user experience than what you got. 😉

I'm so sorry but it's actually not working :( The Host system must have been connected to the VPN at the time I checked the web browser in the guest system (where I was trying to run openvpn3). I just tried starting a session on a fresh openSUSE install (not a VM) and it simply exits the CLI (like I showed above), I cannot access any company websites that are protected via the VPN. I don't get the push notification from Duo MFA and neither entering the token manually works.

pawel@lightsong:~/Downloads> openvpn3 session-start --config ProfileName
Using pre-loaded configuration profile 'ProfileName'
Session path: /net/openvpn/v3/sessions/7f50cacfsbba9s4023sb188sab16d94475e9
Auth User name: pkrakowiak
Auth Password:
Enter MFA code : push

pawel@lightsong:~/Downloads> openvpn3 session-start --config ProfileName
Using pre-loaded configuration profile 'ProfileName'
Session path: /net/openvpn/v3/sessions/f9373444s378fs41f3s9b16sba8661fc2b21
Auth User name: pkrakowiak
Auth Password:
Enter MFA code : 532110

I'm now getting the same 'DBus::Connection is not valid' error.

The services look fine:

pawel@lightsong:~/Downloads> sudo openvpn3-admin version --services
OpenVPN 3 D-Bus services:

  • Client backend starter service
    openvpn3-service-backendstart: v27

  • Configuration Service
    openvpn3-service-configmgr: v27

  • Log Service
    openvpn3-service-log: v27

  • Network Configuration Service
    openvpn3-service-netcfg: v27

  • Session Manager Service
    openvpn3-service-sessionmgr: v27

I'm so sorry but it's actually not working :( The Host system must have been connected to the VPN at the time I checked the web browser in the guest system (where I was trying to run openvpn3). I just tried starting a session on a fresh openSUSE install (not a VM) and it simply exits the CLI (like I showed above), I cannot access any company websites that are protected via the VPN. I don't get the push notification from Duo MFA and neither entering the token manually works. > pawel@lightsong:~/Downloads> openvpn3 session-start --config ProfileName > Using pre-loaded configuration profile 'ProfileName' > Session path: /net/openvpn/v3/sessions/7f50cacfsbba9s4023sb188sab16d94475e9 > Auth User name: pkrakowiak > Auth Password: > Enter MFA code : push > > pawel@lightsong:~/Downloads> openvpn3 session-start --config ProfileName > Using pre-loaded configuration profile 'ProfileName' > Session path: /net/openvpn/v3/sessions/f9373444s378fs41f3s9b16sba8661fc2b21 > Auth User name: pkrakowiak > Auth Password: > Enter MFA code : 532110 I'm now getting the same 'DBus::Connection is not valid' error. The services look fine: > pawel@lightsong:~/Downloads> sudo openvpn3-admin version --services > OpenVPN 3 D-Bus services: > > - Client backend starter service > openvpn3-service-backendstart: v27 > > - Configuration Service > openvpn3-service-configmgr: v27 > > - Log Service > openvpn3-service-log: v27 > > - Network Configuration Service > openvpn3-service-netcfg: v27 > > - Session Manager Service > openvpn3-service-sessionmgr: v27

pawel@lightsong:~/Downloads> sudo /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-level 6 --log-file stdout
[INFO] Dropping root group privileges to openvpn
[INFO] Dropping root user privileges to openvpn
OpenVPN3/Linux v27 (openvpn3-service-sessionmgr)
OpenVPN core v3.11.6 linux x86_64 64-bit
Copyright (C) 2012- OpenVPN Inc. All rights reserved.
** ERROR **[DBus::Service] openvpn3-service-sessions lost the 'net.openvpn.v3.sessions' registration on the D-Bus

> pawel@lightsong:~/Downloads> sudo /usr/libexec/openvpn3-linux/openvpn3-service-sessionmgr --log-level 6 --log-file stdout > [INFO] Dropping root group privileges to openvpn > [INFO] Dropping root user privileges to openvpn > OpenVPN3/Linux v27 (openvpn3-service-sessionmgr) > OpenVPN core v3.11.6 linux x86_64 64-bit > Copyright (C) 2012- OpenVPN Inc. All rights reserved. > ** ERROR **[DBus::Service] openvpn3-service-sessions lost the 'net.openvpn.v3.sessions' registration on the D-Bus

@pkrakowiak did you mange to resolve your problem with openvpn?

I'm trying to install openvpn on Opensuse leap 16. I'm using this repository https://download.opensuse.org/repositories/isv:/OpenVPN:/Stable/openSUSE_Leap_16.0/

It complain about dbus package missing during installation of openvpn3-client.

I run initial configuration for openvpn with command
openvpn3-admin init-config --write-configs

resulting in problem with dbus connection:

- Existing configurations will be preserved
* Checking for OpenVPN user and group accounts
 Found: openvpn user - uid 456
 Found: openvpn group - gid 456
* Checking OpenVPN 3 Linux state/configuration directory
 Using directory: "/var/lib/openvpn3"
 Directory found
 Configs sub-directory found
* Logger Configuration
 Configuration file: "/var/lib/openvpn3/log-service.json"
 systemd-journald active state: active
 :: Result :: Will use systemd journald for logging
 !! Will not overwrite existing configuration file
 !! Configuration UNCHANGED
* Network Configuration
 Configuration file: "/var/lib/openvpn3/netcfg.json"
 !! Could not connect to D-Bus
 Found accessible "/etc/resolv.conf"
 :: Result :: Will use /etc/resolv.conf
 !! Will not overwrite existing configuration file
 !! Configuration UNCHANGED
* Ensuring SELinux file labels are correct
 - SELinux status: Enforcing mode

When I'm trying to connect, I can see this in the journal

May 25 09:38:03 TEST openvpn3-service-backendstart[2580]: ** ERROR ** Failed closing down: [Proxy::Client('net.openvpn.v3.log', '/net/openvpn/v3/log', 'net.openvpn.v3.log', 'Detach')] DBus::Connection is not valid** ERROR ** An unrecoverable D-Bus error occurred
May 25 09:38:03 TEST openvpn3-service-backendstart[2580]: openvpn3-service-client lost the 'net.openvpn.v3.backends.be2580' registration on the D-Bus
May 25 09:38:03 TEST openvpn3-service-backendstart[2580]: [DBus::Connection] Connection flush failed The connection is closed
May 25 09:38:03 TEST openvpn3-service-log[2559]: {tag:7709231239634226768} Backend VPN did not respond: The name is not activatable - /net/openvpn/v3/sessions/9477d8aes5102s45dfsb8d1s4d7b3ad25242

Thank you in advance.

@pkrakowiak did you mange to resolve your problem with openvpn? I'm trying to install openvpn on Opensuse leap 16. I'm using this repository [https://download.opensuse.org/repositories/isv:/OpenVPN:/Stable/openSUSE_Leap_16.0/](https://download.opensuse.org/repositories/isv:/OpenVPN:/Stable/openSUSE_Leap_16.0/) It complain about dbus package missing during installation of openvpn3-client. I run initial configuration for openvpn with command ```openvpn3-admin init-config --write-configs``` resulting in problem with dbus connection: ```- Detected settings will be saved to disk? YES - Existing configurations will be preserved * Checking for OpenVPN user and group accounts Found: openvpn user - uid 456 Found: openvpn group - gid 456 * Checking OpenVPN 3 Linux state/configuration directory Using directory: "/var/lib/openvpn3" Directory found Configs sub-directory found * Logger Configuration Configuration file: "/var/lib/openvpn3/log-service.json" systemd-journald active state: active :: Result :: Will use systemd journald for logging !! Will not overwrite existing configuration file !! Configuration UNCHANGED * Network Configuration Configuration file: "/var/lib/openvpn3/netcfg.json" !! Could not connect to D-Bus Found accessible "/etc/resolv.conf" :: Result :: Will use /etc/resolv.conf !! Will not overwrite existing configuration file !! Configuration UNCHANGED * Ensuring SELinux file labels are correct - SELinux status: Enforcing mode ``` When I'm trying to connect, I can see this in the journal ```May 25 09:38:03 TEST openvpn3-service-log[2559]: {tag:3024809376226642877} Cleaning up resources for PID 2580. May 25 09:38:03 TEST openvpn3-service-backendstart[2580]: ** ERROR ** Failed closing down: [Proxy::Client('net.openvpn.v3.log', '/net/openvpn/v3/log', 'net.openvpn.v3.log', 'Detach')] DBus::Connection is not valid** ERROR ** An unrecoverable D-Bus error occurred May 25 09:38:03 TEST openvpn3-service-backendstart[2580]: openvpn3-service-client lost the 'net.openvpn.v3.backends.be2580' registration on the D-Bus May 25 09:38:03 TEST openvpn3-service-backendstart[2580]: [DBus::Connection] Connection flush failed The connection is closed May 25 09:38:03 TEST openvpn3-service-log[2559]: {tag:7709231239634226768} Backend VPN did not respond: The name is not activatable - /net/openvpn/v3/sessions/9477d8aes5102s45dfsb8d1s4d7b3ad25242 ``` Thank you in advance.
Author
Owner
Copy link

If you have a chance, very recently I've pushed out some test packages for the coming v27.1 release. This is the first release candidate.

https://build.opensuse.org/package/show/isv:OpenVPN:Beta/openvpn3-linux

openSUSE is not ready to be officially supported yet. So consider these builds experimental for now. This may change if we get more people testing it and report back how it works.

If you have a chance, very recently I've pushed out some test packages for the coming `v27.1` release. This is the first release candidate. https://build.opensuse.org/package/show/isv:OpenVPN:Beta/openvpn3-linux openSUSE is not ready to be officially supported yet. So consider these builds experimental for now. This may change if we get more people testing it and report back how it works.
dazo added this to the v27.1 milestone 2026年07月09日 20:51:19 +02:00

@dazo thanks for your work making it work.
When trying to install there is one problem
Problem: 1: nothing provides 'dbus' needed by the to be installed openvpn3-27.1-1.1.x86_64

But simple ignored this and vpn connection is working without any addition steps.

@dazo thanks for your work making it work. When trying to install there is one problem `Problem: 1: nothing provides 'dbus' needed by the to be installed openvpn3-27.1-1.1.x86_64` But simple ignored this and vpn connection is working without any addition steps.
Author
Owner
Copy link

Alright, that is hopefully a simple dependency fix ... I'll see what we can manage for the final release.

Alright, that is hopefully a simple dependency fix ... I'll see what we can manage for the final release.
Sign in to join this conversation.
No Branch/Tag specified
master
releaseprep/v27.1
dev/core-update-wip
dev/cb89-inactive-fix
releaseprep/v26
dev/gh-issue-14-asio-include-dir
v27.1
v27.1_rc1
v27
v26
v25
v24.1
v24
v23
v22_dev
v21
v20
v19_beta
v19_betaRC1
v18_beta
v18_betaRC3
v18_betaRC2
v18_betaRC
v17_betaUb2204
v17_beta
v16_beta
v15_beta
v14_beta
v13_beta
v12_beta
v11_beta
v10_beta
v9_beta
v8_beta
v7_beta
v6_beta
v5_beta
v4_beta
v3_beta
v2_beta
v1_beta
Labels
Clear labels
Access Server
Issue related to connecting/integration with OpenVPN Access Server
addon-aws
openvpn3-service-aws / net.openvpn.v3.aws, AWS-VPC integration add-on
addon-devposture
openvpn3-service-devposture / net.openvpn.v3.devposture, Device Posture Check (DPC) service
Awaiting external feedback
Feedback from an external party is needed to continue investigation
build
Issue is related to the build system (meson) or general compilation issues
cli-openvpn2
OpenVPN 2 compat wrapper utility
cli-openvpn3
openvpn3 command line
cli-openvpn3-admin
openvpn3-admin command line
cli-openvpn3-as
OpenVPN Access Server profile download utility
Cloud Connexa
Issue related to connecting to the Cloud Connexa service
common
Shared code across modules
Development done
A fix has been applied to git master
distro-support
OS distribution support
duplicate
This is a duplicate issue of another issue ticket.
Enhancement
Proposal for an enhancement
GitHub
Issue transfered from GitHub
Infrastructure
Issue related to the infrastructure for builds, package repositories, etc
Investigating
The issue is being investigated by a project developer
OpenVPN 3 Core
Issue needs to be resolved in the OpenVPN 3 Core Library
openvpn3-systemd
systemd integration (openvpn3-session@.service, helper tools)
python
The openvpn3 Python module
service-backendstart
openvpn3-service-backendstart / net.openvpn.v3.backends, VPN client service starter
service-client
openvpn3-service-client / net.openvpn.v3.backends.be$PID, Backend VPN client service
service-configmgr
openvpn3-service-configmgr / net.openvpn.v3.configuration, Configuration Profile Manager
service-log
openvpn3-service-log / net.openvpn.v3.log, Log collector service
service-netcfg
openvpn3-service-netcfg / net.openvpn.v3.netcfg, Network Configuration Manager
service-sessionmgr
openvpn3-service-sessionmgr / net.openvpn.v3.sessions, VPN sessions manager
Support
Issue is a support question, not a bug
tests programs
Issue is related to code in src/tests
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
4 participants
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
OpenVPN/openvpn3-linux#71
Reference in a new issue
OpenVPN/openvpn3-linux
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?