Answer the question
In order to leave comments, you need to log in
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
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
You need to configure a route for a range of addresses over a VPN connection
In the L2TP settings there is an item Dial on Demand In
simple terms - use if necessary.
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"
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 questionAsk a Question
731 491 924 answers to any question