Skip to content

AWS Site-to-site VPN between two cloud providers

0

Setting up AWS Site-to-site VPN between two cloud providers (AWS and Scaleway) emphases some difficulties in networking and connectivity .

Both infrastructure have one public subnet and one private subnet with public nat gateway to ensure internet connectivity for private servers . I'm using the public server(bastion host) as customer gateway , but still i can't ping the servers from any side . ICMP , port 500 & 4500 UDP are open from both side .

Vendor: StrongSwan Routing table: Private routing table : propagation enable for vitual private gateway Routing option: Static If it's possible to help me troubleshoot this or guide me to fix the problem.

Thank you !

1 Answer
0

Let's go through some troubleshooting steps and potential solutions to help you resolve this issue.

Confirm VPN Connection Status: First, ensure that the VPN connection is actually established. In the AWS console, check the status of your VPN connection. It should show as "UP".

Verify Static Routes: Since you're using static routing, make sure you have correctly configured the static routes on both sides (AWS and Scaleway). The routes should point to the correct CIDR blocks of the remote networks through the VPN connection.

Check Security Groups and Network ACLs: Ensure that the security groups and network ACLs on both sides allow the necessary traffic. You mentioned ICMP, UDP 500, and UDP 4500 are open, but also check for the actual application traffic you're trying to pass through the VPN.

NAT Gateway Configuration: Verify that the NAT Gateway is correctly configured and associated with the private subnets on both sides. Ensure that the route tables for private subnets have a route to the NAT Gateway for internet access.

StrongSwan Configuration: Review your StrongSwan configuration on the bastion host (customer gateway). Make sure it's correctly set up with the right IP addresses, pre-shared key, and encryption settings matching the AWS VPN configuration.

Logging and Monitoring: Enable verbose logging on StrongSwan and check the AWS VPN logs (if available) to see if there are any specific errors or issues being reported.

Test Connectivity Step-by-Step:

First, try to ping from the bastion host to AWS VPN endpoint. Then, try to ping from a private instance in AWS to the bastion host. Next, attempt to ping from the bastion host to a private instance in AWS. Finally, try pinging between private instances on both sides. BGP Consideration: Although you're using static routing, consider if BGP (Border Gateway Protocol) might be a better option for your setup, as it can handle route updates more dynamically.

AWS Support: If you're still having issues, consider reaching out to AWS support. They can provide more specific guidance based on your exact configuration.

If you need more specific guidance, please provide the exact error messages you're seeing or more details about where in the network path the communication is failing. This will help in providing more targeted advice.

AWS

answered a year ago

  • Hello ,thank you for your response 1-VPN : Tunnels are both UP 2-Static routes: Checked 3-Security Groups: Checked 4- Nat: Checked 5- StrongSwan Configuration: checked i went through the pinging process already , but i did all the verification and steps again but still no connectivity.

    My goal is to ensure connectivity between private servers to implment replication betweenn cloud providers .

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.