BGP filter

Hi all,

How to set localpref for prefixe coming from AS9269 coming from a carrier

chain=BGP-IN bgp-as-path=9269 invert-match=no action=accept set-bgp-local-pref=105 set-bgp-prepend-path=“”

?
regards

Armand

Take a look at POSIX REGEX for matching on an AS PATH. The underscore will match any AS in the path and the $ signals the end of the string. Haven’t tried this particular REGEX in Mikrotik, but it is valid POSIX and works in Cisco with no issue - let us know how it goes!
chain=BGP-IN bgp-as-path=“_9269$” invert-match=no action=accept set-bgp-local-pref=105 set-bgp-prepend-path=“”