Skip to content

How can I block specific IP addresses by adding them to security groups

0

In my understanding, adding an IP to a security group allows the IP to access the service, not blocks it. However, according to the following press release from GNOME, it appears that they used the security group APIs to add IP addresses in order to block them. Could please explain how to do it?


https://foundation.gnome.org/2025/06/10/gnome-has-a-new-infrastructure-partner-welcome-aws/

This also comes with the ability to have access to the security group APIs which we can use to dynamically add IP addresses. This is critical when we have individuals or organizations abusing specific GNOME services with thousands of queries per minute.

asked a year ago220 views
2 Answers
0
Accepted Answer

Hello.

As you are aware, security groups are designed to allow traffic, so if you add an IP address, the added IP address will be able to communicate.
https://docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html

The rules of a security group control the inbound traffic that's allowed to reach the resources that are associated with the security group. The rules also control the outbound traffic that's allowed to leave them.

I read the article and I thought this meant adding IP addresses to allow.
In other words, I think the default is to not allow anything, and then the IP addresses that you want to allow to connect are added using some kind of script.

We now use AWS Elastic Load Balancing (ELB) instances (classic load balancers are the only type supported by OpenShift for now) as a traffic ingress for our OpenShift cluster. This reduces latency as we now operate within the same VPC instead of relying on an external load balancing provider. This also comes with the ability to have access to the security group APIs which we can use to dynamically add IP addresses. This is critical when we have individuals or organizations abusing specific GNOME services with thousands of queries per minute.

If you want to perform actions such as adding blocked IP addresses, you will need to configure a network ACL associated with the subnet.
If you are using ALB or CloudFront, you can also use AWS WAF.
https://docs.aws.amazon.com/vpc/latest/userguide/vpc-network-acls.html

EXPERT
answered a year ago
AWS
SUPPORT ENGINEER
reviewed a year ago
AWS
EXPERT
reviewed a year ago
0

I think the default is to not allow anything, and then the IP addresses that you want to allow to connect are added using some kind of script.

Oh, I got it. Thanks a lot!

answered a year ago
AWS
SUPPORT ENGINEER
reviewed 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.