T
T
timureh2017-01-30 12:54:38
VPN
timureh, 2017-01-30 12:54:38

Tweaking l2tp on mikrotik?

There is a microtic with two communication channels (WAN1 via pppoe and WAN2 receives DHCP).
The task is to simultaneously raise two l2tp tunnels on this mikrotik (to different servers) by explicitly specifying one WAN1 gateway, the second WAN2 gateway How
can this be done without using the routing mark?
Just by adding routes?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
poisons, 2017-01-30
@timureh

Just add routes to the desired addresses.
routing mark is needed for more subtle catching of interesting traffic, ala by src-address, dst port, etc.

K
kt72ru, 2017-01-30
@kt72ru

I could be wrong, but something like this
/ip route rule
add src-address=IP_WAN1 table=WAN1
add src-address=IP_WAN2 table=WAN2
add action=lookup-only-in-table routing-mark=WAN1 table=WAN1
add action= lookup-only-in-table routing-mark=WAN2 table=WAN2
/ip route
add distance=1 gateway=WAN1_GATEWAY routing-mark=WAN1
add distance=1 gateway=WAN2_GATEWAY routing-mark=WAN2

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question