NetOpsT

Security Rule Generator

Create multiple cloud firewall or security group rules with CLI, Terraform and JSON output.

Runs locally

CLOUD / SECURITY

Security Rule Generator

Firewall rule builder

Create and review several ports and sources together.

DIRECTION
Quick add
DESCRIPTIONPROTOCOLPORT FROMPORT TOIPV4 CIDRIPV6 CIDR
aws ec2 create-security-group --group-name web-security --description "Managed by NetOpsT" --vpc-id vpc-0123456789abcdef0 --region eu-west-1

# Save the returned GroupId as SECURITY_GROUP_ID

aws ec2 authorize-security-group-ingress --group-id $SECURITY_GROUP_ID --ip-permissions '[{"IpProtocol":"tcp","FromPort":443,"ToPort":443,"IpRanges":[{"CidrIp":"0.0.0.0/0","Description":"allow-https"}],"Ipv6Ranges":[{"CidrIpv6":"::/0","Description":"allow-https"}]}]' --region eu-west-1

aws ec2 authorize-security-group-ingress --group-id $SECURITY_GROUP_ID --ip-permissions '[{"IpProtocol":"tcp","FromPort":22,"ToPort":22,"IpRanges":[{"CidrIp":"10.0.0.0/8","Description":"allow-ssh"}]}]' --region eu-west-1
Security noteRules generated here allow traffic. Keep sources narrow, review IPv6 separately and confirm priorities. AWS Security Groups do not support deny rules.

Cloud TOOL

Security Rule Generator

Create multiple cloud firewall or security group rules with CLI, Terraform and JSON output.

When to use this tool

Use it to document and generate repeatable inbound or outbound access rules.

Use it in three steps

  1. Select a provider and direction, add rules, then copy the required output format.
  2. Review the calculated values against your environment and its requirements.
  3. Copy or document the result only after validating it for production use.

Related Cloud tools