Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Filter BGP routes announced to peer

    Scheduled Pinned Locked Moved FRR
    4 Posts 4 Posters 1.3k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      JW
      last edited by

      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!

      P 1 Reply Last reply Reply Quote 0
      • P
        pbf343 @JW
        last edited by

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

        1 Reply Last reply Reply Quote 0
        • Z
          Zawi
          last edited by

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

          For example:

          neighbor 10.10.10.20 prefix-list test out
          Prefix Lists
          ip prefix-list test seq 9 deny 0.0.0.0/0
          ip prefix-list test seq 10 permit 30.30.30.0/24
          ip prefix-list test description

          Before prefix list:
          Network Next Hop Metric LocPrf Weight Path
          *>i 0.0.0.0 10.10.10.10 0 100 0 i
          *>i 30.30.30.0/24 10.10.10.10 0 100 0 i

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

          1 Reply Last reply Reply Quote 0
          • I
            ismuser
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.