DEV Community

Fenil Patel
Fenil Patel

Posted on • Edited on

AWS Security group in VPC

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

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay