How to decrypt ESP IPSEC packet using wireshark

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
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.

 

6.png

 

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

 

9.png

 

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

 

2.png

 

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

 

ESP Packet with VTI IPsec

 

8.png

 

ESP Packet with GRE Over IPsec

 

7.png

 

0 REPLIES 0
  • 1575 Views
  • 0 replies
  • 1 Likes
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!