FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Article Id 195932

This article describes the BGP route selection process.

Consider only routes with no AS loops and a valid next hop, and then:

1) Prefer highest weight. This attribute is local to the FortiGate.
2) Prefer highest local preference. Applicable within AS.
3) Prefer route originated by the local router (next hop =
4) Prefer shortest AS path.
5) Prefer lowest origin code (IGP -> EGP -> incomplete).
6) Prefer lowest MED (exchanged between autonomous systems).
7) Prefer EBGP path over IBGP path.
8) Prefer the path through the closest IGP neighbor.
9) Prefer oldest route for EBGP paths.
10) Prefer the path with the lowest neighbor BGP router ID.
11) Prefer the path with the lowest neighbor IP address.