DEV Community

Fenil Patel
Fenil Patel

Posted on

AWS

Security Group [ SG ] in AWS

Security Group is use for allowing network Traffic

Security group is also called as Virtual Firewall because it works as same as firewall

Security group configure using Ip address , Security Group Id , DNS , Port numbers , protocols .

Security groups are stateful means traffic which allow inside that's directly allow for outgoing

Filtering traffic network to access the resource

It's apply on the Ec2 Instance for filtering the traffic

*There are 2 types of Traffic *

Image description

*1. Inbound Traffic or Inbound Rules *

  • The Traffic that come inside your Application is called inbound traffic , It's majorly users that try to access your application .

  • It's also the specific traffic to reach your application.
    it includes Protocols [ TCP , UDP ] ,Port numbers , IP address

  • Where traffic is allowed to reach Ec2 Instance

*2. Outbound Traffic or Outbound Rules *

  • The Traffic that come outside from your application is called outbound traffic ,

Here's Example of Inbound and outbound Traffic

Image description

  • Controlling the traffic leaving by the app

Top comments (0)