mad_ady
Regular Contributor
I'm using OpenVPN with my Asus (RMerlin firmware) and I'm quite happy with it.
However, I recently got a new request - to enable an account only during certain hours. E.g. the VPN account can connect only during 8:00 - 16:00, and must be disconnected after 16 (if it is connected).
I could script my way through this and use bash + cutter + mangle the router configuration to add and remove the account based on cron events, but before I start in my journey to madness, I'd like to ask if there is already an elegant way to implement this that I might not know of?
Thanks
However, I recently got a new request - to enable an account only during certain hours. E.g. the VPN account can connect only during 8:00 - 16:00, and must be disconnected after 16 (if it is connected).
I could script my way through this and use bash + cutter + mangle the router configuration to add and remove the account based on cron events, but before I start in my journey to madness, I'd like to ask if there is already an elegant way to implement this that I might not know of?
Thanks