How to configure ec2 instance for intranet only

0

I have an app that I want to host on AWS ec2 instance but I only need it to be accessed on my intranet, what changes I need to make in order to keep my IP only accessible for my intranet and block outside access. I've done some research and I think I need to create some security group but what things I need to know from my intranet to configure my instance. Do you have any suggestions or maybe some steps on how to restrict the access for my intranet?

1 Answer
2

Here are the steps you can follow:

  • Determine the IP address range of your intranet. You can check with your network administrator or use a tool like ipconfig or ifconfig to determine the IP address of your computer on the intranet. You can then use an IP address calculator to determine the range of IP addresses for your intranet.

  • Create a new security group or modify the existing security group associated with your EC2 instance.

  • Add an inbound rule to allow traffic only from your intranet's IP address range. For example, if your intranet's IP address range is 192.168.0.0/16, you can add an inbound rule to allow traffic from the source IP address range of 192.168.0.0/16.

  • Test the connectivity to your EC2 instance from a computer on your intranet to ensure that the inbound rule is working correctly.

You always have the option to host your Application inside a VPC, with the routes to the internal network for different subnets that you create.

profile picture
EXPERT
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions