Configuring Security Group
-
Log in to AWS Console and access EC2 Management console through the search box and search for “EC2”.
- Make sure you have selected the correct Region. Check the top left corner of the AWS Console and select the Region you need (Here we are selecting ap-southeast-1)

-
In the EC2 interface
- In the left menu, select Security Groups.
- Check the checkbox of the security group with the description “Enable RDP access from the Internet”
- In the area at the bottom of the screen, select the Inbound tab.
- Select Edit inbound rules.

-
Edit the Inbound configuration
- Click Delete next to the rule with Port Range 3391 to delete the rule
- Click Delete next to the rule with Port Range 443 to delete the rule
- For the RDP rule in the Source column, select “My IP” from the list (for the lab scope, you can select 0.0.0.0/0)
- For the ICMP rule in the Source column, select “My IP” from the list (for the lab scope, you can select 0.0.0.0/0)
- Select Save rules

- Complete security group configuration.

When securing your application, you need to ensure only open the ports that your application needs. In this step, you have removed ports 3391 and 443, because you will not use those ports in this lab. Additionally, you have locked access so that RDP and ICMP connections can only originate from your public IP address.