Миграция в Selectel — основная информация, гайды и ответы на частые вопросы в разделе «Миграции»
Ports
A port is a virtual network card assigned with a combination of a MAC address and an IP address. Ports are used to connect a device to a private network or the internet.
A port can be located in a private or public subnet. For internet access, instead of adding a port to a subnet, you can also create a port with a separate IP address — a direct public IP address.
Port traffic can only be sent from one IP/MAC address pair assigned when adding a port to a subnet; traffic from other addresses is dropped. To allow traffic from addresses not specified on the port, you need to add allowed IP/MAC addresses to the port. Allowed IP/MAC addresses cannot be added for ports with a direct public IP address.
VRRP ports and downlinks (ports for redundancy) in private subnets where the load balancer resides. The number of service ports depends on the load balancer type, learn more about load balancer ports;
a port in a private subnet where File Storage resides. Created along with the subnet for file storage and can only be deleted with the storage.
Add a port to a public or private subnet
Private subnet
Public subnet
Control panel
OpenStack CLI
In the Control Panel, in the top menu, click Products and select Cloud Servers.
Go to the Network section → Private networks tab.
Open the network page → Ports tab.
Click Add port.
Select a subnet.
Enter the port IP address.
Optional: select a server or a Managed Kubernetes cluster node to which you want to add this port.
<network> — ID or name of the private or public subnet, can be viewed using the command openstack network list. For a public subnet, it matches the <subnet> parameter;
<subnet> — ID or name of the subnet, can be viewed using the command openstack subnet list;
<port_ip_address> — port IP address;
<port_name> — port name.
Add a port to a cloud server:
openstack server add port <server><port>
Specify:
<server> — ID or name of the cloud server, can be viewed using the command openstack server list;
<port> — ID or name of the port, can be viewed using the command openstack port list.
Connect a public floating IP address to a port in a private subnet
If a cloud server or a load balancer is connected to a port in a private subnet, you can connect a public floating IP address to the port.
To connect a public floating IP address in the device sections in the Control Panel, use the Public floating IP addresses instructions.
Specify <floating_ip_address> — ID or public floating IP address, can be viewed using the command openstack floating ip list.
Assign a security group to a port
To assign a security group on the cloud server page in the Control Panel, use the Assign security group instructions.
To be able to assign a security group to a port, traffic filtering (port security) must be enabled in the port's network. The filtering status in the network can be viewed in the Control Panel: in the top menu, click Products → Cloud Servers → Network → Private networks or Public networks tab. A network with filtering enabled is marked with .
Private subnet
Public subnet
Direct public IP address
Control panel
OpenStack CLI
In the Control Panel, in the top menu, click Products and select Cloud Servers.
<security_group> — ID or name of the security group, can be viewed using the command openstack security group list;
<port> — ID or name of the port, can be viewed using the command openstack port list.
Control panel
In the Control Panel, in the top menu, click Products and select Cloud Servers.
In the Servers section, open the server page → Ports tab.
In the port row, in the Security groups field, click .
In the Security groups field, uncheck the groups you want to disconnect from the port.
Click Save.
Add authorized IP/MAC addresses to a port
If traffic filtering (port security) is enabled in the network, port traffic can only be sent from one IP/MAC address pair assigned when adding a port to a subnet or adding a port with a direct public IP address. If traffic from addresses not specified on the port is transmitted through the port, such traffic will be blocked. To allow traffic from addresses not specified on the port, you need to add allowed IP/MAC addresses in the port settings.
For example, if you have manually deployed:
routing software on a cloud server — you need to authorize all routable networks;
VPN server on a cloud server — you need to authorize the IP addresses of all VPN clients;
a Kubernetes cluster with the Calico CNI in Direct routing mode on a cloud server — you need to authorize the entire subnet used in the cluster. For the Flannel CNI, no configuration is required;
VRRP group of several cloud servers — depending on the VRRP settings, you need to authorize the VIP address or the VIP/MAC address pair of the server on each server.
You can add up to 10 additional IP/MAC address pairs for one port. If you no longer need the allowed addresses, you can remove them from the port. Additional addresses cannot be added to a port with a direct public IP address.
In the Control Panel, in the top menu, click Products and select Cloud Servers.
Go to the Network section → Private networks tab.
Open the network page → Ports tab.
In the port card, in the security groups field, click .
If you want to allow all IP addresses, click Allow all IP addresses for VPN. Traffic from the 0.0.0.0/0 subnet with the default port MAC address will be allowed.
If you want to allow traffic from specific addresses:
6.1. Click Add IP/MAC pair.
6.2. Enter the IP address or subnet in CIDR format.
6.3. Enter the MAC address that matches the IP address, or keep the default port MAC address. Do not use addresses from the 00:00:5e:00:01:82 – 00:00:5e:00:01:c6 range. These MAC addresses are reserved by Selectel network equipment, and using them will cause traffic blocking on the cloud server interface.
6.4. To add another address pair, repeat steps 6.1 — 6.3.
<ip_address> — IP address or subnet. If you want to allow all IP addresses, enter the subnet 0.0.0.0/0;
optional: ,mac-address=<mac_address> — MAC address corresponding to the IP address. The <mac_address> parameter is the MAC address value. Do not use addresses from the 00:00:5e:00:01:82 – 00:00:5e:00:01:c6 range. These MAC addresses are reserved by Selectel network equipment, and using them will cause traffic blocking on the cloud server interface. If you do not specify a MAC address, the primary MAC address of the port will be used;
<port> — ID or name of the port, can be viewed using the command openstack port list.
Control panel
OpenStack CLI
In the Control Panel, in the top menu, click Products and select Cloud Servers.
Go to the Network section → Public networks tab.
Open the subnet card → Ports tab.
In the port row, in the Security groups field, click .
If you want to allow all IP addresses, click Allow all IP addresses for VPN. Traffic from the 0.0.0.0/0 subnet with the default port MAC address will be allowed.
If you want to allow traffic from specific addresses:
6.1. Click Add IP/MAC pair.
6.2. Enter the IP address or subnet in CIDR format.
6.3. Enter the MAC address that matches the IP address, or keep the default port MAC address. Do not use addresses from the 00:00:5e:00:01:82 – 00:00:5e:00:01:c6 range. These MAC addresses are reserved by Selectel network equipment, and using them will cause traffic blocking on the cloud server interface.
6.4. To add another address pair, repeat steps 6.1 — 6.3.
<ip_address> — IP address or subnet. If you want to allow all IP addresses, enter the subnet 0.0.0.0/0;
optional: ,mac-address=<mac_address> — MAC address corresponding to the IP address. The <mac_address> parameter is the MAC address value. Do not use addresses from the 00:00:5e:00:01:82 – 00:00:5e:00:01:c6 range. These MAC addresses are reserved by Selectel network equipment, and using them will cause traffic blocking on the cloud server interface. If you do not specify a MAC address, the primary MAC address of the port will be used;
<port> — ID or name of the port, can be viewed using the command openstack port list.
Remove allowed IP/MAC addresses from the port
Private subnet
Public subnetwork
Control panel
OpenStack CLI
In the Control Panel, in the top menu, click Products and select Cloud Servers.
Go to the Network section → Private networks tab.
Open the network page → Ports tab.
In the port card, in the security groups field, click .