Palo Alto Firewall Qwerk

Thought I would share this little qwerk I found over the weekend with PA firewalls regarding moving interface IP's if you have Loopback's configured. Recently I have been playing around with migrating to new hardware and the process I take requires moving the physical interfaces from a firewall to the new switch etc and part of the process for firewalls I use is to configure the new interfaces that are connected to the new switch infrastructure on the standby device and perform a firewall failover. The idea being this will minimise potential traffic flow impact. Normally this would not be an issue, when you do a failover, the firewall performs a GARP and everything updates. In saying that, the GARP isn't sent out for everything so things like NAT's, or Loopbacks aren't updated. As I mentioned, the steps I was taking to perform this change were:

  • Configure the new Interface IP's and Zones etc to match the old Interfaces
  • Remove the IP addresses from the old interfaces
  • Commit and push the changes to the standby firewall only
  • Failover the firewalls

Now this works well. Traffic starts flowing on the new interfaces and everything works. I then do my tests and leave everything run for a while before doing the cleanup of the old interface configuration. Now this is where the qwerk comes in. It turns out that a PA firewall will still process traffic on an interface that has no IP address. The Loopback interfaces which was used for the destination for various things such as GRE tunnels, or routing etc, because there's no GARP sent out for those, any device that has an ARP entry for those IP's will still be using the old interface MAC for the layer 2 next hop which, while the interface is up, is still reachable via the switch CAM table because the PA doesn't stop processing the packets. So the traffic gets sent from the router/sending device with the MAC of the old interface as the Layer 2 next hop, the switch knows that MAC still as the interface is still up and processing frames so forwards the traffic to the interface. The PA receives the packets, confirms it's in the same zone, and processes the traffic. 

It wasn't until I did the cleanup of the old interfaces, that things started to break because that ARP entry, was no longer valid. I can't show a screenshot of the firewall logs, but it shows that even after the interface IP was moved, traffic was still being received and processed on the old interface. 

Tags

Add new comment