Skip to main content

Create a cloud firewall

Last update:
warning

A cloud firewall has a basic property: all incoming and outgoing traffic that is not allowed is denied. If you create a firewall without rules and assign it to a cloud router port, all traffic in the router subnet will be denied. After the firewall is created, all active sessions on the router will be interrupted.

  1. In the Control panel, on the top menu, click Products and select Cloud Servers.

  2. Перейдите in раздел Файрволы.

  3. Click Create firewall.

  4. Select a location where the firewall will be created.

  5. Optional: select a private subnet with a cloud router for which you want to configure traffic filtering. The firewall is assigned to the cloud router port in this private subnet.

    You can assign a firewall to a router port after the firewall is created.

  6. Select the traffic direction:

  1. If rule templates for incoming traffic work for you, click the rule. The protocol, source, source ports, destination, and destination port fields will be filled in automatically. Proceed to step 15.

  2. If there is no suitable template, add your own rule for incoming traffic. Click Add incoming traffic rule.

  3. Select an action:

    • Allow — allow traffic;
    • Deny — deny traffic.
  4. Select a protocol: ICMP, TCP, UDP, or all protocols (Any).

  5. Enter the traffic source (Source) — an IP address, a subnet, or all addresses (Any).

  6. Enter the source port (Src. port) — a single port, a port range, or all ports (Any).

  7. Enter the traffic destination (Destination) — an IP address, a subnet, or all addresses (Any). If you specify a subnet, the rule will apply to all devices in the subnet.

  8. Enter the destination port (Dst. port) — a single port, a port range, or all ports (Any).

    Traffic to any TCP/UDP port blocked in Selectel by default will be denied, even if you specify this port in the rule.

  9. Enter a firewall rule name or leave the name that was created automatically.

  10. Optional: enter a comment for the rule.

  11. Click Add. After the firewall is created, you can edit the rule.

  1. Check the rule order; they are executed in the order they appear in the list, from top to bottom. If necessary, change the order by dragging the rules. After the firewall is created, you can change the rule order.
  2. Optional: to add another rule to the firewall, go to step 6. You can add up to 100 rules for each traffic direction.
  3. Enter a firewall name or leave the name that was created automatically.
  4. Optional: enter a comment for the firewall.
  5. Click Create firewall.