AWS

How to Whitelist IP on AWS

To whitelist, an IP means that you are giving access to that IP for all the traffic. In AWS, it can be done using the security group rules. You can add a rule to whitelist any IP address of your choice. On the other hand, if you want to blacklist an IP address, you need to visit the network ACL service in AWS. Here, we’ll discuss only whitelisting of an IP address.

Let’s start with how to whitelist an IP on AWS.

Whitelist an IP on AWS

To whitelist an IP on AWS, you need to click the “Security Groups” button from the left menu on the “EC2” page. Then select the security group to whitelist an IP address. “Details” related to the security group will appear under it:

Click on the “Inbound rules” section and from there, simply click on the “Edit inbound rules” button.

On the “Edit inbound rules” page, you have to perform a few tasks mentioned below:

  • Click on the “Add rule” button
  • In the drop-down menu of the “Type” section, you can allow traffic
  • Select “Custom” from the “Source” option to add a specific IP address
  • Click on the “Save rules” button to whitelist your IP:

After saving the added rule, you will be directed back to the “Security Groups” page. Here,  you can see your rule has been added to the “Inbound rules” section:

You have successfully added an IP address to the whitelist on AWS.

Conclusion

IP whitelisting means giving your domain access to trusted IP addresses. In AWS, you can whitelist an IP using the security groups. For that click on the “Edit inbound rules” button. A new rule can be added to whitelist any custom IP address. By configuring these inbound rules, you can also select what traffic to allow in the newly whitelisted IP address.

About the author

Abdul Mannan

I am curious about technology and writing and exploring it is my passion. I am interested in learning new skills and improving my knowledge and I hold a bachelor's degree in computer science.