Community discussions

MikroTik App
 
mafiosa
Member Candidate
Member Candidate
Topic Author
Posts: 266
Joined: Fri Dec 09, 2016 8:10 pm
Location: Kolkata, India
Contact:

Route filter for BGP not working v7.1 beta 6

Fri May 21, 2021 8:00 pm

Route filter for BGP not working in v7.1 beta 6
[kalpak@MikroTik] /routing/filter/rule> print
Flags: X - disabled, I - inactive
0 chain=secureshit-out
rule= if ([protocol static ] || [prfx value=dst<equal>2a0e:8f02:2110::/44])
then={ action accept }

1 chain=secureshit-out
rule= if ([protocol static ] || [prfx value=dst<equal>2a0e:8f02:2110::/46])
then={ action accept }

2 chain=secureshit-out
rule= if ([protocol static ] || [prfx value=dst<equal>2a0e:8f02:2114::/46])
then={ action accept }

3 chain=secureshit-out
rule= if ([protocol static ] || [prfx value=dst<equal>2a0e:8f02:2118::/46])
then={ action accept }

4 chain=secureshit-out
rule= if ([protocol static ] || [prfx value=dst<equal>2a0e:8f02:211c::/46])
then={ action accept }

5 chain=secureshit-out
rule= if ([protocol static ] || [prfx value=dst<equal>2a0e:46c4:2c00::/44])
I have added blackhole route yet it doesn't export any router. ipv6 route print doesn't give any output. Opened a ticket with support.rif for ipv6 route print issue.

kalpak@MikroTik] /routing/bgp/connection> print
Flags: D - dynamic, X - disabled, I - inactive
0 name="secureshit-v6"
remote.address=2a09:4c0:57e0:43::1 .as=58057
local.address=2a09:4c0:57e0:43::2 .role=ebgp
connect=yes listen=yes routing-table=main router-id=main templates=ipv6-ebgp as=213326 address-families=ipv6
output.filter=secureshit-out .network=""
 
mducharme
Trainer
Trainer
Posts: 1777
Joined: Tue Jul 19, 2016 6:45 pm
Location: Vancouver, BC, Canada

Re: Route filter for BGP not working v7.1 beta 6

Fri May 21, 2021 8:54 pm

I haven't done much with the new routing filters, but could the issue have to do with output.network=""?
 
User avatar
mrz
MikroTik Support
MikroTik Support
Posts: 7042
Joined: Wed Feb 07, 2007 12:45 pm
Location: Latvia
Contact:

Re: Route filter for BGP not working v7.1 beta 6

Fri May 21, 2021 10:02 pm

Problem is not with actual filters. To redistribute static routes now you need to enable redistribution in connection settings.
And set up routing filter selection chain and set it as output.filter
 
mafiosa
Member Candidate
Member Candidate
Topic Author
Posts: 266
Joined: Fri Dec 09, 2016 8:10 pm
Location: Kolkata, India
Contact:

Re: Route filter for BGP not working v7.1 beta 6

Fri May 21, 2021 11:14 pm

Problem is not with actual filters. To redistribute static routes now you need to enable redistribution in connection settings.
And set up routing filter selection chain and set it as output.filter
Now I see routes being advertised but is there anyway to see which ones are being advertised from mikrotik? BTW I have updated the support ticket.

Who is online

Users browsing this forum: ZupoLlask and 13 guests