CLOUD CONCEPT

Network Segmentation

Network segmentation divides a network into distinct zones and controls communication between them according to security requirements.

Cloud Concepts Hub →

What is Network Segmentation

Network segmentation separates workloads by trust level, function, environment, or data sensitivity, then permits only the traffic required between them. It reduces exposure and limits lateral movement after a compromise, but effective segmentation requires enforced traffic controls rather than merely separate address ranges.

Network segmentation creates boundaries between groups of systems so that connectivity follows security requirements instead of being universally available. Typical boundaries separate production from development, internet-facing components from internal services, and application servers from sensitive databases. The objective is to reduce the paths an attacker can use and limit the blast radius of a compromised workload. Start by identifying required communication: which source must reach which destination, on what protocol and port, and for what operational purpose.

Cloud networks implement these boundaries using virtual networks, subnets, routing, and traffic filtering. In AWS, an Amazon VPC provides a logically isolated network, and each subnet occupies one Availability Zone. Route tables determine where subnet traffic is directed. An internet gateway supports direct internet connectivity, while a NAT gateway can provide outbound IPv4 internet access for workloads without exposing them to unsolicited inbound connections through that gateway. NAT is not a substitute for traffic filtering or application-aware egress inspection.

A public subnet has a route to an internet gateway. That designation does not automatically expose every resource: direct IPv4 internet communication also requires suitable public addressing and permissive security controls. A private subnet lacks a direct route to an internet gateway but may have outbound access through NAT. An isolated subnet has no route for internet access, including through NAT, although it can retain explicitly permitted private connectivity. Private service endpoints can provide access to supported cloud services without requiring an internet route.

Subnets alone do not enforce application isolation. Within an AWS VPC, route tables normally include local routing between its address ranges. Security groups provide stateful filtering on associated network interfaces, while network ACLs provide stateless subnet-level filtering. Security groups contain allow rules; network ACLs support allow and deny rules and require explicit consideration of return traffic. Network ACLs do not filter traffic between resources in the same subnet, so workload-level controls remain important.

North/south traffic crosses a defined environment boundary, such as traffic between the internet and an application. East/west traffic moves between workloads or internal segments. Protecting an internet entry point does not prevent lateral movement between application servers and databases. For a three-tier application, permit HTTPS to the public load balancer, permit application traffic only from the load balancer to the application tier, and permit database connections only from the application tier. Where supported, security group references can express these relationships without relying on changing instance IP addresses.

Stronger boundaries may use separate virtual networks or accounts, with explicitly controlled connectivity through a transit network or inspection firewall. Central inspection only works when routing actually sends the relevant traffic through the firewall; stateful inspection also requires consistent forward and return paths. Additional boundaries increase route management, policy maintenance, troubleshooting effort, and potentially cost and latency. Validate both permitted and prohibited paths using connectivity analysis, flow logs, and controlled tests. When troubleshooting, inspect routes, security groups, network ACLs, firewall policy, addressing, and return paths rather than assuming that a private subnet is inherently isolated.

Key aspects of Network Segmentation

Effective segmentation combines requirement-driven boundaries, least-privilege traffic rules, controlled routing, and ongoing validation.

Security zones based on requirements

Group workloads by trust level, business function, environment, or data sensitivity. Define required flows before choosing subnet layouts or connectivity services.

Least-privilege communication

Permit only necessary sources, destinations, protocols, and ports between zones. Separate subnets or address ranges do not provide this restriction without enforced controls.

North/south and east/west protection

Control traffic crossing environment boundaries as well as traffic moving between internal workloads. Internet-facing protections alone do not prevent lateral movement.

Explicit routing and isolation

Use route tables and gateways to establish intended paths and remove unintended connectivity. Distinguish direct internet access, outbound access through NAT, and isolated subnets with no internet route.

Layered enforcement

Combine workload-level filtering, subnet controls, and inspection where requirements justify them. Account for stateful versus stateless behavior and ensure traffic cannot bypass required inspection.

Continuous validation

Test that required connections succeed and prohibited connections fail. Review flow logs and configuration changes to detect overly broad permissions, routing errors, and unintended connectivity.

Cloud services for Network Segmentation

Amazon VPC supplies the network boundaries and local traffic controls, while AWS Transit Gateway manages connectivity between multiple networks. Transit gateway route tables can keep groups of networks separated and direct selected flows toward an inspection VPC. AWS Network Firewall inspects traffic only when routing places its endpoints in the traffic path. AWS PrivateLink offers service-specific private connectivity without opening general network access between consumers and providers. Together, these services support layered segmentation, but their effectiveness depends on consistent routes, narrowly scoped permissions, and testing of both allowed and blocked communication.

Virtual private cloud VPC_32 image Amazon VPC

Provides virtual networks, subnets, route tables, gateways, security groups, and network ACLs used to define and enforce network boundaries. Separate subnets still require appropriate filtering because local routing normally permits paths between VPC address ranges.

Open Amazon VPC →
AWS Firewall Manager image AWS Network Firewall

Provides managed network inspection and filtering for traffic routed through firewall endpoints. It can protect north/south or east/west paths, but route design must prevent bypass and maintain appropriate forward and return paths.

Open AWS Network Firewall →
AWS Transit Gateway image AWS Transit Gateway

Connects VPCs and on-premises networks through a transit hub. Separate transit gateway route tables and controlled route propagation can restrict connectivity between groups of attachments and support centralized inspection architectures.

Open AWS Transit Gateway →
AWS PrivateLink image AWS PrivateLink

Provides private access to supported services without requiring broad network connectivity between consumers and providers. Interface endpoints can support service access from isolated subnets, subject to endpoint security groups, applicable endpoint policies, and service authorization.

Open AWS PrivateLink →