I want to allow/disallow only certain application protocols like HTTP, mongodb, ampq, etc on my running EC2 instance.
I could see that in we can change inbound and outbound rules from security groups. However, it could only open or close TCP ports(Transport layer protocol), but not restrict an application layer protocol.
I seek help for 2 things :
- Understand if on cloud you can actually allow/restrict application
protocols by security groups. Or is this something I should take care with my app itself? - Say I have some mongodb instance running on my EC2. Would restricting inbound mongodb:// protocol actually make my mongodb and EC2 more secure?