I couldn't find anything on Google, everything that I found was related to the opposite problem, VPN disconnecting when people don't want it to.
A little backstory: one of our potential clients needs us to have forced VPN disconnect after 24 hours of continuous connection.
We're using Libreswan and xl2tpd. If it's possible, please point me also to the resources so I can implement it. Thanks.