Connect a remote desktop to other products
You can connect your Desktop as a Service (DaaS) to other products via a private network. This connection allows you to interact fully remotely with resources in the Selectel infrastructure, such as a cloud server, database, or a VMware-based cloud data center, and to connect to a Direct Connect or Global Connect line. In doing so, traffic between your desktop and other resources will remain within the Selectel private network.
The network is set up via a global router.
You cannot configure internet access for a virtual desktop through another product (do not announce a default route to 0.0.0.0/0 via a global router).
-
If you do not have a global router yet, create a global router.
-
Connect the network and subnet for the virtual desktop to the global router.
-
On the server in the other product, add static routes to the virtual desktop subnet.
1. Create a global router
- In the Control panel, in the top menu, click Products and select Global Router.
- Click Create router. A limit of five global routers is set for each account.
- Enter the router name.
- Click Create.
- If the router was created with the status
ERRORor is stuck in one of the statuses, create a ticket.
2. Connect the network and subnet for the virtual desktop to the router
-
Create a ticket to connect a virtual desktop to a global router. In the ticket, specify the ID of the global router that you created in step 1. You can find it in the control panel under Network Services → Selectel Global Router → router page → field under the router name.
-
We will connect a private subnet with a size of
/26from the172.16.0.0/12block, where your virtual desktops are located, to the global router. This subnet will not be displayed on the global router page in the control panel. -
Wait for confirmation that connectivity has been configured.
-
Depending on which product you are connecting your virtual desktops to:
- if you are configuring connectivity with a cloud server, dedicated server, or Managed Kubernetes cluster, proceed to step 3;
- if you are configuring connectivity with a VMware-based cloud, follow the Ways to Connect a Public Cloud to a Global Router guide, select the appropriate method, and perform the necessary settings on the public cloud side, starting by creating a subnet to connect the public cloud to the global router.
3. Connect the network and subnet for the server in another product to the router
The subnet in the other product must not overlap with the DaaS service networks:
- the
/26block from the172.16.0.0/12subnet that contains your virtual desktops; - the service subnet
10.49.32.0/24.
Dedicated server
Cloud platform
Use for a dedicated or hosted server.
You can connect a new network to the router or an existing network if it is not already connected to any of the account's global routers.
-
In the control panel, on the top menu, click Products and select Global Router.
-
Open the router page → Networks tab.
-
Click Create network.
-
Enter a network name. It will only be used in the control panel.
-
Select the Servers and Equipment service.
-
Select a location for the network.
-
Select or enter a VLAN.
-
If you want to create a network to an internal segment (Q-in-Q), specify its tag — a number from 2 to 4094. If a network already exists for the VLAN, you must specify the Q-in-Q segment of this VLAN.
-
Enter a subnet name. It will only be used in the control panel.
-
Enter the CIDR — the IP address and mask of the private subnet. You can enter a new subnet or an existing private server subnet if it has not yet been added to any of the global routers in the account. The subnet must meet the following conditions:
- belong to the RFC 1918 private address range:
10.0.0.0/8,172.16.0.0/12or192.168.0.0/16; - have a size of at least
/29, as three addresses will be occupied by Selectel network equipment; - do not overlap with other subnets added to this router — there must be no identical IP addresses within subnets on the same router;
- if a Managed Kubernetes cluster on cloud servers is to be connected to the global router network, the subnet must not overlap with the ranges
10.10.0.0/16,10.96.0.0/12,10.250.0.0/16and10.251.0.0/24. If a cluster on dedicated servers is to be connected to the network — with the ranges10.10.0.0/16,10.222.0.0/16,10.250.0.0/16,10.251.0.0/24and172.250.0.0/14. These subnets are used for internal Managed Kubernetes addressing; using them may lead to network conflicts in the global router.
- belong to the RFC 1918 private address range:
-
Enter the gateway IP or leave the first address from the subnet, which is assigned by default. Do not assign this address to your devices to avoid network disruption.
-
Enter the service IPs or leave the last addresses from the subnet, which are assigned by default. Do not assign these addresses to your devices to avoid network disruption.
-
Click Create network.
-
Optional: check the network topology on the global router. In the control panel, on the top menu, click Products → Global Router → router page → Network map.
-
Если on шаге 8 вы указали тег Q-in-Q, нужно включить технологию Q-in-Q on порту коммутатора and настроить сетевой интерфейс приватной сети, которую вы указали on шаге 10.Подробнее in подразделе Настроить Q-in-Q инструкции Q-in-Q
4. Add a static route to the virtual desktop subnet
On the device in the other product, add static routes to the virtual desktop subnet:
- as the destination subnet, specify the CIDR of the virtual desktop subnet;
- as the gateway, specify an address from the subnet to which the relevant server has been added and which is used as the global router gateway.
Dedicated server
Cloud platform
Use for a dedicated or hosted server.
Ubuntu
Debian
CentOS
Windows
-
Open the network configuration file:
vi /etc/netplan/01-netcfg.yaml -
At the end of the block containing the data for the desired network interface, add the route:
routes:- to: <ip_address>/<mask>via: <gateway>Specify:
<ip_address>/<mask>— the subnet to reach, including the mask, for example,172.16.10.10/26;<gateway>— the gateway for the current server's subnet, which is specified on the global router.
-
If you need to add multiple routes, add them sequentially in the same block, for example:
routes:- to: 172.16.10.10/26via: 192.168.0.1- to: 192.168.100.0/28via: 192.168.0.1 -
Save the file.
-
Check the settings:
sudo netplan try -
Apply the changes:
netplan apply