Search code examples
amazon-web-servicesaws-security-group

How to add my public IP address as an inbound rule?


I have set a VPC that has Cassandra DB nodes, I am trying to add my IP address to some tests, but I can't add my IP address:

Edited the source as:

10.0.0.0/16, xx.xxx.xx.xx/0

where xx.xxx.xx.xx is my public IP address, but I got error:

The source must be a valid CIDR (e.g. 0.0.0.0/0) or the ID of another security group.

So, how can I add my IP address to the inbounds rules?


Solution

  • The issue is with your xx.xxx.xx.xx/0 /0 is not a valid CIDR if you just want to use your IO address use it like this xx.xxx.xx.xx/32 and it will work.

    For reference http://doc.m0n0.ch/quickstartpc/intro-CIDR.html