Master MikroTik Policy Routing - Rules or Marks?

  Рет қаралды 1,791

Wilmer Almazan / The Network Trip

Wilmer Almazan / The Network Trip

Күн бұрын

Пікірлер: 43
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Have you tried Policy-Based Routing before? Share your experience or questions below!
@MachineBrain-AI4ALL
@MachineBrain-AI4ALL Ай бұрын
As always thank you very very much Mr. Wilmer..!
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Thank you for your support! 👍🏻
@jeytis72
@jeytis72 Ай бұрын
Woow Wilmer, this is exactly the video and the explanation I was looking for! Very clear indeed. What I like the most about your videos is that you go into the details of a setup, and that you explain why you should choose one option over another. Thank you
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Glad it was helpful!
@gpmdp
@gpmdp 26 күн бұрын
"Mas claro, echale agua" as we say the latinamericans!!!! Thanks again Wilmer!!!!!
@TheNetworkTrip
@TheNetworkTrip 25 күн бұрын
You bet!
@fabimesizae
@fabimesizae Ай бұрын
Valuable information. Thank you very much for your time
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Thank you! It’s a pleasure
@sabdielisstech5049
@sabdielisstech5049 4 күн бұрын
I loved it! Thank you so much!
@Anavllama
@Anavllama Ай бұрын
The emphasis on not mistakenly forcing private traffic out the routing rule is very important. I would add that its important to emphasize that one has to consider the traffic ORIGINATING from the subnet you are capturing, but also ANY RETURN TRAFFIC going back to other local private IP addresses. Minor change is that I would use lookup-only-in-table for local traffic rules. One cute trick is the following entry which basically says any local traffic allow, and thus only one rule required. add min-prefix=0 action=lookup-only-in-table table=main If you want to get deep into using routing rules and wireguard be advised, the action parameter is meaningless because the router has no idea if the wireguard interface is up or down, unlike most of the other interfaces and so netwatch of some sort is probably required.
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Great suggestion and good point, the min-prefix=0 will basically suppress the default route from that decision. 👌
@PST_1414
@PST_1414 Ай бұрын
Very informative & Detailed video on topic. Could you please create a new video for dual ISP load balancing using different mangle rules like PCC and discuss every points regarding all options available to differentiate traffic (src address, src & dst address, src address & port, src address & port && dst address & port) it will be really helpful if you can teach us mark packet & mark routing with real world scenarios.
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Hello! It’s on my to-do list. Thanks for the suggestion.
@dannielangel
@dannielangel Ай бұрын
Thanks for the insight
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Glad it was helpful!
@rchrstphr-smp1043
@rchrstphr-smp1043 Ай бұрын
nice video, thanks !!!!!
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Glad you liked it!
@SantiagoPioli
@SantiagoPioli Ай бұрын
I have accomplished a similar effect with 2 ISPs just by creating separate src-nat rules. Besides the amount of rules needed, has this approach any advantage?
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Hello! That approach won’t work effectively unless you have different default routes set up in the routing table. The router needs to know not only where to forward the traffic but also which traffic to route through which ISP. srcnat happens after the routing decision
@mikkio5371
@mikkio5371 Ай бұрын
Nice question and contribution. N thanks Wilmer for the reply .
@Anavllama
@Anavllama Ай бұрын
Typically one uses mark-connections to identify complex traffic needing routing and then routing marks to determine the route/table used. As you indicated, granularity is achieved by using mark-connections first or to identify other traffic one does not want to route but do something with. Its also more efficient in terms of traffic processing (CPU) in the granular need scenaro. By the way, when mangling traffic TO THE ROUTER ( aka for vpns), one can actually also use the output chain (more accurate) for marking routes vice prerouting.
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Correct! The output chain will be for traffic "from the router" instead of "to the router"
@edekedkowski5952
@edekedkowski5952 Ай бұрын
How did you add ISP1 and ISP2 to GNS3? ISP1 has the tap0 interface. After the trace command, both ISPs output the address 192.168.100.254. How is it configured?
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Hello! This is a simulation. The uplink router has 10.40.x.x and 10.50.x.x, that’s why the rest of the trace will look similar.
@muhamadkhalaf6556
@muhamadkhalaf6556 Ай бұрын
if i have output are vlan's in this case on new policy routing rule i can add them on interface and ignore src addres does it work like that
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Hello! If you are referring to traffic leaving through VLAN interfaces, it won’t match these rules because that occurs after the routing process. You need to identify the traffic before it reaches the routing process, which is when it gets evaluated. If you are referring to the output chain (traffic generated by the router itself), yes, we can use the same methods I demonstrated in the video.
@gpmdp
@gpmdp 26 күн бұрын
What is the impact (at performance level) of use routing mark as a single mangle rule than marking connections and after that mark-routing of only connections marked before? Other scenario can be mark-connection --> mark-packets ---> mark-routing. What is the best procedure, upon your expertise?
@TheNetworkTrip
@TheNetworkTrip 25 күн бұрын
Hello! For this specific scenario, the performance is pretty similar.
@mikkio5371
@mikkio5371 Ай бұрын
🎉🎉🎉🎉thank you .
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Welcome!!
@pand1s
@pand1s Ай бұрын
Extraño los videos en Español estimado Wilmer!
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Hola! Se vienen pronto, ya hay varios en edición. Saludos
@ken2627-s9v
@ken2627-s9v 27 күн бұрын
i my case, when I connect my Mikrotic router to my home ISP router. After I have followed your lab Routing instruction, with regard to the routing rules. My computer, sitting on one port inside the mikrotik Router Bridge, can not communicate with other IP inside my ISP router local LAN, but only the IP that is set on the Ether port 1. Am i missing some setting(config) on the Mikrotik hAP ac router ?
@TheNetworkTrip
@TheNetworkTrip 27 күн бұрын
Hello! The entries keeping in the main table your local networks should be missing something. Please make sure all your local networks are in the main table.
@soelinnhtike
@soelinnhtike Ай бұрын
Thanks sir
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
All the best!
@Turan-e1t
@Turan-e1t Ай бұрын
I added a comment, probably it gone into spam for adding link into it. on mikrotik fourm viewtopic id 211706 routing policy rule not working as it should
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
Hello! I checked the forum, if you are marking traffic coming from hotspot connections, make sure to do it just for the authenticated traffic (hotspot=auth)
@Turan-e1t
@Turan-e1t Ай бұрын
​@@TheNetworkTrip did you check the full code uploaded in that forum reply? The problem is: if i mark-route with src-address to new-mark-route it goes through routing policy rule if i mark-route with hotspot user's packet-mark to new-mark-route it does not go through routing policy rule this is the problem. could you explain a bit?
@Turan-e1t
@Turan-e1t Ай бұрын
@@TheNetworkTrip As I ran more test on it, It seems bug in RouterOs, I reported as bug, but did not hear from support yet.
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
I’ll take a look at it
@ken2627-s9v
@ken2627-s9v 28 күн бұрын
@@TheNetworkTrip i my case, when I connect my Mikrotic router to my home ISP router. After I have followed your lab Routing instruction, with regard to the routing rules. My computer, sitting on one port inside the mikrotik Router Bridge, can not communicate with other IP inside my ISP router local LAN, but only the IP that is set on the Ether port 1. Am i missing some setting(config) on the Mikrotik hAP ac router ?
Block DHCP Attacks - Deep Dive
22:29
Wilmer Almazan / The Network Trip
Рет қаралды 1,2 М.
Router Redundancy - VRRP Mikrotik (Step by Step)
20:02
Wilmer Almazan / The Network Trip
Рет қаралды 2,6 М.
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,5 МЛН
СОБАКА ВЕРНУЛА ТАБАЛАПКИ😱#shorts
00:25
INNA SERG
Рет қаралды 3,9 МЛН
Happy birthday to you by Secret Vlog
00:12
Secret Vlog
Рет қаралды 6 МЛН
Adlist Mikrotik - Step by Step Lab
18:57
Wilmer Almazan / The Network Trip
Рет қаралды 2,1 М.
Full MikroTik MTCRE - Policy Based Routing (Mangles) 😎 (Episode 5)
18:54
Recursive Routing + Failover - Mikrotik RouterOS v7
20:35
Wilmer Almazan / The Network Trip
Рет қаралды 49 М.
Block DNS Flood Attacks on Mikrotik - Live Demo Included!
14:38
Wilmer Almazan / The Network Trip
Рет қаралды 2,9 М.
Spanning Tree Protocol | CCNA - Explained
11:55
PowerCert Animated Videos
Рет қаралды 26 М.
Port Knocking & Scanner Detection - Mikrotik Firewall Ep 3
18:02
Wilmer Almazan / The Network Trip
Рет қаралды 6 М.
10 Gb/s throughput without using CPU cores? ✅ Check.
13:46
Tomaž Zaman
Рет қаралды 34 М.
MACSec Mikrotik - Hop by Hop Encryption
23:44
Wilmer Almazan / The Network Trip
Рет қаралды 1,3 М.
MVRP - Dynamic VLANs Mikrotik (Full Lab -  Step by Step)
25:23
Wilmer Almazan / The Network Trip
Рет қаралды 3,1 М.