A security group acts as a virtual firewall for your instance to control inbound and outbound traffic.
To whitelist IPs, login into the AWS Management Console.
Select the right AWS Region top right.
- Click top left on Services and go to Compute --> EC2 --> Instances and click on the Security Group.
Click on the button Edit inbound rules to manage the rules.
To add a new Rule click on the button Add Rule.
In the table below, you find the most common services with its ports.
For security reasons, make sure to allow only whitelisted IPs access to these services.
- Click on the button Save rules to apply the changes.