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年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ