Setting up an IPSEC VPN Tunnel on AWS

L0 Member

Setting up an IPSEC VPN Tunnel on AWS

Hi Palo Alto community,


I've been trying to follow this guide to set up a static IPSEC tunnel on AWS between two VPCs but having a bit of trouble:


This is my network diagram:


range drawing palo alto.png



This is my configuration for the firewall in VPC A:



This is my configuration for the firewall in VPC B:



I had also added some firewall rules that weren't in the screenshots according to the guide but that didn't help turn the IPSEC tunnel status green either.

I also ran the command show vpn flow in the CLI but the state remains "init" on the tunnel:

show vpn flow.PNG


Any suggestions would be appreciated, pretty new to using PA as I've been using mostly cisco/pfSense up to this point, thanks!

L7 Applicator

Re: Setting up an IPSEC VPN Tunnel on AWS


Check the logs to see if the packets are getting from one pan to the other. If not it could be the AWS ACL firewall or your security groups are preventing the communication.


Hope that helps.

L0 Member

Re: Setting up an IPSEC VPN Tunnel on AWS

So the support team resolved it.. it was due to the tunnel endpoint sitting on the same subnet as the private subnet on VPC 1.. apparently you need some subnet indicator on the or it won't know where the gateway is, even if you hardcode the ARP. We solved the issue by making another subnet at and used that for E1/1 in VPC 1.


I also needed to setup static routing config on the virtual router for E1/1.


Finally, we needed to run the following two commands to manually initiate the tunnel.

test vpn ike-sa gateway [ike gateway name]

test vpn ipsec-sa tunnel [tunnel name]

Tags (1)
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 Live Community as a whole!

The Live Community thanks you for your participation!