D
D
Dv_ToNy2017-10-10 18:46:04
VPN
Dv_ToNy, 2017-10-10 18:46:04

VPN setup for some websites on MikroTik router?

There is a MikroTik RB2011 router. I want to send all traffic through the VPN, with the exception of some sites, such as YouTube. Or create two wi-fi access points, one with a VPN and the other without.
I found several articles on the Internet, how to route all traffic through vpn, and how to create a guest access point, how to put it together, there is not enough knowledge

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
poisons, 2017-10-10
@poisons

I won’t write a ready-made config, but you need to do the following point by point
1) Select the traffic of interest.
ip firewall mangle add action=mark-routing [required conditions here] will help us with this
.
2) We drive the routing
/ip route
add distance=1 gateway=routing-mark=
By this we indicate that traffic with the desired label should fly to the gateway we need.
Actually, if you need traffic from a specific interface (your wifi c vpn) to go through the tunnel, then you can use in-interface or src-address in the mangle.
Actually, the same thing can be used to indicate the destination. In this case, pay attention to the "!" - sign of negation.
More specifics that does not come out.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question