Skip to main content
EM_Fortiuser
Visitor III
May 22, 2025 5:55 PM UTC
Question

Firewall Policy not honoring BGP learned routes

I have two sites broadcasting there available newtorks via bgp over a site to site connection.  When I do a firewall policy test the remote system, it gives my default outbound policy vs the Firewall rules I have already established.  

BGP Neighbors

EM_Fortiuser_2-1747936422162.png

 

BGP Paths

EM_Fortiuser_1-1747936385743.png

 

So none of my site to site policies match when I do the test policy function.

 

I am sure I am missing something but dont know what.

 

Thanks in advance

 

11 replies

Anthony_E
Staff
Staff
May 26, 2025 4:02 AM UTC

Hello,


Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.


Thanks,

Translate
Best Regards
Yurisk
SuperUser
SuperUser
May 26, 2025 4:42 AM UTC

Sorry, but I haven't understood a thing from your post - what are you trying to achieve, what have you configured, and how you see something is not working? 

BGP does not advertise routes ? Routes advertised but not being installed in FIB? There is no such thing "default outbound policy" in Fortigate. Fortigate will not create security rules based on BGP routes or BGP-anything. 

It would be best to start by sharing sanitized configuration of what you are trying to do. 

 

Cheers

 

Translate
yurisk.info - all things Fortinet blog, no ads
EM_Fortiuser
Visitor III
May 27, 2025 12:55 PM UTC

Basically I have a site to site connection and I am trying to leverage BGP instead of static routing between the sites.  I have BGP working and each side can see the advertised routes but when I do a route lookup or policy check the route isnt going to the site to site vpn connection.  It goes to the default outbound policy I have setup.

Translate
funkylicious
SuperUser
SuperUser
May 27, 2025 2:16 PM UTC

can you share the routing table on the device in question?

a bgp advertised route doesnt necessarily mean a preferred/installed route on the other end.

 

get router info routing-table all

get router info routing-table database

Translate
"jack of all trades, master of none"
Yurisk
SuperUser
SuperUser
May 27, 2025 2:15 PM UTC

I see, then I\d start with:

 

  • See if all peers are in Established state: get router info bgp summary/get router info bgp neighbors
  • See if there are any BGP learned routes: get router info routing-table bgp
  • Make sure you are receiving routes from BGP peers: get router info bgp neighbors x.x.x.x routes and sending routes get router info bgp neighbors x.x.x.x advertised-routes
  • Finally, if all above works, see if BGP routes are learned but not installed into FIB: get router info routing database - if you see BGp routes without the * (asterisk) means local FGT learns the routes but for some reason (should be shown as well) does not install them into FIB (like unresolved next hop, or you have static routes to the same networks etc)
Translate
yurisk.info - all things Fortinet blog, no ads
EM_Fortiuser
Visitor III
May 27, 2025 3:24 PM UTC

Both neighbors shows established.  As you can see from my other post above its routing out port1 (wan) but not over the Site to Site

Translate
Yurisk
SuperUser
SuperUser
May 27, 2025 4:08 PM UTC

Do you have static routes to the same networks advertised via BGP configured ?

Translate
yurisk.info - all things Fortinet blog, no ads
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024