×

4.5.7 How to connect a virtual network to the internet

 
On the Elastic Cloud KVM platform a virtual network is created isolated from public networks by default for security reasons. Here we will show how to connect an already created virtual network to the internet and tell about the ways to organize communication outside of a virtual network and outside of the public networks before the connected resources.
 
To ensure connection between internal and public virtual networks, the network software gateway is used. It appropriates an external IP address that is required for a successful routing of the network packages inside of a virtual network and outside of it. A network gateway is created automatically when connecting to a virtual network of the external IP address. It is impossible to create a network gateway without an external address.
 
You can connect a virtual network to the internet when creating it by setting a corresponding switch in the network creation parameters …
 
…or in the list of already existing networks (in the section Elastic Cloud KVM  Virtual networks)
 
Herewith, the essence of an external IP address may not be connected to a specific virtual network and saved when deleting a network object for use in future projects. This is why when connecting a network to the internet you can connect a new external IP address to it or choose one from the list of addresses that are already assigned to your account.
 
After connecting to the internet (which means assigning an external IP address to it), network connection routing to a public network from all resources that are connected to this network (such as virtual machines, databases, etc.) is enabled automatically.
 
To deliver network packages from public networks to the Elastic Cloud KVM virtual network, we use the principle of NAT technology (Network Address Translation). This enables safety and efficiency of the network. NAT allows multiple resources inside a virtual network use a single public IP address to interact with other networks on the internet. It helps to reduce the necessity of a large number of public IP addresses, simplifies network management and improves safety by concealing internal IP addresses of the devices. To manage NAT rules, the corresponding button in the «Virtual networks» section is used.