M
M
Max2016-09-14 12:33:58
openvpn
Max, 2016-09-14 12:33:58

Mikrotik falls off vpn interface. Why?

I have configured openvpn on 2 microticks (RB2011UiAS-2HnD), one acts as a server, the second, respectively, as a client.
So the current on Mikrotik which is server-open vpna falls off the interface in routes and in the nat rule.
It looks like this:
ed15df73786b.png
In the getway line, spf1 is set instead of ovpn-opvncall.
This happens when you either change the Mikrotik settings (but not always) or the Internet disappears or happens by itself ..
You have to go in with your hands and select ovpn-opvncall. Why is this happening? Why does it reset the interface on the gateway line?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Max, 2016-09-14
@WarStyle

In general, like this - sysadmins.ru/topic473334.html

S
Sergey, 2016-09-14
@edinorog

At me such is observed in dkhtsp on one of interfaces. Falls off once a month though burst)

A
Anibius, 2016-09-23
@Anibius

Good day!
I have the same schema.
192.168.0.0/24 this network should be available after the connection is established.
As a solution to the problem, I propose to do this:
1) create a profile for the openvpn connection, if it does not already exist
2) in this profile, register on the Scripts tab:
On UP:
/ip route enable [find dst-address=192.168.0.0/24 and gateway= to_vbox and distance >=1];
On Down:
/ip route disable [find dst-address=192.168.0.0/24 and gateway= to_vbox and distance >=1];
How it works:
When an openvpn connection is established on the client, the route 192.168.0.0/24 is added via the to_vbox interface .
When the connection is broken, the route is simply disconnected, and when it is restored, everything works again and nothing needs to be edited.
In your case, replace to_vbox with ovpn-opvncall .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question