Skip to content

ocservice v1.2.0

Latest

Choose a tag to compare

@Ilyntiy Ilyntiy released this 29 Apr 19:59
5050ad2

Release 1.2.0

What's new:

System status block
The main menu now shows system-level metrics alongside ocserv stats:

  • CPU load average (1 / 5 / 15 min)
  • Memory usage (used / total)
  • Server TLS certificate expiry

SERVER_CERT is parsed automatically from ocserv.conf during install and added to sudoers with minimal permissions.

Full kick with session invalidation
On ocserv 1.4.2+, kicking a user now calls terminate user instead of disconnect user — the session cookie is invalidated and the client cannot reconnect automatically. Older versions fall back to the previous behavior with an upgrade notice.

ocnames refactor
write_config_per_user() is now a shared function in ocnames, sourced by gen-client, gen-login and user-center. Template duplication eliminated. Rebuild cache now creates missing config-per-user files for existing users automatically — existing files are never touched.

Performance
get_max_sessions() now preloads all config-per-user files in a single pass at startup instead of running grep + awk per user on every open.

Fixes and improvements

  • Color indicators for certificate expiry — in both the main menu and User Management Center
  • Fixed trailing slash on OCSERV_PREFIX in installer output

Upgrading from v1.1.x

git pull
sudo ./install.sh

The installer will patch ocservice.conf and sudoers automatically — no manual edits needed.