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 年前298 查看次数
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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则