Port forwarding for HTTP access (Amazon Web Server)

For today’s post, we will be talking about how to port forward when using the Amazon EC2 service. Be it hosting of a website or allowing other services to bypass the firewall, port forwarding or allowing inbound access is a must. Otherwise, firewalls may reject connections by blocking ports or filtering packets if it is not configured properly.

Firstly, go into the Amazon Web Server (AWS) console website.

Next, take a look at the security group of your instance (Virtual Machine) (Figure 1). For example, we want to change the security setting of the instance of IP address, 13.229.114.255, its security group is launch-wizard-2.

aws

(Figure 1)

Next, go into the Security Groups in the NETWORK & SECURITY section on the left panel of the website. Select the security group of the instance you want to change. Click on edit in the In-bound section at the bottom of the page (Figure 2).

aws2

(Figure 2)

Click on new rules and select the type of protocol/service/daemon you will be using, TCP or UDP, port range, the source is usually left as custom, address 0.0.0.0/0 means for everyone. Finally, click Save.

Next, Remote Desktop Protocol (RDP) into your remote Virtual Machine.

Next, go into your Windows Firewall with Advanced Security window, click on Inbound Rules. Click on New Rules > Port > TCP or UDP and port number > Allow the connection (depends on your requirement) > select all (depends on your requirement again) > give it a name and description then finally click finish (Figure 3).

aw3

(Figure 3)

You are now able to access from the outside world into your Virtual Machine through that port.

I hope this article will be useful to you. Feel free to leave any comments below. You may also send me some tips if you like my work and want to see more of such content. Funds will mostly be used for my boba milk tea addiction. The link is here. 🙂

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.