EC2 instance doesn't have access to internet

0

Hello everybody!
I have a VPC with EC2 windows instance which is located in a private subnet. I have a NAT gateway with EIP which is located in a public subnet and an internet gateway which is attached to the vpc. Also I have a virtual private gateway which is connecting my local network with the windows instance. I have one (main) route table with 3 routes (the local target, 0.0.0.0/0 pointing to NAT gateway and a route to my local network which is accessed via virtual private gateway). The vpn tunnel is working fine and I am able to connect to my windows instance via RDP over the VPN tunnel. The problem is that I don't have access to internet from that instance. I can make a route with the destination 0.0.0.0/0 pointing to the virtual private gateway but I don't want to route all the traffic via the VPN to avoid additional charges. ACLs and SG allows all inbound and outbound traffic. Please help me to diagnose the problem.

Edited by: Altaran on Jan 10, 2020 6:22 AM

Altaran
질문됨 4년 전274회 조회
2개 답변
0

figured this out. added another route table and add a route to 0.0.0.0 via IGW and it worked for me

Altaran
답변함 4년 전
0

Hi Altaran,

It is great to hear that you were able to solve the issue. Please do not hesitate to let us know if you need any further help.

Regards,
awstomas

AWS
답변함 4년 전

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

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

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

관련 콘텐츠