Hi
I need to configure the same option too. i have community version OpenVPN 2.4.8 x86_64-pc-linux-gnu.
I found this document for commercial version
https://openvpn.net/vpn-server-resources/openvpn-tunnel-session-management-options/#automatic-client-inactivity-disconnect-threshold which talks about doing so by adding this parameter vpn.server.session_expire .
anyone know how do i configure it in my community version? or another way to disconnect an idle session after Xhours? Or if there is already a solution provided in this forum please provide a link