gVPC is in preview, and the
networking.datumapis.com/v1alpha API can change.What traffic a network carries
The following table describes which kinds of traffic are possible:
The workload API accepts a
networkPolicy field on each network interface, but the field has no effect. Don’t rely on it to restrict traffic. To limit who can reach a service, check credentials in your app, or put services that must stay apart on different networks. Firewall rules for networks are on the roadmap.
Connect to other Instances
To connect from one Instance to another on the same network, use the peer’s private IPv6 address. Keep the following points in mind:- Make your app listen on IPv6 (
::). An app that listens only on0.0.0.0accepts IPv4 connections only, and Instances don’t have IPv4 addresses. - In a URL, put an IPv6 address in square brackets, such as
http://[fd20:4a3b:91c2:1::1:0:2]:8080/. - Connect by name rather than by address. Each Instance has a Private DNS name, such as
web-default-us-central-1-0.instances.datum.internal, that follows the Instance’s address. To try it, see the Private DNS quickstart.
Reach the internet
Instances can connect to the internet with no setup. Every network has internet access in every location. Instances have private IPv6 addresses only, so Datum’s edge translates their outbound traffic:- To IPv6 destinations: Datum replaces the Instance’s private source address with a public IPv6 address (NAT66).
- To IPv4-only destinations: When an app looks up a name that has only IPv4 addresses, the Instance’s DNS resolver answers with a synthesized IPv6 address that stands for the IPv4 address (DNS64). Datum’s edge translates connections to that address into IPv4 (NAT64). The app connects by name as usual and doesn’t see the translation.
ping, work to both IPv6 and IPv4 destinations.
Keep the following points in mind:
- Connect to IPv4 services by hostname, not by IPv4 address. An Instance has no IPv4 address or route, so a connection to an IPv4 address such as
203.0.113.10fails. If a service has only a public IPv4 address and no name, create anArecord for it in a public DNS zone you control, and connect by that name. Private IPv4 addresses, such as10.0.0.5, aren’t reachable. - Use the DNS resolvers that the Instance is given. Datum configures resolvers that perform DNS64. In a
general-purposeInstance, they’re in/etc/resolv.conf. An app or image that uses its own resolver without DNS64, such as DNS over HTTPS or a hard-coded public resolver, gets only IPv4 addresses for IPv4-only names, and can’t connect to them. The resolver addresses can change, so don’t hard-code them. - Outbound traffic leaves from shared addresses. The Instances in a location share their outbound addresses with each other and with other Datum customers. Datum doesn’t publish these addresses, and they can change. Don’t ask a destination to allowlist them. Authenticate to the destination instead, for example with an API key or a client certificate.
- You can’t turn off internet access. Every Instance can reach the internet. A setting to turn off internet access for a network is on the roadmap.
What’s next
- To serve a workload publicly through Datum’s ALB, see Compute and ALB.
- To review what networks can’t do, see Limitations and roadmap.