0% found this document useful (0 votes)
16 views1 page

Block an IP address

To block a single IP address in an AWS security group, sign in to the AWS Management Console and navigate to the EC2 Dashboard. Select the relevant security group, edit the inbound or outbound rules, add a new rule specifying the IP address to block, and save the changes. Finally, verify that the rule has been correctly added to the security group.

Uploaded by

saiakkina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views1 page

Block an IP address

To block a single IP address in an AWS security group, sign in to the AWS Management Console and navigate to the EC2 Dashboard. Select the relevant security group, edit the inbound or outbound rules, add a new rule specifying the IP address to block, and save the changes. Finally, verify that the rule has been correctly added to the security group.

Uploaded by

saiakkina
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

To block a single IP address (e.g., 10.20.30.

40) using an AWS security group,


you'll need to create or modify the inbound or outbound rules of the security group
associated with your AWS resource (such as an EC2 instance). Here's how you can do
it:

1. **Sign in to the AWS Management Console:**


Go to https://aws.amazon.com/ and sign in to the AWS Management Console.

2. **Navigate to the EC2 Dashboard:**


From the services menu, select "EC2" to navigate to the EC2 Dashboard.

3. **Select the Security Groups:**


In the EC2 Dashboard, select "Security Groups" from the navigation pane on the
left.

4. **Choose the Relevant Security Group:**


Choose the security group that is associated with the instance you want to block
the IP address for.

5. **Edit Inbound or Outbound Rules:**


Depending on whether you want to block the IP address for inbound or outbound
traffic, select the appropriate tab (Inbound or Outbound).

6. **Add a New Rule:**


Click on "Edit" or "Add Rule" to add a new rule.

7. **Define the Rule:**


For the rule, set the following parameters:
- Type: Choose the protocol (e.g., "All traffic" or specific protocols like
"SSH", "HTTP", etc.).
- Protocol: Select the protocol type (e.g., "TCP", "UDP", "ICMP").
- Port Range: Specify the port range if applicable.
- Source or Destination: Enter the IP address or range you want to block. In
this case, enter "10.20.30.40" or "10.20.30.40/32" if you want to block a single IP
address.

8. **Save Changes:**
After defining the rule, save the changes to the security group.

9. **Verify:**
Verify that the rule has been added correctly by checking the inbound or
outbound rules of the security group.

You might also like