Introduction to Dynamic Routing on Palo Alto Networks Firewalls

Palo Alto Networks Next-Generation Firewalls (NGFWs) are capable of participating in complex network environments by supporting various dynamic routing protocols. This allows the firewall to learn about network topology changes automatically and make intelligent forwarding decisions without manual static route configuration.

Dynamic routing is essential for scalability, redundancy, and efficient traffic flow in modern networks. PAN-OS, the operating system powering these firewalls, integrates routing capabilities within its Virtual Router (VR) or Logical Router (LR, with the Advanced Routing Engine) framework.

This document explores the dynamic routing protocols supported by PAN-OS, the concept of route redistribution between protocols, and common administrative tasks associated with managing routing on the firewall.

Note: PAN-OS 10.0 introduced an optional "Advanced Routing Engine" (ARE), which became the default in later versions, offering enhanced features and a potentially different configuration workflow compared to the legacy engine. This document primarily reflects concepts applicable to both, but specific commands or UI elements might differ based on the engine used.

Virtual Routers (VRs) / Logical Routers (LRs)

The foundation of routing in PAN-OS is the Virtual Router (VR) or, with the Advanced Routing Engine, the Logical Router (LR). Think of a VR/LR as a virtual routing instance within the firewall, similar to a VRF (Virtual Routing and Forwarding) instance on traditional routers.

Key aspects of VRs/LRs include:

Simplified illustration of multiple Virtual Routers within a Palo Alto Networks firewall, each with its own interfaces, zones, routing table, and potentially different routing protocols.

Border Gateway Protocol (BGP)

BGP (specifically BGP4) is the de facto standard inter-Autonomous System (AS) routing protocol used on the internet. Palo Alto Networks firewalls support BGP, allowing them to peer with ISP routers or other BGP speakers in an enterprise environment.

Key Characteristics & Configuration Points:

BGP Neighbor States:

BGP neighbors transition through several states during session establishment. Understanding these states is crucial for troubleshooting peering issues.

BGP Finite State Machine (FSM) showing neighbor states and transitions.

Common Administrative Tasks:

Open Shortest Path First (OSPF)

OSPF is a widely used Interior Gateway Protocol (IGP) based on link-state technology. Palo Alto Networks firewalls support OSPFv2 (for IPv4) and OSPFv3 (for IPv6), allowing them to integrate seamlessly into OSPF routing domains.

Key Characteristics & Configuration Points:

OSPF Neighbor States:

OSPF routers progress through several states to form adjacencies and synchronize their Link-State Databases (LSDBs).


OSPF Neighbor State Machine showing common adjacency formation states.

Common Administrative Tasks:

Routing Information Protocol (RIP)

RIP is an older distance-vector routing protocol. Palo Alto Networks firewalls support RIPv2, which offers improvements over RIPv1, such as support for Variable Length Subnet Masks (VLSM) and multicast updates. While less common in modern networks compared to OSPF or BGP, it might be required for interoperability with legacy systems.

Key Characteristics & Configuration Points:

RIP is generally not recommended for new network deployments due to its limitations compared to OSPF and BGP. Its main use case on a modern firewall is typically for interoperability with existing legacy network segments that still rely on RIP.

Common Administrative Tasks:

Route Redistribution

Route redistribution is the process of exchanging routing information between different routing protocols (including static routes and connected interfaces) operating within the same Virtual Router/Logical Router. This is crucial for ensuring end-to-end connectivity in networks that utilize multiple routing methods.

For example, you might learn routes via OSPF from your internal network and need to advertise them to an external partner via BGP, or you might want to advertise a static default route into your OSPF domain.

Configuration Concept (PAN-OS):

Redistribution in PAN-OS typically involves two main components configured within the Virtual Router/Logical Router:

  1. Redistribution Profile:
    • Defines *which* routes are eligible for redistribution based on their source protocol (e.g., static, connected, OSPF, BGP, RIP) and potentially other filters (e.g., specific prefixes, OSPF path types, BGP communities).
    • Each profile has a Priority (1-255, lower value is higher priority). The firewall evaluates profiles in order of priority.
    • Specifies an Action : `redist` (redistribute matching routes) or `no-redist` (do not redistribute matching routes, often used to create exceptions).
    • Can include filters based on destination prefixes, next-hops, interfaces, OSPF attributes (area, path type, tag), or BGP attributes (community, extended community, AS path - depending on engine/version).
  2. Protocol-Specific Export/Redistribution Rules:
    • This associates a Redistribution Profile with a *target* routing protocol (the protocol *receiving* the redistributed routes).
    • For example, under the BGP configuration, you define "Redist Rules" that reference a specific Redistribution Profile.
    • Under OSPF configuration, you use "Export Rules" that reference a Redistribution Profile.
    • These rules allow you to set attributes for the redistributed routes as they enter the target protocol (e.g., setting the BGP origin type, metric, local preference, or community; setting the OSPF metric, metric type, or tag).
    • You can often enable an option here to specifically allow the redistribution of the default route (0.0.0.0/0).

Conceptual flowchart of route redistribution logic in PAN-OS.

Key Considerations:

Administrative Tasks & Verification

Managing dynamic routing involves ongoing monitoring, verification, and troubleshooting. PAN-OS provides both GUI and CLI tools for these tasks.

Viewing Routing Tables:

Protocol-Specific Verification:

Use protocol-specific commands to check neighbor status, learned routes, databases, and protocol parameters.

Path Selection: Administrative Distance (AD) & Metrics

When a Virtual Router/Logical Router learns the same prefix from multiple sources, it selects the best path based on:

  1. Administrative Distance (AD): A measure of the trustworthiness of the routing source. Lower AD values are preferred. Default AD values in PAN-OS are generally standard (e.g., Connected: 0, Static: 10, eBGP: 20, iBGP: 200, OSPF: 110, RIP: 120), but can often be customized, especially for static routes.
  2. Metric: If multiple paths have the same lowest AD, the protocol-specific metric is used as a tie-breaker (e.g., OSPF cost, RIP hop count, BGP path attributes like Weight (PAN-OS specific), Local Preference, AS_PATH length, MED).

Simplified route selection process based on AD and Metric.

Troubleshooting:

# Example CLI Commands (Legacy Engine - Adapt for ARE using 'advanced-routing') > show routing route virtual-router default
> show routing fib virtual-router external
> show routing protocol bgp peer virtual-router external
> show routing protocol ospf neighbor virtual-router default
> debug routing BGP detail
# (Remember to turn debugs off: undebug routing BGP all)

Conclusion

Palo Alto Networks firewalls provide robust support for dynamic routing protocols, including BGP, OSPF (v2/v3), and RIPv2. These capabilities are managed within the Virtual Router (or Logical Router) framework, allowing for network segmentation and tailored routing policies.

Understanding how to configure these protocols, manage route redistribution between them, and utilize the available verification and troubleshooting tools is essential for leveraging the firewall effectively in dynamic network environments. The introduction of the Advanced Routing Engine further enhances these capabilities, aligning PAN-OS more closely with traditional routing platforms while maintaining its integrated security posture.

Quiz

1. Which three dynamic routing protocols are commonly supported by Palo Alto Networks Virtual Routers?

2. Which transport protocol and port does BGP use for neighbor communication?

3. In PAN-OS, what object is primarily used to define *which* routes (based on source protocol, prefix, etc.) are eligible for redistribution?

4. Which BGP neighbor state indicates a fully successful peering where route exchange can occur?

5. What is the final OSPF neighbor state indicating that two routers have synchronized their Link-State Databases and are fully adjacent?