0Pricing
AWS for Backend Developers (EC2, S3, RDS, Lambda) · Ders

Güvenlik Grupları ve NACL'ler

Örnekler ve alt ağlar için gelen ve giden trafiği denetleyerek güçlü ağ düzeyi güvenliği uygulayın.

Güvenlik Grupları ve NACL'ler, CoddyKit'te ücretsiz bir AWS for Backend Developers (EC2, S3, RDS, Lambda) dersidir. Bu, 4 dersinin 2. dersidir. Aşağıdan dersin tamamını ücretsiz okuyabilir, sonra tarayıcıda yerleşik kod editörü ve 7/24 yapay zeka koçu ile uygulamalı olarak pratik yapabilirsin. Bu, AWS for Backend Developers (EC2, S3, RDS, Lambda) öğrenme yolunun bir parçasıdır ve ilerlemeniz web ve CoddyKit uygulaması arasında senkronize olur. AWS for Backend Developers (EC2, S3, RDS, Lambda) kursu toplamda 4 dersten oluşur.

Bu dersin bazı bölümleri henüz çevrilmemiş olup İngilizce olarak gösterilmektedir.

Guarding Your AWS Network

Securing your AWS resources is crucial. Think of your cloud environment as a house – you need good locks on the doors and windows.

In AWS, two key services act as virtual firewalls to protect your instances and subnets: Security Groups and Network Access Control Lists (NACLs).

Instance-Level Firewalls

A Security Group acts as a virtual firewall for your EC2 instances (or other resources like RDS instances or Load Balancers).

It controls inbound and outbound traffic at the instance level. When you launch an EC2 instance, you associate one or more security groups with it.

Security Group Rules

Security Groups have rules that specify which traffic is allowed to reach your instances (inbound) and which traffic your instances can send out (outbound).

  • Inbound Rules: Define what traffic can enter your instance.
  • Outbound Rules: Define what traffic can leave your instance.

By default, outbound traffic is usually allowed, but inbound traffic is denied.

Stateful Protection

A key characteristic of Security Groups is that they are stateful.

This means if you allow an inbound request (e.g., a web request to your server), the Security Group automatically allows the corresponding outbound response to flow back, even if there isn't an explicit outbound rule for it.

It remembers the connection's "state."

What are Network ACLs (NACLs)?

A Network Access Control List (NACL) acts as a virtual firewall for your subnets. It controls traffic entering and exiting the entire subnet.

Unlike Security Groups, NACLs are applied to subnets, meaning all instances within that subnet are subject to its rules.

NACL Rules Explained

NACLs have numbered rules that are evaluated in order, from lowest to highest. When a rule matches traffic, it's applied, and no further rules are evaluated.

NACLs can explicitly allow or deny traffic. Every NACL also has a default deny rule (*) at the end to catch any unmatched traffic.

Stateless Protection

Another key difference: NACLs are stateless.

If you allow inbound traffic, you MUST explicitly create a separate outbound rule to allow the response traffic to return. If you don't, the response will be blocked.

This means you need rules for both directions for any connection.

Key Differences at a Glance

  • Scope: SG for instances, NACL for subnets.
  • State: SG is stateful, NACL is stateless.
  • Rules: SG only allows, NACL allows AND denies.
  • Evaluation: SG evaluates all rules, NACL evaluates by rule number (lowest first).
  • Default: SG denies inbound, allows outbound. NACL allows all by default, then denies all with * rule.

Layered Security

It's best practice to use both Security Groups and NACLs together for layered security:

  • Use NACLs to broadly filter traffic at the subnet boundary, blocking known malicious IPs or port ranges.
  • Use Security Groups to provide fine-grained control for specific instances, allowing only necessary traffic to reach them.

This creates a robust defense-in-depth strategy.

Understanding the Layers

You have an EC2 instance in a public subnet. You want to allow SSH (port 22) and HTTP (port 80) traffic to reach it from anywhere, and block all other incoming traffic.

Securing Your Network

Great job! You've learned about two fundamental AWS networking security tools:

  • Security Groups: Stateful firewalls for instances, allowing specific inbound/outbound traffic.
  • Network ACLs (NACLs): Stateless firewalls for subnets, allowing/denying traffic based on rule order.

Understanding these helps you build a strong, multi-layered defense for your AWS resources. Next, we'll explore IAM Roles and Policies for fine-grained access control.

Sıkça Sorulan Sorular

“Güvenlik Grupları ve NACL'ler” dersi ücretsiz mi?

Evet — “Güvenlik Grupları ve NACL'ler” dersin tüm metni burada web'de ücretsiz olarak okunabilir. Etkileşimli olarak pratik yapmak (yerleşik kod editörü ve 7/24 yapay zeka koçu) ve AWS for Backend Developers (EC2, S3, RDS, Lambda) kursunun geri kalanını açmak için CoddyKit PRO'ya yükselt. AWS for Backend Developers (EC2, S3, RDS, Lambda) kursu toplamda 4 dersten oluşur.

“Güvenlik Grupları ve NACL'ler” dersinde ne öğreneceğim?

Örnekler ve alt ağlar için gelen ve giden trafiği denetleyerek güçlü ağ düzeyi güvenliği uygulayın. AWS for Backend Developers (EC2, S3, RDS, Lambda) ile uygulamalı kodu tarayıcıda doğrudan çalıştırarak pratik yaparsın ve 7/24 yapay zeka koçu dersi çalışırken sorularını yanıtlar.

AWS for Backend Developers (EC2, S3, RDS, Lambda) öğrenmeye başlamak için deneyim gerekli mi?

Önceden deneyim gerekmez. CoddyKit'te AWS for Backend Developers (EC2, S3, RDS, Lambda), başlangıçtan ileri seviyeye kadar yapılandırıldığı için buradan başlayabilir veya başından başlayıp kendi hızında ilerleme yapabilirsin. Bu, 4 dersinin 2. dersidir.

“Güvenlik Grupları ve NACL'ler” dersi ne kadar sürer?

Çoğu CoddyKit dersi yaklaşık 5–10 dakika sürer. Her biri kısa ve etkileşimli olduğu için sabit ilerleme yaparsın ve web ile uygulama arasında tam olarak bıraktığın yerden devam edebilirsin.

Bu AWS for Backend Developers (EC2, S3, RDS, Lambda) dersinde kod yazıp çalıştırabilir miyim?

Evet. Her AWS for Backend Developers (EC2, S3, RDS, Lambda) dersi yerleşik bir kod editörü içerir, bu sayede tarayıcıda gerçek kod yazıp çalıştırabilir ve anlık yapay zeka geri bildirimi alırsın — yerel kurulum gerekli değildir.

Bu kursun tüm dersleri

  1. VPC, Alt Ağlar ve Yönlendirme Tabloları
  2. Güvenlik Grupları ve NACL'ler
  3. IAM Rolleri ve Politikaları
  4. VPC Uç Noktaları ve Özel Bağlantı
← AWS for Backend Developers (EC2, S3, RDS, Lambda) Sayfasına Dön