Community discussions

MikroTik App
 
User avatar
r359
just joined
Topic Author
Posts: 8
Joined: Wed Jan 18, 2017 2:22 pm
Location: Iran

Mangle

Sun Aug 23, 2020 7:31 am

Hello everyone,
I have a Mikrotik router as vpn server with 3 different public IP addresses and clients are connecting to it via different protocols ( pptp and l2tp ) using its main IP.
I want l2tp clients send/receive through route#1 and pptp clients through route#2.
I heared I should use mangle->prerouting, but I'm not sure which action should I use ( mark routing or mark packet) that can identify l2tp from pptp. I would appreciate any helps.
 
Shqipalb
just joined
Posts: 6
Joined: Wed May 06, 2020 11:50 pm

Re: Mangle

Sun Aug 23, 2020 9:39 pm

Hi
You have to use mark routing with the l2tp client ip's and mangle rule another mark routing with the pptp client ip's so you can go to ip/route and add l2tp mangle in the route1 and pptp mangle in the route 2 or what ever you want to do
 
User avatar
r359
just joined
Topic Author
Posts: 8
Joined: Wed Jan 18, 2017 2:22 pm
Location: Iran

Re: Mangle

Mon Aug 24, 2020 8:40 am

Hi
You have to use mark routing with the l2tp client ip's and mangle rule another mark routing with the pptp client ip's so you can go to ip/route and add l2tp mangle in the route1 and pptp mangle in the route 2 or what ever you want to do
Hello and thank you for the reply. I will try this solution.