Their ssl certificate expired on 2023 07 06 - nothing I could do about it.
Search Criteria
Package Details: cyberghostvpn 1.4.1-13
Package Actions
Git Clone URL: | https://aur.archlinux.org/cyberghostvpn.git (read-only, click to copy) |
---|---|
Package Base: | cyberghostvpn |
Description: | CyberGhost VPN |
Upstream URL: | https://www.cyberghostvpn.com |
Licenses: | custom:cyberghostvpn |
Submitter: | safeith |
Maintainer: | moormaster |
Last Packager: | moormaster |
Votes: | 11 |
Popularity: | 0.42 |
First Submitted: | 2021-02-18 20:46 (UTC) |
Last Updated: | 2025-03-22 11:14 (UTC) |
Dependencies (8)
- bash (bash-devel-static-gitAUR, bash-devel-gitAUR, bash-gitAUR)
- curl (curl-gitAUR, curl-c-aresAUR)
- openvpn (openvpn-gitAUR, openvpn-mbedtlsAUR)
- resolvconf (systemd-chromiumos-resolvconfAUR, systemd-resolvconf-fmlAUR, systemd-resolvconf-selinuxAUR, systemd-resolvconf-gitAUR, openresolv, systemd-resolvconf)
- wireguard-tools
- ca-certificates (ca-certificates-utils) (make)
- openssl (openssl-gitAUR, openssl-staticAUR) (make)
- zip (zip-natspecAUR) (make)
Required by (1)
Sources (4)
moormaster commented on 2023-08-17 20:45 (UTC)
SR-G commented on 2023-08-17 19:11 (UTC) (edited on 2023-08-17 19:11 (UTC) by SR-G)
Since a few weeks, i'm back on my side in the previous situation - CYBERGHOSTVPN on my up-to-date arch system :
- does not work anymore through WIREGUARD (it is silently failing)
- is however still working through OPENVPN
(i've reinstalled it, but no difference - anyway everything seems to be there, the shell wrapper, the certificates, ...)
Any ideas what may be the issue ? Could it be some issues with the certificates ? How to "re-export" them from some CYBERGHOSTVPN servers (as it seems this is what has been done at some point) ?
moormaster commented on 2023-04-11 14:44 (UTC) (edited on 2023-04-11 14:44 (UTC) by moormaster)
For some reason the generated /etc/wireguard/cyberghost.conf contains a different DNS server than what is used for openvpn connections. Currently that DNS server 10.101.0.243 does not respond to any queries on my side.
After estabilishing a wireguard connection manually switching back to the DNS server 10.0.0.243 that also works with openvpn connections
$ resolvectl dns cyberghost 10.0.0.243
helps to make it work even with a wireguard connection.
SR-G commented on 2023-04-11 14:15 (UTC)
Ok, just saw the message you've written just before mine ;) So yes, it's working, good job / good investigations on your isde about having found that issue (indeed, seems quite cyberghostvpn related + it has been a change on their side compared to ubuntu 16 version)
SR-G commented on 2023-04-11 14:11 (UTC)
Well, i have the feeling that with the latest .6 package, the wireguard connection is now working
root@moon ~# cyberghostvpn --country-code FR --wireguard --connect
Prepare Wireguard connection ...
Select server ... marseille-s407-i10
Connecting ...
VPN connection established.
root@moon ~# cyberghostvpn --status
Wireguard connection found.
Was the folder change (that it seems you have applied in the wrapper script) enough to correct the issue (regarding the ../certs/ location of the certificates) ? Good catch, then.
moormaster commented on 2023-04-11 14:10 (UTC)
I did some analyzing. The problem is that cyberghostvpn estabilishes an https connection with verification of the correct ssl certificate. The certificate to check against is expected to be located at a relative path '../certs/wireguard/ca.crt'. But the package does not contain any ca.crt file for wireguard - only for openvpn.
This is why wireguard connections also fail under ubuntu.
As a workaround the ssl certificate can be extracted from one of cyberghosts vpn servers and be placed in a location where the cyberghostvpn binary expects it to find '../certs/wireguard/ca.crt'.
Both - the fact that the binary is using a relative path to look for the ca.crt and the fact that the certificate is missing in the current downloads of the cyberghostvpn - indicates that this is an issue that should be fixed on the side of cyberghostvpn.
Until then the aur package tries to create the missing ca.crt file on its own. Could you please test if a wireguard connection is now possible for you?
SR-G commented on 2023-04-10 10:18 (UTC)
Well, it was working with latest cyberghostvpn at some point in time (some weeks/months ago), so the problem seems clearly related to the other libraries at OS level under archlinux (not compatible anymore in some way with the cyberghost binaries). + the fact that Cyberghost does not officially support Arch Linux + the fact that they are not very active regarding their linux releases + the fact that their software is probably not 100% robust (that kind of issues should generate a clear error message (with some directions about the issue) and not a silent failing)
Otherwise i'm indeed willing to use wireguard and not openvpn (wireguard is way faster and is one of the reason i went for Cyberghost in the first place).
moormaster commented on 2023-04-10 10:10 (UTC)
I get the same behaviour when trying to connect under Ubuntu 20.04 with wireguard. May be this is not a packaging issue but rather a bug? Have you tried to open a ticket to address the wireguard issue at the cyberghostvpn support?
If you don't depend on using wireguard you could try to omit the --wireguard start parameter so that openvpn is used instead. This should work.
SR-G commented on 2023-04-10 09:14 (UTC)
Well, thanks for the repackaging, but in my case, that latest version is still not working :
11:10 root@moon ~# cyberghostvpn --country-code FR --wireguard --connect
Perform authentication ...
Prepare Wireguard connection ...
Select server ... paris-s421-i14
Connecting ...
11:10 root@moon ~# cyberghostvpn --status
No VPN connections found.
I still have to use the "ubuntu1604" 1.4.1 version, which seems to be the only one working on my (up-to-date) archlinux system.
moormaster commented on 2023-04-09 18:46 (UTC)
Cyberghostvpn updated the zip at the download location - the hash value is now updated in AUR accordingly
Pinned Comments
moormaster commented on 2024-08-09 22:32 (UTC) (edited on 2024-08-09 22:33 (UTC) by moormaster)
The problems connecting to openvpn are unrelated to the kernel version. They occur if one uses the updated default
/etc/sudoers
content.There has been an update recently: https://gitlab.archlinux.org/archlinux/packaging/packages/sudo/-/commit/4791df5c3deb6355e6a1fe0b40a13ef27ad060b0
that changes
to
Activating the
secure_path
setting will prevent cyberghostvpn from running the /usr/local/cyberghost/openvpn wrapper. This means the original/usr/bin/openvpn
wrapper gets called with the unsupported--ncp-disable
parameter again - and fails.To make cyberghostvpn work again with openvpn
a) either comment out the
Defaults secure_path=...
line in /etc/sudoers againb) or add
/usr/local/cyberghost
to the beginning of that line/etc/sudoers
c) or downgrade openvpn to <2.6 - that makes it support the
--ncp-disable
command line parameter again