Guided Walkthroughs

Configuration Packages

AI CloudAdvisor (Beta)

By Implementation

Service Control PoliciesConfig RulesAuto Remediation RulesConformance PacksAmazon GuardDutyAmazon InspectorAWS Security HubAWS Network FirewallRoute53 Resolver SecurityAmazon MacieS3 Bucket PoliciesCloudWatch Alarms and Event RulesAWS WAFAWS Secrets ManagerAWS Systems ManagerSecurity Groups & NACLsAWS KMSAWS SSOIAM PoliciesVPC Endpoint PoliciesCloudFormation Guard RulesLoad BalancersRDS Event SubscriptionsAWS Resource Access Manager (RAM)

By Service Protected

Reference Guides

Other

Security Groups & NACLs

Blacklist Port(s)

A network ACL that blacklist inbound and outbound traffic based on Port(s).

The template creates the network access list (NACL) into an existing VPC, and requires the following details: 

  • VPC ID: Provide the VPC ID to create the NACL in.
  • NACL Rules: Click on 'Customize Rules' and enter the missing rule information (Source IP, Port number, Protocol, and Action) depending on the NACL template. 

See Related Items section for configuration templates to create a new VPC.

Try out CloudAdvisor: Your AI-Powered Assistant for AWS Cloud

Items
5
Size
1.2 KB
Missing Parameters
AWSTemplateFormatVersion: "2010-09-09"
Description: ""
Resources:
  NetworkAcl:
    Type: "AWS::EC2::NetworkAcl"
    Properties:
      VpcId: ""
  IngressRule0:
    Type: "AWS::EC2::NetworkAclEntry"
    Properties:
      Egress: false
      NetworkAclId:
        Ref: "NetworkAcl"
      CidrBlock: "0.0.0.0/0"
      Protocol: "tcp"
      PortRange:
        From: ""
        To: ""
      RuleNumber: "100"
      RuleAction: "deny"
  IngressRule1:
    Type: "AWS::EC2::NetworkAclEntry"
    Properties:
      Egress: false
      NetworkAclId:
        Ref: "NetworkAcl"
      CidrBlock: "0.0.0.0/0"
      Protocol: "-1"
      RuleNumber: "200"
      RuleAction: "allow"
  EgressRule0:
    Type: "AWS::EC2::NetworkAclEntry"
    Properties:
      Egress: true
      NetworkAclId:
        Ref: "NetworkAcl"
      CidrBlock: "0.0.0.0/0"
      Protocol: "tcp"
      PortRange:
        From: ""
        To: ""
      RuleNumber: "100"
      RuleAction: "deny"
  EgressRule1:
    Type: "AWS::EC2::NetworkAclEntry"
    Properties:
      Egress: true
      NetworkAclId:
        Ref: "NetworkAcl"
      CidrBlock: "0.0.0.0/0"
      Protocol: "-1"
      RuleNumber: "200"
      RuleAction: "allow"
Parameters: {}
Metadata: {}
Conditions: {}

Actions



Customize Template

 
* Required field

Upgrade to Premium for More Features
Sign up

Guided Walkthroughs
Step-by-step configuration wizards for your environment
Dedicated Security Account
AWS Backup Strategy
VPC Connectivity Setup
Automated Patching
All Guides
Configuration Packages
Pre-built packages for common configuration
Common SCPs
CloudFormation Guard Rules
Auto Remediation Rules
IAM Monitoring & Compliance
All Packages
Automated Assessments
  • 350+ security checks
  • Well-architected reviews
  • Detailed compliance reports
  • Remediation templates
  • Email summaries
  • Learn more