Create a Security Group for Linux Instance

Step 1: Access AWS Management Console

  1. Go to AWS Management Console.
    • Navigate to VPC.
    • Click on Security Group.

create vpc for linux instance

Step 2: Create a Security Group

  1. In the Create security group interface:
    • Security group name: Enter Linux-SG.
    • Description: Enter Security group for Linux instance.
    • VPC: Select the recently created Linux-vpc.

create vpc for linux instance

Step 3: Configure Inbound Rules

  1. Add seven Inbound rules by clicking Add rule and configuring as shown below:

    • SSH, port 22: To connect via PuTTY.
    • All ICMP-IPv4
    • All ICMP-IPv6
    • HTTP, port 80
    • HTTPS, port 443
    • MySQL/Aurora, port 3306: Used for Database MySQL.
    • Custom TCP, port 5000: To run Node.js application.

    Note: When creating a rule, consider the following:

    • Name: The name for the security group.
    • Protocol: The protocol to allow (e.g., TCP, UDP, ICMP).
    • Port range: Range of ports to allow.
    • ICMP type and code: For ICMP protocols.
    • Source/destination: IP addresses or CIDR blocks.
    • Description: Optional description for the rule.

create vpc for linux instance

  1. Configure Outbound rules:
    • Fill in the tag section with the key and value.
    • Select Create security group.

create vpc for linux instance

create vpc for linux instance