ROS7 filter

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?

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

See more examples here:
https://help.mikrotik.com/docs/display/ROS/ROSv7+Basic+Routing+Examples#ROSv7BasicRoutingExamples-BGPConfiguration

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?



if (dst == your_prefix) {reject}
accept

Like this I guess