Understanding Centralized Firewall Insertion in EVPN VXLAN Fabrics
- Get link
- X
- Other Apps
Centralized Firewall Insertion in an EVPN + VXLAN Fabric
Modern data center networks commonly use VXLAN with EVPN as the control plane to build scalable Layer-2 and Layer-3 fabrics. In a typical deployment, Leaf switches act as VTEPs (VXLAN Tunnel Endpoints) and provide a distributed anycast gateway using symmetric IRB. This allows inter-VLAN routing to occur locally on each Leaf, enabling efficient east-west traffic flow across the fabric.
However, some designs require all traffic to pass through a firewall for security inspection. In such deployments, the firewall becomes the default gateway for all VLANs. This design is commonly referred to as Centralized Routing or Centralized Firewall Insertion.
Typical EVPN VXLAN Architecture
In a standard VXLAN EVPN fabric:
-
Each Leaf switch operates as a VTEP
-
VLANs are mapped to Layer-2 VNIs (L2VNI)
-
VRFs are mapped to Layer-3 VNIs (L3VNI)
-
Each Leaf hosts SVIs with Anycast Gateway IPs
-
Symmetric IRB enables distributed routing between subnets
With this design:
-
Inter-VLAN traffic is routed locally at the ingress Leaf
-
Only routed traffic crosses the overlay
-
The fabric scales efficiently for east-west traffic
Centralized Firewall Gateway Design
In a centralized firewall design, the architecture changes slightly.
Instead of the Leaf switches hosting gateway IP addresses, the firewall owns the default gateway IP for each VLAN.
This results in the following behavior:
-
Leaf switches no longer perform inter-VLAN routing
-
Leaves primarily function as Layer-2 VXLAN bridges
-
All routing decisions are handled by the firewall
The VXLAN overlay still exists, but it is primarily used to extend Layer-2 domains across the fabric.
Control Plane Behavior
From a control plane perspective, EVPN continues to function normally.
The fabric still uses BGP EVPN to exchange endpoint reachability information between VTEPs.
The following EVPN route types are typically used:
-
Type-2 routes – MAC/IP advertisement routes for endpoints
-
Type-3 routes – Inclusive multicast routes for BUM traffic
These routes allow the fabric to maintain a distributed MAC address table across all VTEPs.
The key difference in this design is that:
-
The default gateway IP for each VLAN resides on the firewall
-
Leaf switches do not host SVI gateway addresses
-
IRB routing is not performed inside the fabric
Instead, the EVPN control plane simply ensures endpoint reachability across the overlay network.
Data Plane Operation
East-West Traffic (Between Subnets)
Consider a host attempting to reach a device in a different subnet.
-
The host sends traffic to its default gateway, which is the firewall.
-
The host sends an ARP request for the gateway IP.
-
The ARP request is flooded within the L2VNI across the VXLAN fabric.
-
The firewall responds with its MAC address.
-
This MAC address is then advertised via EVPN Type-2 routes.
Once learned, traffic destined for the gateway is forwarded as follows:
-
The host sends packets to the firewall MAC address.
-
The ingress Leaf VXLAN-encapsulates the frame.
-
The packet is forwarded across the fabric to the border Leaf connected to the firewall.
-
The border Leaf decapsulates the VXLAN packet.
-
The packet is forwarded to the firewall through a trunk or port-channel interface.
The firewall then:
-
Performs Layer-3 routing
-
Applies security policies
-
Sends the packet back toward the fabric in the destination VLAN
The border Leaf encapsulates the packet again into the appropriate VNI, and the packet is delivered to the destination Leaf.
As a result, all inter-VLAN traffic hairpins through the firewall.
North-South Traffic Flow
For north-south traffic toward the internet or external networks, the behavior is similar.
-
Hosts send traffic to the firewall (default gateway).
-
The firewall performs:
-
Security policy inspection
-
NAT (Network Address Translation) if required
-
-
Traffic is forwarded to the ISP or external network.
Return traffic flows:
-
From the ISP back to the firewall
-
The firewall processes the traffic
-
The firewall forwards it toward the appropriate VLAN
-
The border Leaf encapsulates it into VXLAN
-
The packet is delivered to the correct destination VTEP
EVPN ensures that MAC reachability information is maintained, allowing traffic to reach the correct Leaf switch.
Advantages of Centralized Firewall Insertion
This design provides several benefits:
Full Security Visibility
All traffic flows—both east-west and north-south—pass through the firewall.
Simplified Policy Enforcement
Security policies are enforced in one centralized location.
Easier Compliance and Monitoring
Organizations can easily apply deep inspection, logging, and threat analysis.
Disadvantages
Despite its security advantages, centralized routing introduces some trade-offs.
Reduced Fabric Efficiency
The VXLAN fabric loses the benefit of distributed routing.
Traffic Hairpinning
East-west traffic between subnets must detour through the firewall, increasing latency.
Potential Bottleneck
The firewall can become a performance bottleneck, especially in environments with high east-west traffic volumes.
Reduced Horizontal Scalability
The network becomes dependent on the scaling capacity of the firewall platform.
When to Use This Design
Centralized firewall insertion is commonly used in:
-
Highly regulated environments
-
Security-focused enterprise networks
-
Zero-trust architectures
-
Data centers requiring deep packet inspection
However, many modern deployments use distributed routing with selective firewall insertion to balance performance and security.
- Get link
- X
- Other Apps
Comments
Post a Comment