Skip to content
Contents
GuidesOpenWrt

An ocserv client stays online after you select Disconnect in LuCI

After clicking Disconnect, if the same username is still visible, it may indicate a disconnect failure or that the client has automatically reconnected. Use session identity to distinguish between these two scenarios.

Applies to · luci-app-ocserv 26.117.61665~4764bf4 · Firefox · 25.12.2 / 25.12.5

What to check

Select a test client authorized to disconnect, note the session ID and online time, click Disconnect, then read the session again.

Connect over Ethernet and run the following commands in an SSH session on the router.

occtl show users
logread -e ocserv

How to interpret the result

Compare the session ID and connection duration before and after operation using occtl output. If the ID remains unchanged, check the response of the disconnection request. If the ID has changed and the online time has been updated, temporarily disable the test client's automatic reconnection, then verify whether the previous session has ended.

Verify and recover

Confirm that the original session ID disappears and traffic on that session stops. Reconnect the test client to restore access without restarting unrelated sessions.

Related guide · Identify a new device from OpenWrt lease and access logs

Explore hardware

Comments