I want to only ALLOW ssh and port 8000 connection on my EC2 machine in AWS.
I set my inbound and outbound connection to ALLOW port 22 and 8000 (see pictures below).
Inbound:
Outbound:
But When I try to curl/SSH into the machine it does not works, unless I set ALL_TCP port to be opened on the outbound connection (like in the picture below).
Of course, I can open the ALL TCP Port but I do this for the sake of experimenting with the NACL.
Why?