How to add custom route via EC2?

0

I need to route certain traffic via site-to-site VPN. This trivial thing doesn't work for me in AWS, while works fine in my test on-prem environment. For instance:

  • I need to route traffic to 111.111.111.111/32 via 10.10.10.11
  • I tried both adding this route to 10.10.10.10, and adding it into the VPC routing table - no results. I.e. I. don't see packets to 111.111.111.111 coming to 10.10.10.11. (I checked both using network sniffer on 10.10.10.11 and using AWS Flow logs).

Any ideas? TIA, Vitaly

질문됨 2년 전1391회 조회
2개 답변
1

You should do this by routing to an AWS object that has the IP... i.e. the eni-XXXX that has the 10.10.10.11 IP assigned to it.

AWS route tables need to point objects like ENIs, TGWs, PCXs and not IP addresses.

답변함 2년 전
  • Thank you - I used ENI into VPC routing table. In fact, I found the issue - it was the default "Source/dest. check" == True in the ENI of my VPN box.

1

I found the issue - it was the default "Source/dest. check" == True in the ENI of my VPN box.

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠