Community discussions

MikroTik App
 
rooneybuk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Fri Feb 20, 2015 12:09 pm

default route distance filter

Thu Dec 28, 2023 4:15 pm

I'm using a simple routing filter to change the default route distance to 3 but this seems to capture all routes received as everything fits in 0.0.0.0/0 how would I exactly match this instead of everything in 0.0.0.0/0
if (dst in 0.0.0.0/0) {set distance 3; append comment LTE; accept}
else {reject}
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7056
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: default route distance filter

Thu Dec 28, 2023 5:02 pm

dst == 0.0.0.0/0
 
rooneybuk
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 92
Joined: Fri Feb 20, 2015 12:09 pm

Re: default route distance filter

Thu Dec 28, 2023 7:54 pm

Thanks I new it would be simple just couldn't find it anywhere

Who is online

Users browsing this forum: majestic and 3 guests