Repository navigation
ocservice v1.3.0 — security release
Upgrading is recommended for everyone. Earlier versions installed sudo rules that let the admin account obtain a root shell without a password.
Security
- Removed passwordless
journalctl— its pager could spawn a root shell. Logs are now read throughsystemd-journalgroup membership. - Removed passwordless
ocpasswdwith arbitrary arguments — it could write any file as root. occtlis limited to the exact subcommands ocservice uses and always runs with-n(no pager).ocserv.confis edited withsudoeditand asks for your password.sudo nanoallowed a root shell.- sudo rules run as
(root)only, with absolute paths resolved at install time. - The installer refuses to grant sudo on binaries in a user-writable path, such as ocserv built into
~/ocserv. - The password file must live in a directory of its own. Earlier versions gave the admin ownership of the directory holding
ocserv.conf. - Client private keys are deleted after the
.p12export; leftover keys can be removed during the upgrade. .p12passwords no longer appear in the process list;.p12files are mode 600 in a 700 directory.- Server certificates issued by the same easy-rsa are no longer listed in User Management Center and cannot be revoked from it.
- The installer checks that
crlpoints to easy-rsa'spki/crl.pem— otherwise deleted users could still connect.
New
- CRL expiry in the status block, with a renewal hint.
- Deleting a user reloads ocserv, so the new CRL applies immediately, and kicks the user if online.
- Auth mode,
ocserv.confpath and ocserv prefix are detected automatically; distribution packages (/usr) are supported. - IPv6 client addresses in User Management Center.
sudo-rssupport (default since Ubuntu 25.10).
Fixes
- The installer silently exited when camouflage was disabled.
- Ctrl+C in the log view closed the whole menu.
- Scripts are executable in git — no
chmod +xneeded. - The install directory is created by the admin user, not root.
- The PKCS#12
-legacyflag is used only with OpenSSL 3+. ocservice.confis regenerated with every parameter documented; the previous file is kept as.bak.user-history.logmoved from the ocserv prefix to the install directory.
Upgrading from 1.2.x
git pull
sudo ./install.shThe installer stops with instructions if your layout is unsafe — see From 1.2.x. Log out and back in once for systemd-journal membership to apply.
Tested on Ubuntu 26.04 LTS (sudo-rs), ocserv 1.5.0, easy-rsa 3.2.7.