Route loses its gateway everytime it disconnects - v6.49

Hi there!
I’ve a VPN server configured through OVPN, working as expected

Every several hours, it stops working and the log shows this messages:
: terminating… - nothing received for a while
: disconnected
TCP connection established from IP PUBLIC
: using encoding - AES-256-CBC/SHA1
xxxxxxx logged in, IP_VPN from IP PUBLIC
: connected

Once the client reconnects with the server, the client reaches the server’s network perfectly, but the server has lost the route with the client and it must be reconfigured.
The route is not deleted but remains unreachable and I have to add its gateway every time it loses the connection and the client reconnects with the server

Am I doing something wrong? Is this a bug?

Thanks in advice

You need to add the route in /ppp secrets under routes parameter, for the route to the client network to be installed upon connection.

The route format is: “dst-address gateway metric” (for example, “10.1.0.0/24 10.0.0.1 1”). Several routes may be specified separated with commas

Thanks! It’s working now.
Any tips on the disconnections? Can I extend the time it waits without traffic, before it disconnects?

Add a netwatch to monitor the “other side” every couple of minutes or so.
Should keep the connection active.