Package Details: openvpn3 24-2

Git Clone URL: https://aur.archlinux.org/openvpn3.git (read-only, click to copy)
Package Base: openvpn3
Description: OpenVPN 3 Linux client
Upstream URL: https://codeberg.org/OpenVPN/openvpn3-linux
Keywords: openvpn vpn
Licenses: AGPL3
Submitter: bhyoo
Maintainer: bhyoo
Last Packager: bhyoo
Votes: 21
Popularity: 0.88
First Submitted: 2020-07-04 06:51 (UTC)
Last Updated: 2024-12-23 12:57 (UTC)

Pinned Comments

bhyoo commented on 2024-07-08 11:46 (UTC) (edited on 2024-07-08 11:47 (UTC) by bhyoo)

If you have trouble with building it, please run yay -Scc or yay -Sc.

FYI. I replaced gdbuspp-git with gdbuspp in the PKGBUILD dependency, and it seems that the build fails because the locally cached PKGBUILD is not updated.

Latest Comments

« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 Next › Last »

remanifest commented on 2023-03-15 13:48 (UTC)

I'm also having the same problem as sand7000. I can connect with openvpn2. This started about two days ago. Tried turning on log level 6, but it seems openvpn3-service-sessionmgr is dying very quickly, so I'm not getting anything useful. Any advice or tips on what to look for would be welcome.

sand7000 commented on 2023-03-14 23:55 (UTC) (edited on 2023-03-15 00:41 (UTC) by sand7000)

This suddenly stopped working today. I get the error:

ERROR Failed calling D-Bus method UserInputProvide: GDBus.Error:net.openvpn.v3.sessions.error: Failed communicating with VPN backend: Failed calling D-Bus method UserInputProvide: Message recipient disconnected from message bus without replying

found this page:

https://github.com/OpenVPN/openvpn3-linux/issues/63

but the advice they give already matches my net.openvpn.v3.netcfg.service

iacore commented on 2022-12-27 02:59 (UTC)

Hi @bhyoo, Buliding the package takes too long, so I added '-j' (make -j).

Make you can add that in your PKGBUILD too?

bhyoo commented on 2022-11-18 13:55 (UTC)

@Pierre Thanks updated it.

Pierre commented on 2022-11-13 07:31 (UTC)

@bhyoo: the package itself works. It just its meta data that are wrong.

arch=(any) does not mean that you can compile the PKGBUILD on any architecture. It does mean that the compiled package can be used on any architecture as-is. This is usually the case when a package only includes scripts or assets. The openvpn3 package however includes binaries compiled for a specific architecture. So the aarch64 version will not work on amd64.

bhyoo commented on 2022-11-09 14:24 (UTC)

@Pierre Do you have any problem using it on arm64? I used it on raspberry pi 4 several month ago and had no issue.

Pierre commented on 2022-10-25 18:49 (UTC)

The PKGBUILD lists arch as "any" which wrongly results in a package that is architecture independent. You should set it to e.g. arch=('i686' 'x86_64')

bhyoo commented on 2022-10-04 10:53 (UTC)

Hi @snake.scaly, Thanks for your work. Just patched!

snake.scaly commented on 2022-09-29 01:19 (UTC)

I overlooked one thing. You may also want to add another line to tmpfiles-openvpn3.conf to explicitly create the /var/lib/openvpn3 directory before creating /var/lib/openvpn3/configs. If you use my patch as is, the /var/lib/openvpn3/configs is created with 0755 permissions as expected, but the /var/lib/openvpn3 is 0750 for some reason, so not world-readable. In a Debian installation using the project's official APT source these directories are created with 0755 permissions.

tmpfiles-openvpn3.conf should look like this:

d /var/lib/openvpn3 0755 openvpn openvpn
d /var/lib/openvpn3/configs 0755 openvpn openvpn

snake.scaly commented on 2022-09-29 00:59 (UTC)

Hi @bhyoo, I had to modify this AUR to make it work on my machine. Maybe it was a user error but somehow the /var/lib/openvpn3 directory got created by the root user instead of openvpn so openvpn-service-configmgr and openvpn-service-sessionmgr couldn't start, ultimately crashing with DBusProxyAccessDeniedException.

To fix this I've added a configuration for /usr/lib/tmpfiles.d to create this directory with the correct ownership beforehand. Below is the full patch, hopefully it's not too much for a comment.

diff --git a/PKGBUILD b/PKGBUILD
index 1bf2a1a..a1f67f9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
 _pkgname=openvpn3-linux
 pkgname=openvpn3
 pkgver=18_beta
-pkgrel=4
+pkgrel=5
 pkgdesc='OpenVPN 3 Linux client'
 arch=('any')
 url="https://github.com/OpenVPN/$_pkgname"
@@ -23,12 +23,14 @@ makedepends=(
 source=(
   "git+https://github.com/OpenVPN/$_pkgname.git#tag=v${pkgver}"
   'openvpn3.rule'
-  'openvpn3.conf'
+  'sysusers-openvpn3.conf'
+  'tmpfiles-openvpn3.conf'
 )
 sha256sums=(
   'SKIP'
   'ec0b8e28ae77b4b074d3eb8a084626e6dcfc587a07bef5d53fe1c6e160c0fc01'
-  'a2361bb4060aa351c33bda56f40c470420da64b922d7795ab6ddb19fab16b9c5'
+  'f977f1bf263c513c6ae20e8ba780a15e0ac19326e21f5ec5d5acc0efb82048fd'
+  'ff6c83e9f2d01b0102b0928d75019056f124de4dfad9156af518db05f3111649'
 )

 build() {
@@ -51,5 +53,6 @@ package() {
   make DESTDIR="$pkgdir" install
   install -Dm644 "$srcdir/$_pkgname/src/shell/bash-completion/openvpn3" "$pkgdir/usr/share/bash-completion/completions/openvpn3"
   install -Dm644 "../${pkgname}.rule" "$pkgdir/etc/repkg/rules/system/${pkgname}.rule"
-  install -Dm644 "../$pkgname.conf"  "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -Dm644 "../sysusers-$pkgname.conf"  "$pkgdir/usr/lib/sysusers.d/$pkgname.conf"
+  install -Dm644 "../tmpfiles-$pkgname.conf"  "$pkgdir/usr/lib/tmpfiles.d/$pkgname.conf"
 }
diff --git a/openvpn3.conf b/openvpn3.conf
deleted file mode 100644
index 99c619f..0000000
--- a/openvpn3.conf
+++ /dev/null
@@ -1 +0,0 @@
-u openvpn - "OpenVPN"
\ No newline at end of file
diff --git a/sysusers-openvpn3.conf b/sysusers-openvpn3.conf
new file mode 100644
index 0000000..3196708
--- /dev/null
+++ b/sysusers-openvpn3.conf
@@ -0,0 +1,2 @@
+u openvpn - "OpenVPN"
+g openvpn - "OpenVPN"
diff --git a/tmpfiles-openvpn3.conf b/tmpfiles-openvpn3.conf
new file mode 100644
index 0000000..91ad337
--- /dev/null
+++ b/tmpfiles-openvpn3.conf
@@ -0,0 +1 @@
+d /var/lib/openvpn3/configs 0755 openvpn openvpn