Public and private reachability
What makes a resource publicly reachable?
Public reachability means a resource or service entrance can accept a connection from the public internet under the configured networking and policy conditions. A public-facing load balancer can receive internet requests while its backend servers have only private addresses. Private reachability means access is through an authorized private network path, such as a virtual network or VPN. Neither term by itself describes who may read or change application data.
A public IP alone is insufficient. A route, return path, firewall policy, listener and healthy application all matter. A private IP alone is not protection against a compromised internal workload. Keep management interfaces and data services private unless a reviewed requirement demands otherwise.
Design a three-tier bookstore
In a synthetic model, the public entrance is 203.0.113.10:443. Two private application servers, 10.20.1.10:8443 and 10.20.1.11:8443, receive requests only from the frontend tier. The database 10.20.2.20:5432 accepts connections only from the application tier. There is no public management or database listener. Assume valid TLS for the web paths and stateful filtering with allowed replies on permitted connections.
An internet customer can reach the public entrance when the route and policy permit it. The customer cannot directly access the private application or database. The application can reach the database when its route and firewall policy permit it, but it still needs valid database credentials and permission to perform the requested operation. The frontend itself does not need database access.
This is a conceptual policy, not provider firewall syntax. Verify actual source addresses, identity-based selectors, proxy behavior, health probes and service-specific rules when implementing it.
Outbound internet and private service endpoints
A private workload sometimes needs to fetch approved updates or contact an external service. Network address translation (NAT) can map private IPv4 source addresses to a public address for outbound connections; replies to those connections are mapped back. A typical outbound-only NAT setup does not provide a public listener for arbitrary new inbound connections. NAT is not a substitute for egress policy, inspection or authentication.
A private service endpoint can provide a path to a managed service without exposing the application directly to the internet. Depending on the provider and service, this may use private addresses, special routing or private DNS. Verify DNS, route, endpoint policy and application identity separately. Private access does not imply free transfer or unrestricted access. For example, AWS gateway endpoints support specific services; Azure Private Link and Google Cloud private access options have different mechanics and limitations.
Compare virtual networks across clouds
AWS Virtual Private Cloud (VPC) is regional; its subnets belong to individual Availability Zones. An AWS subnet with a direct route to an internet gateway is called public, but an ordinary IPv4 instance also needs public address mapping and appropriate controls for direct internet connectivity. Azure Virtual Network (VNet) is a regional logical network; its subnets are not tied to an individual availability zone in the same way. Azure network security groups filter traffic at subnet or interface scope; routes can be customized. Google Cloud VPC networks are global, with regional subnets and distributed firewall controls. A global network does not imply every service or failure domain is global.
These services solve related networking problems, but their default rules, route priorities, address reservations, internet connectivity and private endpoint capabilities differ. Do not translate a policy mechanically from one provider to another. Always verify the exact service and configuration. See the chapter evidence register for checked documentation.
Troubleshoot from evidence
Use this offline diagnostic order: first confirm the intended source, destination, protocol and port. Confirm DNS when a name is used. Inspect the modeled forward route and return path, then effective firewall rules. Confirm that a listener exists and is healthy. Validate TLS and finally check application authentication and authorization. Actual troubleshooting may need to revisit earlier steps; some errors can occur at multiple layers. A timeout does not uniquely identify a firewall problem, and HTTP 403 can come from several layers of a web system.
Example A: the route and firewall allow a database request, but the workload identity has no read permission. The network connection can succeed while the query is denied. Example B: an identity has read permission but the route is missing. The identity does not create network connectivity. Example C: a healthy private backend is accessible from the frontend but not from a public client; that is the intended design, not an outage.
Practice and safe operating boundary
For each practice flow, separately record network feasibility, TLS status and application permission. Draw explicit arrows for the allowed frontend-to-app and app-to-database connections; mark public direct database access denied. Use only supplied synthetic data. Do not scan public addresses, modify a route table, open remote management ports or connect to a real account for this chapter. The next chapter will introduce cloud interfaces and an offline project.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Public and private reachability — knowledge check
Choose the best answer for each offline scenario.
An AWS subnet has a direct internet-gateway route. What does that prove?
Which tier should normally be exposed for the fictional public bookstore?
A workload has permission to query a database but no network route. What happens?
What is the scope of a Google Cloud VPC network and its subnets?
What does a typical outbound-only NAT setup provide?