Reputation: 59
If spinned up an EC2 instance in a vpc, I removed all outbound rules for security group of EC2, when I ping any public domain like google.com, Facebook.Com from server, still its getting the ip address of domain(similarly pinging Google.com {ipaddress} with 32 bytes of data). From where does instance gets ip address of domain and on which port? even though I blocked all outbound rules of security group?
Upvotes: 1
Views: 2951
Reputation: 78693
AWS security groups and network ACLs don't filter traffic to or from:
The Amazon-supplied VPC DNS server is at the VPC subnet CIDR base +2 address (e.g. 10.0.0.2 if your VPC subnet CIDR is 10.0.0.0).
See Internetwork traffic privacy in Amazon VPC.
Upvotes: 3