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 年前檢視次數 299 次
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 年前

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

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

回答問題指南