How VPN test commands work

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements

Content translations are temporarily unavailable due to site maintenance. We apologize for any inconvenience. Visit our blog to learn more.

How VPN test commands work

L3 Networker

What happens behind the scenes when you run..

 

test vpn ike-sa gateway <name>

 

or

 

test vpn ipsec-sa tunnel <name>

 

Is there a debug which will show you the test packets sent/received?

 

2 accepted solutions

Accepted Solutions

Cyber Elite
Cyber Elite

test vpn ike-sa gateway <name>

Will negotiate VPN Phase 1 with VPN Peer.

 

test vpn ipsec-sa tunnel <name>

Will negotiate VPN Phase 1 and if this is successful then Phase 2 with VPN Peer.

 

If you troubleshoot VPN and try to initiate traffic from workstation they you have to have routing and firewall rules correct.

Using those commands help you to verify if underlying VPN is set correctly without checking routing or security policies.

 

If you use those commands then your firewall is initiator. If VPN config does not match then responder does not tell you what is wrong so not much troubleshooting you can do at initiator side.

 

If Palo is responder then you can take packet capture to troubleshoot Phase 1 settings and ike pcap to troubleshoot Phase 2.

https://live.paloaltonetworks.com/t5/Management-Articles/How-to-Troubleshoot-IPSec-VPN-connectivity-...

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

View solution in original post

L6 Presenter

In addition to the @Raido_Rattameister comment, VPN  the only effective way to troubleshoot is to check the logs from the responder side. Responder side will say why VPN is failing and record everything into the log file but it will not send this info to the initiator. This is per design. Similar we can compare when we submitting our credentials to the other side. We only see a message "your username or password is incorrect". But another side has all records exactly why.

View solution in original post

2 REPLIES 2

Cyber Elite
Cyber Elite

test vpn ike-sa gateway <name>

Will negotiate VPN Phase 1 with VPN Peer.

 

test vpn ipsec-sa tunnel <name>

Will negotiate VPN Phase 1 and if this is successful then Phase 2 with VPN Peer.

 

If you troubleshoot VPN and try to initiate traffic from workstation they you have to have routing and firewall rules correct.

Using those commands help you to verify if underlying VPN is set correctly without checking routing or security policies.

 

If you use those commands then your firewall is initiator. If VPN config does not match then responder does not tell you what is wrong so not much troubleshooting you can do at initiator side.

 

If Palo is responder then you can take packet capture to troubleshoot Phase 1 settings and ike pcap to troubleshoot Phase 2.

https://live.paloaltonetworks.com/t5/Management-Articles/How-to-Troubleshoot-IPSec-VPN-connectivity-...

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

L6 Presenter

In addition to the @Raido_Rattameister comment, VPN  the only effective way to troubleshoot is to check the logs from the responder side. Responder side will say why VPN is failing and record everything into the log file but it will not send this info to the initiator. This is per design. Similar we can compare when we submitting our credentials to the other side. We only see a message "your username or password is incorrect". But another side has all records exactly why.

  • 2 accepted solutions
  • 5322 Views
  • 2 replies
  • 0 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!