OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: wedge1001 on December 27, 2021, 10:01:27 AM

Title: Filter BGP Routes
Post by: wedge1001 on December 27, 2021, 10:01:27 AM
Hello,

I've setup BGP in my test-lab - this works quite nice and as expected.
Unfortunately there is one "problem" I'm not yet able to solve:

If I enable "Connected routes (directly attached subnet or host)" it also announces my WAN-Interface-Subnet.
Since The firewall does have loads of local subnets attached, I really would like to use this method.

I've tried to setup a prefix-list and add them to the routed map, but it looks like it's completely ignored.
What I try to achieve: Only route private IPv4 subnets attached to this router.

Any Idea what I did wrong?

Thanks

edit:
it looks like a filtering would be possible if i actually could add more than one "prefix list" to my "route maps"
any idea how this can be acomplished? If I add more than one list, it always says: "Related item not found"
Title: Re: Filter BGP Routes
Post by: mimugmail on December 27, 2021, 01:06:40 PM
Label the same and higher the number (10, 20, 30 ...)
Title: Re: Filter BGP Routes
Post by: wedge1001 on December 27, 2021, 01:17:13 PM
wow.
what an easy fix - if you know it.

Thank you very much for your help!
Title: Re: Filter BGP Routes
Post by: mimugmail on December 27, 2021, 05:40:57 PM
Its copied from Cisco. Open source usually lacks documentation :)