Community discussions

MikroTik App
 
Habbiton
just joined
Topic Author
Posts: 7
Joined: Fri Sep 17, 2021 2:46 pm

Route loses its gateway everytime it disconnects - v6.49

Tue Nov 23, 2021 10:22 am

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

Every several hours, it stops working and the log shows this messages:
<ovpn-xxxxx>: terminating... - nothing received for a while
<ovpn-xxxx>: disconnected
TCP connection established from IP PUBLIC
: using encoding - AES-256-CBC/SHA1
xxxxxxx logged in, IP_VPN from IP PUBLIC
<ovpn-xxxxx>: 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
 
martinclaro
Frequent Visitor
Frequent Visitor
Posts: 95
Joined: Sat Sep 28, 2013 6:08 am
Location: Buenos Aires, Argentina
Contact:

Re: Route loses its gateway everytime it disconnects - v6.49

Wed Nov 24, 2021 4:35 am

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
 
Habbiton
just joined
Topic Author
Posts: 7
Joined: Fri Sep 17, 2021 2:46 pm

Re: Route loses its gateway everytime it disconnects - v6.49

Wed Nov 24, 2021 9:30 am

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?
 
holvoetn
Forum Guru
Forum Guru
Posts: 5490
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Route loses its gateway everytime it disconnects - v6.49

Wed Nov 24, 2021 8:20 pm

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

Who is online

Users browsing this forum: CyberMuz, jbolakakis, MikeKulls, nagylzs and 137 guests