Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You may not specify a referenced group id for an existing IPv4 CIDR rule. prompt when editing the Inbound rule in AWS Security Group

In AWS EC2, I start a Classical Load Balancer in front of EC2 instance (security group of EC2 instance is launch-wizard-3). i want to change the inbound rule of Security Group of EC2 instance . A security group for Classical Load Balancer (it's name is my-first-load-balancer-sg) was also started. when i am changing source of an inbound rule of launch-wizard-3 to the my-first-load-balancer-sg, following error is prompted. I tried many times to solve it, but i couldn't.

the error- You may not specify a referenced group id for an existing IPv4 CIDR rule.

the inbound rule as follows

(type-HTTP, protocol-TCP, port rang-80, Source type- Custom, Source- my-first-load-balancer-sg(what i want to place) )

Please help me~! Thanks!

like image 711
sajeewaI- Avatar asked Jul 24 '21 14:07

sajeewaI-


People also ask

Can AWS security groups on one AWS account reference security groups in another?

To reference a security group in another AWS account, include the account number in Source or Destination field; for example, 123456789012/sg-1a2b3c4d . You cannot reference the security group of a peer VPC that's in a different Region. Instead, use the CIDR block of the peer VPC.

When you specify a security group as the source or destination for a rule The rule affects?

10.10, and another security group that allows access to port 22 from everyone, everyone will have access to port 22 on the instance. Show activity on this post. When you specify a security group as the source or destination for a rule, the rule affects all instances associated with the security group.

Which security group rules allow the private EC2 instance to receive the return traffic when it pings the test instance?

Go to the security group of the EC2 instance and edit the inbound rule allow 0.0. 0.0/0 for ICMP. It will work.

What is the inbound rule for Security Group?

The following table describes the inbound rule for a security group that enables associated instances to communicate with each other. The rule allows all types of traffic. The ID of the security group. The ping command is a type of ICMP traffic. To ping your instance, you must add the following inbound ICMP rule.

What Security Group rules should I set up for my instance?

For example, an instance that's configured as a web server needs security group rules that allow inbound HTTP and HTTPS access. Likewise, a database instance needs rules that allow access for the type of database, such as access over port 3306 for MySQL.

How do I restrict outbound traffic from an Amazon Redshift cluster?

For the source IP, specify one of the following: The default port to access an Amazon Redshift cluster database. You can optionally restrict outbound traffic from your database servers. For example, you might want to allow access to the internet for software updates, but restrict all other kinds of traffic.


3 Answers

I solved this from deleting the existing rule and creating a new rule

like image 102
sajeewaI- Avatar answered Oct 17 '22 18:10

sajeewaI-


AWS Database security group configuration

Please follow the below process

like image 3
sankalp Avatar answered Oct 17 '22 17:10

sankalp


Simply delete and Add a new rule with the options you require.

like image 2
Blastiq Avatar answered Oct 17 '22 17:10

Blastiq