Community discussions

MikroTik App
 
nokipa
just joined
Topic Author
Posts: 16
Joined: Thu Dec 21, 2017 6:22 am

v7 routing filter bgp-as-path regex

Fri Sep 17, 2021 9:12 am

hello,

is v7 support filter as-path using regex ? since yesterday i'm trying to input some rule like in v6

this routing filter work flawlessly on v6
chain=peer1-in bgp-as-path=65530$ invert-match=no action=discard

new v7
[admin@MikroTik] /routing/filter/rule> pr
Flags: X - disabled, I - inactive
0 chain=bgp-v6-in rule="if (bgp-as-path 65532$) {reject}\r\naccept\r\n"

1 chain=bgp-v6-out rule="accept\r\n"

but it;s not working
 
nokipa
just joined
Topic Author
Posts: 16
Joined: Thu Dec 21, 2017 6:22 am

Re: v7 routing filter bgp-as-path regex

Fri Sep 17, 2021 2:55 pm

so getting help from my friend, we finally found a way

if ( bgp-as-path ^*.65536$ )
{ reject; }
else
{accept;}

please bring back the way old routing filter, since this is mikrotik, simplicity over everything

Who is online

Users browsing this forum: No registered users and 23 guests