L
L
lazix2017-03-03 19:20:15
VPN
lazix, 2017-03-03 19:20:15

How to connect VPN on Mikrotik for a specific route?

There is a Mikrotik 951 router, there is a VPN server with a network ball. Currently, workstations connect VPN to access it.
How to set up a router as a VPN L2TP client, but so that the VPN connection is used only when accessing the network ball. Let the rest of the traffic go directly, as usual.

Answer the question

In order to leave comments, you need to log in

5 answer(s)
M
Maksim, 2017-03-03
@chumayu

At def. route 0.0.0.0/0 metric up (for example 10)
The desired static route 127.127.127.127 towards the tunnel with a metric less than 10

I
Ilya Brazhnikov, 2017-03-03
@Ilyabr

You need to configure a route for a range of addresses over a VPN connection

V
Valentin Net, 2017-03-03
@vdemon

In the L2TP settings there is an item Dial on Demand In
simple terms - use if necessary.

L
lazix, 2017-03-03
@lazix

I do not want Dial on Demand - obviously, we will talk about reconnecting, this is 2-3 seconds.
You just need an analogue of the checkbox in the win7 VPN settings "use the default gateway on the remote network"

H
HawK, 2017-03-04
@HawK3D

Routing is very easy and flexible to configure in RouterOS, in addition to routing tables (Routes), there are routing rules (Rules) that allow you to rotate traffic as you like, and in combination with the /ip firewall mangle, you can mark traffic according to various signs for subsequent routing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question