1 Answers
Hi Carlos,
Taking a look at the Security Group default rules. In general you only need to specify Inbound traffic the outbound allows all posts to all destinations. Read the doco slowly to see if it proves you right or wrong.
google: AWS security group outbound default
https://docs.aws.amazon.com/vpc/latest/userguide/VPC_SecurityGroups.html
.
I will copy the details to the list of questions needed in updating. I can check it in detail and make use it is up to date at the same time.
Rusty
Moderator & Coach
Indeed, that’s right. I was not considering default rule which I should. Reading again, it makes perfect sense.
I would add this detail to the explanation to avoid further misunderstanding. Thx
Hi Carlos, I believe you are correct. When Security Groups are created the default outbound rules are set to allow all traffic and if you haven’t changed the default then you would not require a specific rule to allow outbound traffic on port 5432 for the MyWebSG. Best practice would suggest removing the default outbound rule though and explicitly enabling only the ports and destinations required, in which case answer B above would be correct, adding the outbound rule to the MyWebSG and an inbound rule on MyDbSG for port 5432 with the respective targets.