🌐Whitelist an IP Address in Your EC2 Security Group
To provide access of your ui to a specific IP address, follow the steps below to update your EC2 security group settings:
Step 1: Locate Your EC2 Instance
Log in to the AWS Management Console.
In the search bar at the top, type EC2 and select it from the list of services.
In the EC2 Dashboard, click "Instances (running)" in the left-hand menu.
Find and select your EC2 instance by checking the box next to it.
Step 2: Access the Security Group
Once you select your instance, the Details panel will appear at the bottom of the page.
Navigate to the Security tab.
Under Security Details, click the linked name of the Security Group (shown in blue).
Step 3: Add the IP Address
In the Security Group details page, in the "Inbound rules" tab, click the "Edit inbound rules" button.
Click "Add Rule" and add the following rules in order to provide/gain access to your ui -
SSH
22
xx.xxx.xxx.xxx/32
Custom TCP
4200
xx.xxx.xxx.xxx/32
Custom TCP
3000
xx.xxx.xxx.xxx/32
HTTPS
443
xx.xxx.xxx.xxx/32
HTTP
80
xx.xxx.xxx.xxx/32
Note: Visit this site to know your IP address.
Step 4: Remove the Old/Unwanted IP Address
In the same Inbound rules section, identify the IP address you want to remove.
Click the Delete icon next to that entry.
Review the remaining rules to ensure only the correct IP addresses are listed.
Click "Save rules" to apply the changes.
The removed IP address will no longer have access, and only specified IP address is now whitelisted and will be able to access your ui.
Last updated