cloudscaleKnowledge Base
Router for Private Networks
With a router, you can connect private networks to each other and/or set up an internet gateway for outbound connections.
A router with internet gateway allows, for example, software or updates to be downloaded from the internet to a virtual server that does not have a "public" interface. To do this, the router performs source NAT on the IPv4 addresses in the private network.
Routers can currently only be created and configured via the API. You can find the required API calls in our API documentation, including sample requests and responses. It is also possible to manage routers using our Terraform provider, Ansible collection, and Go SDK, which rely on our API.
You can have the router's IP address assigned to your servers via DHCP as the "Default Gateway". To do this, configure the IP address as "Gateway" in the corresponding subnet. Note: Only IP addresses that are within the subnet but outside the DHCP range are allowed as "Gateway" values; therefore, it is best to choose such an address when you create a router interface.