Reputation: 43
I've been trying to launch an EC2 instance that has the following requirements:
Initially, my thought is that the instance should be launched in a subnet that has its route table entry 0.0.0.0/0 to the IGW removed.
However, when that route table entry was removed, our RDP connection into the EC2 instance fails.
My next try was to remove all outbound rules from the instance's security group. This stops all external internet access for the instance for good, however the instance is also no longer able to access anything on the intranet.
Is it possible for an instance to still access resources on the local network, but have no routable access out to the internet?
Thanks all!
Upvotes: 0
Views: 312
Reputation: 270039
It appears that your requirements are:
To achieve this, you should:
So, if the VPC has a CIDR of 10.0.0.0/16
, then put this CIDR range in the Outbound security group rule.
Upvotes: 1