AWS Site-to-Site VPN ping working, TCP not

0

I want to establish a site-to-site IPsec VPN connection between an AWS EKS-Kubernetes-Cluster and a server from a different provider using AWS Site-to-Site VPN. Pings get through the VPN, but TCP traffic does not.

The server on the other end runs Ubuntu 20.04 and uses libreswan. The configuration file from AWS for the VPN for openswan has been altered in two ways (that I think should not matter):

  • auth=esp has been commented out as libreswan would not start otherwise (libreswan 3.29)
  • The VPN has been configured to use VTI. When sending a HTTP request from the AWS site: tcpdump on the libreswan-site shows SYN arriving and SYN-ACK being sent back while tcpdump on the EC2-instance (and in a pod as well) only registers SYN.

All incoming traffic has been allowed in security groups and ACLs etc.

I have set up SNAT as recommended here and have confirmed that SNAT works using traceroute. I think because of SNAT it should not matter anymore that EKS is used in this VPC for this issue.

Talinx
已提問 2 年前檢視次數 515 次
1 個回答
0

My guess here is that the non-AWS side of the VPN is doing some sort of NAT. That's a really vague answer but if you're getting one-way communications or odd combinations of things working that's usually the case.

As per your answer: You're using SNAT and (again - a guess) I suspect that is the culprit here.

profile pictureAWS
專家
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南