ocserv

Security & Privacy

OpenConnect VPN server.

Latest 1.6.0 · by OpenConnectWebsiteRSS

Release activity

Release activity — 5 releases across 5 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Jul 19, 2026No releases on Jul 26, 2026No releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026
MondayNo releases on Jul 20, 2026No releases on Jul 27, 2026No releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 2026No releases on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026
TuesdayNo releases on Jul 21, 2026No releases on Jul 28, 2026No releases on Aug 4, 2026No releases on Aug 11, 2026No releases on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026
WednesdayNo releases on Jul 22, 2026No releases on Jul 29, 2026No releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 2026No releases on Nov 4, 2026
ThursdayNo releases on Jul 23, 2026No releases on Jul 30, 2026No releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026
FridayNo releases on Jul 24, 2026No releases on Jul 31, 2026No releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 20261 release on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026
SaturdayNo releases on Jul 25, 2026No releases on Aug 1, 2026No releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026

5 releases in the last year

Changelog

1.6.0

Latest
Added 4
  • Send the RADIUS session ID as Acct-Session-Id in the Access-Request
  • sec-mod sends a best-effort RADIUS Accounting-Stop for every open session when shutting down
  • IPv4 /31 networks (netmask 255.255.255.254) can be used for leases as point-to-point links (RFC 3021)
  • The oidc authentication method supports the OpenID Connect authorization code flow, selected with mode=browser, allowing openconnect client users to log in through a browser
Changed 10
  • A malformed per-user/group or default configuration file now causes the affected session to be rejected rather than silently ignored
  • A configured default-user-conf or default-group-conf file that cannot be opened now causes session rejection instead of being silently ignored
  • In certificate authentication the user is not prompted for group selection if the certificate provides a single group
  • On TLS 1.3 CSTP sessions, rekey-method = ssl now performs a transparent TLS 1.3 KeyUpdate server-side instead of silently falling back to a full tunnel rebuild on every rekey
  • Virtual host names may now be up to 253 characters
  • The RADIUS backend is standardized on radcli and compatibility with legacy RADIUS libraries has been removed
Fixed 2
  • Simplified RADIUS Acct-Session-Time calculation to fix inflated time reporting for sessions that reconnected with the same cookie
  • Virtual host names longer than 43 characters are no longer silently truncated, fixing a case where such a [vhost:NAME] never matched the client SNI and its clients were served by the default virtual host
Security 1
  • Hardened per-user/group configuration file lookup against path-traversal

From ocserv

  • Send the RADIUS session ID as Acct-Session-Id in the Access-Request (#751)
  • Hardened per-user/group configuration file lookup against path-traversal; a malformed per-user/group or default configuration file now causes the affected session to be rejected rather than silently ignored. A configured default-user-conf or default-group-conf file that cannot be opened also now causes session rejection (previously silently ignored).
  • In certificate authentication the user is not prompted for group selection if the certificate provides a single group (#692)
  • Simplified RADIUS Acct-Session-Time calculation to fix inflated time reporting for sessions that reconnected with the same cookie.
  • On TLS 1.3 CSTP sessions, rekey-method = ssl now performs a transparent TLS 1.3 KeyUpdate server-side instead of silently falling back to a full tunnel rebuild on every rekey (#745)
  • Virtual host names longer than 43 characters are no longer silently truncated; such a [vhost:NAME] previously never matched the clients SNI and its clients were served by the default virtual host. Names may now be up to 253 characters (#759)
  • sec-mod now sends a best-effort RADIUS Accounting-Stop for every open session when shutting down (#643)
  • Simplified the radius backend by standardizing in radcli and removing compatibility with legacy radius libraries.
  • IPv4 /31 networks (netmask 255.255.255.254) can now be used for leases as point-to-point links (RFC 3021); previously no address could be leased from them. The server takes the network address and the client the other one.
  • The server-side IPv6 tunnel address is now the network address of ipv6-network (previously the network address + 1). Firewall rules, DNS settings or scripts that reference the servers ::1 tunnel address must be updated. This makes /127 point-to-point networks (RFC 6164) lease the expected address to the client, and a client can no longer be assigned the servers address as part of the first subnet (#714)
  • The oidc authentication method supports the OpenID Connect authorization code flow, selected with mode=browser: openconnect client users log in through a browser. The default, mode=bearer, keeps validating a token the client already holds. OIDC support now requires GnuTLS 3.8.2 or later.
View originalPermalink
How 1.6.0 went

1.5.0

Added 3
  • Added syslog-facility option to log to a specified syslog facility
  • Added service sub-option to the auth = pam[...] directive to allow configurable PAM service names, enabling per-vhost PAM stacks
  • Added per-worker memory limit (RLIMIT_DATA) as defense-in-depth against memory-exhaustion attacks, controlled by the new limit-worker-memory option, enabled by default
Changed 6
  • ocserv-fw-nftables no longer depends at runtime on ipcalc/ipcalc-ng
  • AnyConnect BYE packets now distinguish disconnect reasons
  • Vhosts now inherit configuration options from the default vhost if they are not overridden
  • Improved PAM handling by raising the provided stack memory to the system default and better detecting overflow
  • Build against Nettle 4
  • The bundled llhttp was updated to 9.4.1
Fixed 10
  • Fixed worker hang when a client disappears silently
  • Fixed cached group-select values incorrectly suppressing the group list on reconnect
  • Fixed sudden disconnects after authentication for AnyConnect clients
  • tunnel-all-dns now works correctly when set in per-user/group configuration
  • Fixed radius Framed-IPv6-Prefix routes being silently dropped
  • Fixed HTTP request desynchronization by rejecting pipelined requests in the same TLS record instead of processing them out of order
Removed 1
  • Removed the cgroup configuration option (used for cgroups v1); administrators should use systemd resource controls instead
Security 4
  • Fixed unauthenticated heap buffer overflow in the unprivileged worker process via an oversized webvpncontext= cookie value
  • Fixed unsigned integer underflow in DTLS MTU negotiation where an out-of-range X-CSTP-Base-MTU or X-CSTP-MTU value could cause a buffer overflow in the unprivileged worker process, requiring an authenticated client
  • Limited HTTP header size to 16 KB to complement the existing 256 KB body limit
  • Removed unnecessary HTTP handlers for openconnect clients (/cert.pem, /cert.cer, /ca.pem, /ca.cer) to reduce attack surface
View originalRead the notes
How 1.5.0 went

1.4.2

Added 5
  • Added VIRTUAL HOSTS and CONFIGURATION sections to the ocserv(8) man page and documented options scope
  • Added group-separator option to the radius auth configuration, allowing the separator in OU= Class attributes to be set to semicolon (default) or comma
  • Added terminate user, terminate id, and terminate session commands to occtl that disconnect users and invalidate their session cookies to prevent automatic reconnection
  • Added nftables-based ocserv-fw, which requires ipcalc-ng/ipcalc
  • The no-udp option can now be used to disable DTLS for specific vhosts, previously only available in per-user or per-group config
Changed 8
  • Setting a global-only option inside a [vhost:] section is now a hard configuration error instead of being ignored
  • Options are annotated with their configuration scope in doc/sample.config
  • Updated the bundled llhttp to version 9.3.1
  • Replaced the autoconf/automake build system with meson
  • Global options no longer need to be duplicated in virtual hosts
  • Timestamps in IPC messages extended to 64-bit for future date support
  • Aligned the default values for dpd and mobile-dpd options with the values in the default configuration
  • Aligned default values for keepalive, rekey-time, cookie-timeout, auth-timeout, ban-reset-time, max-ban-score, and switch-to-tcp-timeout with the values documented in sample.config
Fixed 2
  • Fixed proxy protocol v2 client certificate CN never being extracted
  • Fixed a bug where a correct password was rejected after a wrong password attempt in the same session
Security 2
  • Hardened IPC message validation between worker, main, and sec-mod processes by adding upper-bound checks on message lengths and buffer sizes and NULL guards on optional protobuf fields
  • Limited HTTP request body size to 256 KB to prevent unauthenticated clients from exhausting worker process memory
View originalRead the notes
How 1.4.2 went

1.4.1

Added 1
  • occtl show user command now includes a Session started at field indicating when the VPN session was established
Changed 3
  • The bundled inih was updated to r62
  • The bundled protobuf-c was updated to 1.5.2
  • Renamed min-reauth-time configuration option to ban-time, which defines the duration in seconds an IP address is banned after exceeding max-ban-score, with a default of 300 seconds
Fixed 6
  • Fixed a bug where session timeout could be bypassed by reconnecting, for example by closing and opening a laptop lid
  • Fixed column misalignment in occtl ban command outputs
  • Fixed occtl show ip bans producing invalid JSON
  • Handle dotted client hostnames such as .local by stripping the domain suffix
  • Fixed ocserv-worker process title
  • Fixed ignored udp-port in vhost
Security 1
  • Fixed authentication bypass when combining password with certificate authentication with cert-user-oid set to SAN(rfc822name), where a client presenting a valid CA-signed certificate lacking the expected RFC822 SAN field could authenticate using password credentials alone
View originalRead the notes
How 1.4.1 went

1.4.0

Added 1
  • Single form to enter username and password
Changed 4
  • The bundled llhttp was updated to 9.3.0
  • The bundled protobuf-c was updated to 1.5.1
  • Seccomp filters were enhanced to address an issue found in testing
  • Session statistics are now reported at consistent intervals for RADIUS compatibility
Fixed 12
  • PAM authentication issues when combined with pam_sssd
  • Unexpected URL errors for Cisco AnyConnect clients
  • The ping-leases option, which was broken since version 1.1.1
  • Maximum MTU tracking in server statistics
  • iroute option processing so that multiple routes are handled
  • Session accounting for roaming users
View originalRead the notes
How 1.4.0 went

1.3.0

Added 2
  • Allow connecting users to select an authgroup by appending the group name to the URL, for example https://vpn.example.com/groupname
  • Introduce the select-group-by-url configuration option to enable selecting an authgroup via the URL
Changed 3
  • Switch the HTTP parser from http-parser to llhttp (https://github.com/nodejs/llhttp) because http-parser is unmaintained
  • Increase the maximum number of groups per account from 128 to 512
  • Informational messages produced while loading configuration are no longer printed during worker initialization
View originalRead the notes
How 1.3.0 went

1.2.4

Added 2
  • Get connection speed limits (traffic shaping) from RADIUS
  • Detection of the new AnyConnect-compatible identifier of OpenConnect clients
Changed 1
  • occtl prints bit rates in kb/s
Fixed 2
  • Logging to stderr now adds the missing newline
  • Compatibility with AnyConnect clients on Linux
View originalRead the notes
How 1.2.4 went

1.2.3

Added 3
  • New ocserv option --log-stderr that redirects logging to stderr explicitly, for better integration with logging in containers or under systemd
  • New ocserv option --syslog that redirects logging to syslog explicitly; syslog remains the default
  • Machine-readable raw_connected_at field for user stats in occtl
Changed 5
  • Treat unknown clients as capable of IPv6 routes and DNS servers
  • Warn when more than 2 DNS server IPv6 addresses are sent by Radius
  • Improved server shutdown
  • Modified Camouflage functionality to allow AnyConnect clients
  • Moved ocserv-fw under libexec
Fixed 1
  • ocserv-fw clean_all_rules logic on multiple similar devices
View originalRead the notes
How 1.2.3 went

1.2.2

Changed 1
  • ICMP and IGMP data is no longer counted when detecting idle sessions
Fixed 1
  • Session and accounting data tracking, reverting an earlier fix for issue 444
View originalRead the notes
How 1.2.2 went

1.2.1

Added 1
  • Accept the Clavister OneConnect VPN Android client
Changed 2
  • No longer require setting the device name per vhost
  • Replace nuttcp tests with iperf3, which is available in more environments
Fixed 2
  • Account the correct number of points when proxyproto is in use
  • Fix duplicate key in occtl --json show users output
View originalRead the notes
How 1.2.1 went

1.2.0

Added 2
  • Support for Cisco Enterprise phones to authenticate via the /svc endpoint, controlled by the cisco-svc-client-compat config option
  • Camouflage functionality that makes ocserv look like a web server to unauthorized parties
Changed 2
  • RADIUS group support enhanced so RADIUS servers can send multiple group class attributes
  • Seccomp filters enhanced to open files related to FIPS compliance on Suse
Fixed 2
  • Login failure avoided when the end point of the server URI contains a query string
  • Proper JSON is printed with occtl --debug --json
Removed 1
  • The need for the gnulib portability library has been eliminated
View originalRead the notes
How 1.2.0 went
View all

Discussion