Master MikroTik Policy Routing - Rules or Marks?

  Рет қаралды 2,679

Wilmer Almazan / The Network Trip

Wilmer Almazan / The Network Trip

Күн бұрын

Пікірлер: 47
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Have you tried Policy-Based Routing before? Share your experience or questions below!
@jeytis72
@jeytis72 2 ай бұрын
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 2 ай бұрын
Glad it was helpful!
@MachineBrain-AI4ALL
@MachineBrain-AI4ALL 2 ай бұрын
As always thank you very very much Mr. Wilmer..!
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Thank you for your support! 👍🏻
@Anavllama
@Anavllama 2 ай бұрын
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 2 ай бұрын
Great suggestion and good point, the min-prefix=0 will basically suppress the default route from that decision. 👌
@fabimesizae
@fabimesizae 2 ай бұрын
Valuable information. Thank you very much for your time
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Thank you! It’s a pleasure
@sabdielisstech5049
@sabdielisstech5049 Ай бұрын
I loved it! Thank you so much!
@gpmdp
@gpmdp 2 ай бұрын
"Mas claro, echale agua" as we say the latinamericans!!!! Thanks again Wilmer!!!!!
@TheNetworkTrip
@TheNetworkTrip Ай бұрын
You bet!
@dannielangel
@dannielangel 2 ай бұрын
Thanks for the insight
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Glad it was helpful!
@rchrstphr-smp1043
@rchrstphr-smp1043 2 ай бұрын
nice video, thanks !!!!!
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Glad you liked it!
@PST_1414
@PST_1414 2 ай бұрын
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 2 ай бұрын
Hello! It’s on my to-do list. Thanks for the suggestion.
@Anavllama
@Anavllama 2 ай бұрын
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 2 ай бұрын
Correct! The output chain will be for traffic "from the router" instead of "to the router"
@SantiagoPioli
@SantiagoPioli 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
Nice question and contribution. N thanks Wilmer for the reply .
@gpmdp
@gpmdp 2 ай бұрын
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 Ай бұрын
Hello! For this specific scenario, the performance is pretty similar.
@mikkio5371
@mikkio5371 2 ай бұрын
🎉🎉🎉🎉thank you .
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Welcome!!
@edekedkowski5952
@edekedkowski5952 2 ай бұрын
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 2 ай бұрын
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.
@ken2627-s9v
@ken2627-s9v 2 ай бұрын
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 2 ай бұрын
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.
@muhamadkhalaf6556
@muhamadkhalaf6556 2 ай бұрын
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 2 ай бұрын
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.
@pand1s
@pand1s 2 ай бұрын
Extraño los videos en Español estimado Wilmer!
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
Hola! Se vienen pronto, ya hay varios en edición. Saludos
@andymordab
@andymordab 6 күн бұрын
I Have Questions how i can routing web url only in my router
@JoelLopez-v9m
@JoelLopez-v9m 22 күн бұрын
hi can i intergrate PBR to ospf?
@soelinnhtike
@soelinnhtike 2 ай бұрын
Thanks sir
@TheNetworkTrip
@TheNetworkTrip 2 ай бұрын
All the best!
@Turan-e1t
@Turan-e1t 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
​@@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 2 ай бұрын
@@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 2 ай бұрын
I’ll take a look at it
@ken2627-s9v
@ken2627-s9v 2 ай бұрын
@@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 ?
@VVelikan
@VVelikan 21 күн бұрын
@TheNetworkTrip great tutorial, thank you so much sir! ❤ Exactly what I looking for. Glad to find your channel.🔥 Did subscribe.
Router Redundancy - VRRP Mikrotik (Step by Step)
20:02
Wilmer Almazan / The Network Trip
Рет қаралды 3,2 М.
Block DHCP Attacks - Deep Dive
22:29
Wilmer Almazan / The Network Trip
Рет қаралды 1,6 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Chain Game Strong ⛓️
00:21
Anwar Jibawi
Рет қаралды 41 МЛН
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 158 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
mDNS Mikrotik - Discover Your Devices Without a DNS Server
14:08
Wilmer Almazan / The Network Trip
Рет қаралды 3,8 М.
Full MikroTik MTCRE - Policy Based Routing (Mangles) 😎 (Episode 5)
18:54
Security Best Practices - Firewall Filtering with MikroTik Marc
32:31
Admiral Platform (RemoteWinBox)
Рет қаралды 7 М.
Adlist Mikrotik - Step by Step Lab
18:57
Wilmer Almazan / The Network Trip
Рет қаралды 2,9 М.
Block DNS Flood Attacks on Mikrotik - Live Demo Included!
14:38
Wilmer Almazan / The Network Trip
Рет қаралды 4,5 М.
Multiple uplinks using PCC, Load balancing
16:22
MikroTik
Рет қаралды 88 М.
DNS over HTTPS (DoH) on MikroTik: Complete Lab
17:53
Wilmer Almazan / The Network Trip
Рет қаралды 3 М.
Understanding Bridge Hardware Offloading in Mikrotik Devices
9:10
Wilmer Almazan / The Network Trip
Рет қаралды 1,9 М.
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
MVRP - Dynamic VLANs Mikrotik (Full Lab -  Step by Step)
25:23
Wilmer Almazan / The Network Trip
Рет қаралды 4,3 М.
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН