How to allow tracepath (Unix/Linux utility)

How to allow tracepath (Unix/Linux utility)

41643
Created On 09/26/18 13:49 PM - Last Modified 06/15/23 21:56 PM


Resolution


Background

 

tracepath is a Unix/Linux-based utility similar to traceroute. However, the differences between the two are

 

  1. tracepath does not require users to have root privilege.
  2. tracepath uses (and only uses) UDP with random high port. traceroute (on Unix/Linux) by default also uses UDP with range destination port 33434-33534, but has an option to switch to ICMP (Windows traceroute always use ICMP).

 

Note: This is applicable for PAN-OS 5.0 or later.

 

Detail

 

If a security rule only allows application "traceroute" and service "application-default" and there is no other subsequent rule to permit tracepath traffic then its UDP packet will get dropped.

 

Security PolicyTraffic Log
security_policy_tracepath_default.pnglog_tracepath_default.png

Explanation: This is because tracepath uses UDP with random high port. If a service is set to "application-default", tracepath could get denied because in App-ID signature the standard port range for traceroute only includes icmp/any and udp/33434-33534.

 

 

Solution

There are two possible solutions:

 

1)  Configure the security rule to allow application "traceroute" and service "any".  You will also need to allow application "icmp" and "ping" as well because these two are application dependency for traceroute.

 

Security PolicyTraffic Log
security_policy_tracepath_any.pnglog_tracepath_any.png

 

 

 

2) Instruct users to run tracepath with a specific "starting" destination port 33434. Note in the traffic log, the destination port increments from 33434 for each hop. Again, allowing application icmp & ping is still needed due to the traceroute application dependency.

 

Security PolicyTraffic Log
security_policy_tracepath_default.pnglog_tracepath_option.png

 

 

See also

Can a Policy be Configured to Allow Traceroute?



Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClqBCAS&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Choose Language