Community discussions

MikroTik App
 
User avatar
savagedavid
Trainer
Trainer
Topic Author
Posts: 320
Joined: Thu Aug 25, 2005 12:58 pm
Location: Cape Town, South Africa
Contact:

V7 firewall address list in route filters

Tue Dec 14, 2021 8:55 am

Busy getting my head around route filters and V7 and trying to update my scripts. In V7 you no longer advertise in BGP--Networks (which does not exist) and you now do it via a firewall address list. My question is: can you use firewall address-list entries in BGP route filters? It would make a lot of sense to me since a lot of rules revolve around accepting or rejecting your covering ranges depending on the filtering requirement.
 
User avatar
savagedavid
Trainer
Trainer
Topic Author
Posts: 320
Joined: Thu Aug 25, 2005 12:58 pm
Location: Cape Town, South Africa
Contact:

Re: V7 firewall address list in route filters

Tue Dec 14, 2021 9:32 am

Never mind, I just answered my own question. Turns out you just type the address list name instead of an IP and it works fine.
/ip/firewall/address-list/add address=10.2.1.16/29 list=isp-prefix
 /routing/filter/rule/add chain=ospf-in rule="if (dst in isp-prefix) {reject}"

Who is online

Users browsing this forum: No registered users and 8 guests