Define the flow before changing the network
In a fictional funds incident, an application cannot reach its processing API. First record the client, queried name, resolved address, IP family, protocol, ports, and time. Then follow both directions through relevant interfaces and subnets.
A DNS change can make the client use IPv6 while the team continues to observe only IPv4. An existing endpoint also does not prove that the request uses it. Keep resolution, path, filters, TLS, and application authorization separate.
A hypothesis should identify an observation that confirms or refutes it. Opening a set of ports without that connection increases exposure and can still leave the original cause intact. In the Secrets Manager example, the SDK queries the regional name: check the interface endpoint’s private DNS, VPC DNS hostnames and DNS resolution, and the answer seen by the client.
A corporate resolver may follow another path. For S3 in the same Region through a gateway endpoint, associate the relevant subnet route tables; check endpoint, identity, and bucket policies. A working route does not grant authorization.
Read the effective security group set
Two security groups attached to one interface contribute permissions together. Adding a restrictive group does not cancel a broader permission still present in another group. A reference to another group identifies eligible sources or destinations; it does not import that group’s rules.
Also confirm topology when traffic passes through an intermediate appliance. Use this fictional workshop inventory: the application ENI has sg-legacy, allowing inbound TCP/443 from 0.0.0.0/0, and sg-new, allowing inbound TCP/443 only from sg-alb.
There are no other rules. Identify the rule still admitting a direct internet client. Worked result: sg-legacy retains that permission; removing the broad rule or attachment removes that grant.
First check other consumers of the group. For new connections, predict ALB HTTPS allowed and direct HTTPS denied, assuming compatible routing and other controls. Do not assume the intention in a group’s name matches its effect.
Give a colleague the minimal change, expected result, and a way to observe a new connection. If an EC2 application should receive HTTP only from its ALB in the same VPC, use the ALB security group as the source on the application port and review parallel grants.
Do not replace that relationship with every address in the subnet merely because the load balancer is there.
Evaluate order, return paths, and existing connections
An ACL evaluates the first matching rule in numeric order. A deny numbered 200 does not beat a matching allow numbered 100; CIDR specificity does not replace this order. The filter is stateless, so the design must admit the required return traffic.
A custom ACL without explicit permissions ends at implicit deny. By contrast, a connection tracked by a security group can continue after removing the rule that allowed new connections. Distinguish that case from untracked flows.
For an urgent intervention, document the mechanism that interrupts the flow, effects on other clients, and recovery. Testing only an old session does not demonstrate that new access remains allowed. For example, a client initiates HTTPS to port 443 but receives the response on its locally chosen ephemeral port.
The ACL must permit that return traffic; confirm the client’s port range and the rule direction.
Interpret evidence within its scope
A synthetic excerpt with action=ACCEPT and dstport=443 shows accepted traffic at the observed point; it does not demonstrate a TLS handshake or a valid HTTP response. Correlate it with application logs and a representative request. If the interval has SKIPDATA, a missing row does not prove absent traffic.
Exclusions also exist, such as contacts with the Amazon-provided DNS server. Reachability Analyzer models configuration without sending packets: a reachable path does not verify the application process. In a handover, separate observations, inferences, and work still to execute.
Include the time window and collection limitations so that partial capture does not become an absolute conclusion.
Choose egress by IP family and failure domain
For IPv6 clients initiating connections to IPv6 internet destinations, an egress-only internet gateway permits outbound and return traffic without accepting external initiation through that path. Do not treat it as translation for IPv4-only destinations.
In that case, assess NAT64 and DNS64 with appropriate routes. Also identify the NAT gateway type in the design: a shared zonal gateway creates a dependency on that zone; do not generalize this analysis to a regional gateway. A NAT gateway has no security group of its own, so controls belong on supported resources and enforcement points.
The final decision combines required connectivity, isolation, cost, and behavior during a specific failure. For direct IPv4 internet access without a NAT gateway or proxy, an internet-gateway route is insufficient: the instance also needs a suitable public IPv4 address and controls permitting the flow.
In another design, A peers with B and B with C; that does not provide transit from A to C. Peering is not transitive: assess a direct connection or a transit design with its own routes and controls.
Deliver a reproducible diagnosis
A TCP connection through NAT works, remains idle for six minutes, and fails when the client reuses it. Compare that interval with the NAT timeout, look for the reset, and observe new connections before attributing failure to DNS. Define connection management and keepalive where appropriate without blindly repeating operations that can have effects.
Reserve twenty minutes for the local model below and a diagnostic matrix: condition, predicted result, available evidence, and next step. The model evaluates only the union of allowed ports and the first rule by family and port; it does not implement CIDRs, connection tracking, routing, or AWS.
Banking cases are fictional and require authorized validation before production use. On the data-centre connection, Direct Connect does not encrypt traffic by default. Select protection suited to the requirement, such as IPsec or TLS, and validate the protected endpoints.
MACsec, where supported and configured, protects the segment to the Direct Connect location; do not confuse it with automatic protection of the entire transaction. Include a separate confidentiality row and its evidence in the matrix.
// Local teaching model only: no AWS calls, no packets, no CIDR matching.
const allowedPorts = (...groups) => new Set(groups.flat());
const acl = (rules, family, port) => [...rules]
.sort((a, b) => a.number - b.number)
.find(r => r.family === family && r.port === port)?.action ?? 'DENY';
const rules = [
{number: 200, family: 4, port: 443, action: 'DENY'},
{number: 100, family: 4, port: 443, action: 'ALLOW'},
];
const observations = {
combinedGroupsAllow443: allowedPorts([443], []).has(443),
firstMatchingAcl: acl(rules, 4, 443),
ipv6NeedsSeparateRule: acl(rules, 6, 443),
emptyCustomAcl: acl([], 4, 443),
};
console.log(JSON.stringify(observations));Allow 100 and deny 200 match the same flow: the ACL applies allow 100. ACCEPT in a Flow Log still does not prove the HTTP transaction completed.
Common pitfalls
Adding a restrictive group expecting to deny another; ignoring ACL order; confusing ACCEPT with service health; using IPv4 evidence to claim IPv6 works.
Related topics: Private access and startup without hidden dependencies · Segmentation, routes, and connectivity acceptance · Hybrid DNS, private views, and handover
A network change needs a defined flow, a testable hypothesis, and evidence sufficient for the promised outcome.
References
- Configure interface endpoints · AWS documentation consulted 2026-09-29
- Security group rules · SAA-C03 / primary documentation consulted 2026-10-04
- EC2 connection tracking · SAA-C03 / primary documentation consulted 2026-10-04
- Network ACL rules · SAA-C03 / primary documentation consulted 2026-10-04
- Custom network ACLs · SAA-C03 / primary documentation consulted 2026-10-04
- VPC Flow Logs · SAA-C03 / primary documentation consulted 2026-10-04
- Flow log records · SAA-C03 / primary documentation consulted 2026-10-04
- Flow log limitations · SAA-C03 / primary documentation consulted 2026-10-04
- How Reachability Analyzer works · SAA-C03 / primary documentation consulted 2026-10-04
- Egress-only internet gateway · SAA-C03 / primary documentation consulted 2026-10-04
- NAT gateway basics · SAA-C03 / primary documentation consulted 2026-10-04
- Troubleshoot NAT gateways · SAA-C03 / primary documentation consulted 2026-10-04
- SAA-C03 secure architectures · SAA-C03 / primary documentation consulted 2026-10-04
- SAA-C03 resilient architectures · SAA-C03 / primary documentation consulted 2026-10-04
- SAA-C03 high-performing architectures · SAA-C03 / primary documentation consulted 2026-10-04
- Internet gateway basics · SAA-C03 / primary documentation consulted 2026-10-04
- Gateway endpoints · SAA-C03 / primary documentation consulted 2026-10-04
- Gateway endpoints for Amazon S3 · SAA-C03 / primary documentation consulted 2026-10-04
- How VPC peering connections work · SAA-C03 / primary documentation consulted 2026-10-04
- Encryption in AWS Direct Connect · SAA-C03 / primary documentation consulted 2026-10-04