0Pricing
Cloud & IT Cert Prep · Lesson

Micro-Segmentation and Software-Defined Perimeters

Design network micro-segments that limit lateral movement and learn how software-defined perimeters make internal resources invisible to unauthorized users.

Micro-Segmentation and Software-Defined Perimeters is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Why Flat Networks Are Dangerous

In a flat network, once an attacker gains access to one endpoint, they can communicate freely with almost every other system. This enables rapid lateral movement — the technique attackers use to pivot from a compromised workstation to sensitive servers, domain controllers, and data stores. Micro-segmentation directly addresses this by dividing the network into small, isolated zones.

What Is Micro-Segmentation?

Micro-segmentation divides the network into fine-grained segments where workloads communicate only with explicitly authorized peers. Unlike traditional VLANs that segment at a coarse level, micro-segmentation applies policies at the workload or application level — often down to individual containers or virtual machines. Traffic is denied by default, and only permitted flows are explicitly allowed.

East-West vs North-South Traffic

Network traffic flows in two directions. North-south traffic flows between users/internet and internal resources (vertical). East-west traffic flows between workloads inside the data center (horizontal). Traditional firewalls primarily inspect north-south traffic. Micro-segmentation focuses on east-west traffic — the path attackers use to move between internal systems after initial compromise.

# Example traffic flow policy:
# ALLOW: web-tier -> app-tier on port 8080
# ALLOW: app-tier -> db-tier on port 5432
# DENY:  web-tier -> db-tier (direct DB access blocked)
# DENY:  db-tier -> internet (no outbound from DB)
# DENY:  workstation -> db-tier (users cannot reach DB directly)

Software-Defined Networking (SDN) Foundations

Software-Defined Networking (SDN) separates the control plane (decisions about where traffic goes) from the data plane (actual forwarding of packets). A centralized SDN controller programs network devices with forwarding rules, enabling micro-segmentation to be implemented in software without reconfiguring physical switches. This makes policy changes fast, consistent, and auditable across large environments.

Software-Defined Perimeters (SDP)

A Software-Defined Perimeter (SDP) makes network resources invisible by default — they do not respond to unauthenticated connection attempts. Users first authenticate to an SDP controller, which checks identity and device posture, then dynamically creates an encrypted tunnel only to the specific resources they are authorized to access. This eliminates network-level reconnaissance and lateral movement paths.

Zero Trust Network Access (ZTNA)

Zero Trust Network Access (ZTNA) is the product category that implements SDP concepts. Unlike a VPN that grants broad network access, ZTNA grants access to specific applications only. The user connects to a ZTNA broker that authenticates identity and device, then proxies connections to the target app. Popular implementations include Cloudflare Access, Zscaler Private Access, and Palo Alto Prisma Access.

Implementing Micro-Segmentation in Cloud

Cloud platforms offer native micro-segmentation tools. AWS Security Groups allow precise inbound and outbound rules per EC2 instance. Azure NSGs (Network Security Groups) apply at the subnet or NIC level. Google VPC Firewall Rules can be scoped to tags. All operate on an implicit-deny model — only explicitly permitted traffic flows, making them natural building blocks for micro-segmentation in cloud environments.

# AWS Security Group rule example (conceptual)
# Web tier security group:
#   Inbound: TCP 443 from 0.0.0.0/0 (internet HTTPS)
#   Inbound: TCP 80 from 0.0.0.0/0 (HTTP, redirect to HTTPS)

# App tier security group:
#   Inbound: TCP 8080 from web-tier-sg only

# DB tier security group:
#   Inbound: TCP 5432 from app-tier-sg only
#   NO inbound from internet or web tier

Service Meshes for Container Micro-Segmentation

In containerized environments, service meshes like Istio and Linkerd implement micro-segmentation through mutual TLS (mTLS) between pods. Every service-to-service call is authenticated and encrypted, and authorization policies explicitly define which services may communicate. This extends Zero Trust east-west controls all the way down to individual microservices in Kubernetes clusters.

# Istio AuthorizationPolicy example (conceptual)
# Allow only checkout service to call payment service:
# source.namespace: 'shop'
# source.principal: 'cluster.local/ns/shop/sa/checkout'
# to operation: host 'payment.shop.svc.cluster.local'
# effect: ALLOW
# All other traffic to payment service: DENY (default)

Network Segmentation vs Micro-Segmentation

Traditional network segmentation uses VLANs, DMZs, and subnets to create broad security zones. Micro-segmentation is far more granular — policies apply at the workload or process level, not the subnet level. A VLAN might contain 50 servers all trusted to communicate; micro-segmentation ensures that only specific servers in that VLAN can reach specific ports on specific peers, shrinking lateral movement paths dramatically.

Visibility and Policy Management

Effective micro-segmentation requires comprehensive visibility into existing network flows before policies are applied. Discovery tools map actual communication patterns between workloads. A common approach is to deploy in monitor mode first — observe all traffic, generate proposed policies — then switch to enforce mode to deny unauthorized flows. This prevents accidentally blocking legitimate traffic during rollout.

Limiting Blast Radius with Segmentation

The primary security benefit of micro-segmentation is reducing blast radius. If an attacker compromises a workstation in the sales VLAN, micro-segmentation policies prevent that workstation from communicating with the finance database, the HR system, or domain controllers. The attacker remains isolated to the segment they landed in, making the incident easier to contain and remediate before widespread damage occurs.

Quick Check

Test your understanding of CompTIA Security+ (SY0-701) concepts from this lesson.

Lesson Recap

In this lesson you learned: micro-segmentation divides networks at the workload level to limit lateral movement, software-defined perimeters make resources invisible until identity is verified, and ZTNA replaces VPNs by granting application-level access rather than network-level access. Next up we explore how identity becomes the new perimeter through conditional access policies.

Frequently asked questions

Is the “Micro-Segmentation and Software-Defined Perimeters” lesson free?

Yes — the full text of “Micro-Segmentation and Software-Defined Perimeters” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.

What will I learn in “Micro-Segmentation and Software-Defined Perimeters”?

Design network micro-segments that limit lateral movement and learn how software-defined perimeters make internal resources invisible to unauthorized users. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Cloud & IT Cert Prep?

No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “Micro-Segmentation and Software-Defined Perimeters” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Cloud & IT Cert Prep lesson?

Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Zero Trust Principles: Never Trust, Always Verify
  2. Micro-Segmentation and Software-Defined Perimeters
  3. Identity as the New Perimeter: Conditional Access
  4. Zero Trust Maturity Model and Migration Planning
← Back to Cloud & IT Cert Prep