D
D
deniska_p2015-10-15 19:47:27
linux
deniska_p, 2015-10-15 19:47:27

OpenVPN tunnel on Mikrotik and two channels. How?

What I can’t understand is how to switch the lifted tunnel to the backup channel when the main one goes down.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maksim, 2015-10-15
@chumayu

And we cannot understand, because there is no information.

T
teewee, 2015-10-16
@teewee

google to help, how to choose a defaultroute via route_distance (it was on habré, is on off. wiki)
1: reboot mikrotik when ping is lost to the current gateway
2: then the script at startup to select a defaultroute
3: launch vpn over all this
4: DO NOT USE GOTO!!
5: GOTO 1 is of
course a crutch, but at the moment the only working option. On core-level switches, it seems like you can only lay down interfaces, but it didn’t take off on my CRS-125-24g (vpn didn’t understand that the route had changed)

T
taaadm, 2015-10-16
@taaadm

It is created on Mikrotik 2 ovpn-client on different ip and through tool \ netwatch you set up the inclusion of the first channel when its ip is available, and the inclusion of the second when it is not available.
/tool ​​netwatch;
add host= interval=10s
down-script="/interface ovpn-client set ovpn-mainoffice-eps1 disabled=yes ;
/interface ovpn-client set ovpn-mainoffice-eps2 disabled=no;"
up-script="/interface ovpn-client set_ovpn-mainoffice-eps2 disabled=yes;
/interface ovpn-client set ovpn-mainoffice-eps1 disabled=no;";

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question