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
demandé il y a 4 ans301 vues
2 réponses
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
répondu il y a 4 ans
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
répondu il y a 4 ans

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions