Filter BGP routes announced to peer

  • I can't seem to get prefix lists to deny a few networks I don't want to be advertised to a peer. I have been trying to read all the documentation I can find online, but haven't found any solid information on this topic, specific to FRR in pfsense.

    Does anyone have a working example or configuration documentation that you would be willing to share?
    I think the issue is in route maps as the configuration tab never shows any configuration under # Route Maps

    Thanks in advance!

  • @JW Same issue. Did you ever figure it out or find a reference for solution? Thank you.

  • Use Prefix Lists
    FRR Global Settings/Zebra > Prefix Lists
    Services>FRR>BGP>Edit>Neighbors >> Peer Filtering>Prefix List Filter

    For example:

    neighbor prefix-list test out
    Prefix Lists
    ip prefix-list test seq 9 deny
    ip prefix-list test seq 10 permit
    ip prefix-list test description

    Before prefix list:
    Network Next Hop Metric LocPrf Weight Path
    *>i 0 100 0 i
    *>i 0 100 0 i

    after applying prefix list
    Network Next Hop Metric LocPrf Weight Path
    *>i 0 100 0 i

  • The route map name must have no spaces, and you could only use alphanumeric characters and/or hyphens (no underscores). Otherwise the route map won't work.