How to decrypt ESP IPSEC packet using wireshark

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.

How to decrypt ESP IPSEC packet using wireshark

L2 Linker

Sometimes you want to see how the tunnel mode encapsulation occurs, especially when using GRE over IPsec and VTI IPsec and you would like to decrypt the ESP or IPSEC packet to see how packet is encaspulated on both scenarios (GRE over IPsec and VTI IPsec, especially for studying or may be for troubleshooting.


Below how to do it:


Configue the ESP encryption with null in the IPsec Crypto Profile.




Run the packet capture on PaloAlto to capture the PCAP File.




Open wireshark. right-click on the ESP packet, in this scenario the ESP SA from the source to the destination Under the Protocol Preferences, check the the option "Attempt to Detect/Decode NULL Encrypted ESP Payload" as shown below.




Finally you can see the ESP Packet payload in clear text:


ESP Packet with VTI IPsec




ESP Packet with GRE Over IPsec




  • 0 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!