Community discussions

MikroTik App
 
User avatar
Nevon
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Thu Sep 05, 2013 6:06 pm
Location: Sweden
Contact:

ROS7 filter

Wed Oct 27, 2021 11:15 pm

Hi!
Anyone who can help me.
Im looking forward to test some ROS7 BGP. But I need to have some help with filtering.

On my TRANSIT-peer IN-filter I want to ensure that I discard if somehow my own prefix are received.
I allsow want to discard default-route

On my TRANSIT-peer OUT-filter I want to ensure that I only annonce my prefix and discard everything else.
IPv4 and IPv6...

Help plz. guide?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7044
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: ROS7 filter

Thu Oct 28, 2021 12:39 am

to accept only your prefix:
if (dst == your_prefix) {accept}

See more examples here:
https://help.mikrotik.com/docs/display/ ... figuration
 
User avatar
Nevon
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Thu Sep 05, 2013 6:06 pm
Location: Sweden
Contact:

Re: ROS7 filter

Thu Oct 28, 2021 8:32 am

But if I want to accept everything else then my own?
I read something about automatic discard... sounds wrong..
Most important is to have control over what Im announcing..
Found somewhere that I can make adress-list not only for announce but also for incoming filter?
Right?


to accept only your prefix:
if (dst == your_prefix) {accept}

See more examples here:
https://help.mikrotik.com/docs/display/ ... figuration
 
stathisch
just joined
Posts: 16
Joined: Wed Oct 26, 2016 12:29 am

Re: ROS7 filter

Thu Oct 28, 2021 6:33 pm

if (dst == your_prefix) {reject}
accept
Like this I guess

Who is online

Users browsing this forum: No registered users and 8 guests