Community discussions

MikroTik App
 
atakacs
Member Candidate
Member Candidate
Topic Author
Posts: 121
Joined: Mon Mar 07, 2016 5:39 pm

Static routes via non persistent connections

Mon Mar 22, 2021 2:32 pm

Hello

I have a setup with some site to site OpenVPN tunnels which require static routing (ie to subnets “behind” the Ovpn.

Everything works perfectly except that sometime the Ovpn tunnel will go down and will become “unreachable” in the static routes. When it reconnects the route remains down and I have to manually establish it… which is obviously not a reliable way to maintain it.

What is the “proper” solution in such cases ?
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: Static routes via non persistent connections

Mon Mar 22, 2021 4:21 pm

At ovpn server side, there is an parameter routes on the /ppp secret row, where you can specify a comma separated list of destination gateway metric tuples. These items are added to the routing table when the client represented by that /ppp secret row connects.

But I'm not sure I've answered your actual question?
 
atakacs
Member Candidate
Member Candidate
Topic Author
Posts: 121
Joined: Mon Mar 07, 2016 5:39 pm

Re: Static routes via non persistent connections

Mon Mar 22, 2021 7:54 pm

Maybe - let me give it a try (it might be all I need it this works every time a client connects)

Who is online

Users browsing this forum: deejay2, JoelBS, stef70, TuxPowered and 137 guests