Prioritize Tunnel Static Route over L2 physical route

Showing results for 
Show  only  | Search instead for 
Did you mean: 
Please sign in to see details of an important advisory in our Customer Advisories area.

Prioritize Tunnel Static Route over L2 physical route

L1 Bithead



I have an IPSec Tunnel between a remote central site and a PA-220. 


This tunnel advertises it's remote internal network in



A static route has been created in the PA with a metric > 1 (10), to route traffic in direction of, through the IPSec tunnel interface, tun.254.


This route is effectively working, as an ICMP trace shows traffic flowing from the tunnel local IKE Peer interface (172.X.X.X) to a remote network host (




Now here is where things gets problematic, we also have a physical network directly connected to the PA appliance, covering all the range of the subnet.


As such this creates by default a route with a metric of 0, which directs all traffic in direction of through the physical interface that is connected to that network, as you may observe in the 2nd row of the following table : 




As is included within, this rule (2nd row) takes precedence over my tunnel static route (3rd row), and therefore, the traffic that should be tunneled is routed through the physical interface (, and never find it's proper destination. 


In concrete terms, a local device that is behind the firewall would be unable to contact a remote host in the network (, because of this metric issue. 


I am aware this is keen to a design problem in the infrastructure, but I am just wondering how to engineer a solution to make such communication possible, a solution that doesn't involve changing existing addresses. 


Kindly yours

Please note you are posting a public message where community members and experts can provide assistance. Sharing private information such as serial numbers or company information is not recommended.

Cyber Elite
Cyber Elite

Try to change metric of second route to 10.

As /24 mask is more specific then this routing logic should work without issues.

Enterprise Architect, Security @ Cloud Carib Ltd
Palo Alto Networks certified from 2011



Would love to do just that, however that route is not static, it got added by the PA automatically after assigning an address to the corresponding interface. 


I am investigating the CLI as it seems impossible to edit in the UI. 



Cyber Elite
Cyber Elite

Policy Based Forwarding is checked before routing table.

If you have PBF to send into the tunnel then virtual router is not checked for IPs in that subnet.

Enterprise Architect, Security @ Cloud Carib Ltd
Palo Alto Networks certified from 2011
  • 3 replies
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!