eks not routing through another peer vpc's VPN gateway.

0

Hi, We have two VPCs. one is for EC2 and another is for EKS. We are also using another cloud provider for some other services which is connected through OPEN VPN Gateway created in EC2 instance. Since we have a peering connection between EC2 and EKS so they are also working fine. so the connection is something like this.

EKS VPC <------> EC2 VPC <-----> EC2 VPN<----> Other cloud provider

in this case, everything is working as expected except for one thing.

Our EKS VPC can not reach "Other Cloud Provider" through "EC2 VPN" we added the route in EKS VPC routing table and tried tcpdump on VPN instance. however we notice there is no traffic coming on "EC2 VPN" as transit traffic. But EKS Pods can ping the EC2 VPN interface and i can see the ICMP traffic through TCPDUMP as well. So can you guys please help what we are missing and why the traffic is not going through our OpenVPN gateway even after adding the route in VPC? any help will be highly appreciated.

Thanks, Yousuf

3 個答案
1
已接受的答案

That is considered as transitive routing or edge-to-edge routing which is not supported via VPC Peering connection.

See more information here.

See this section:


VPC peering limitations

Edge to edge routing through a gateway or private connection

  • If VPC A has a VPN connection to a corporate network, resources in VPC B can't use the VPN connection to communicate with the corporate network.
profile pictureAWS
專家
已回答 1 年前
  • Hi Tushar,

    Thank you for sharing this information. So would you please share what is the right solutions to overcome this limit?

    Thanks, Yousuf

0

Hi Tushar,

Thank you for sharing this information. So would you please share what is the right solutions to overcome this limit?

Thanks, Yousuf

Yousuf
已回答 1 年前
  • You would need VPN from EKS VPC to the other cloud provider.

0

Thank you Tushar, will do this.

Yousuf
已回答 1 年前

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

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

回答問題指南