Skip to main content

Routers

A router is a software-defined routing device (Edge). It connects up to four networks and passes traffic between them according to firewall and NAT rules. Center creates the router as a service virtual machine (VM) with the vStack Edge OS and maintains it automatically: the user sets the networks, rules and state of the router, not the VM settings.

A typical task is to give the VMs of an Isolated network access to an external network, for example a Routed one. You connect one router port to the isolated network and another one to the external network. An SNAT rule replaces the VM addresses with the router address in the external network.

Rule storage in Center​

Center stores the router rules itself and sends the whole set to the router at once. This way, you can build the complete set and turn it on with one action. After a restart, the router automatically gets the saved rules.

What a router consists of​

  • VDC. A router belongs to one virtual data center (VDC), and you connect networks of this VDC to it. A connected network stays available to all VDCs it is assigned to. A router without a VDC is visible only in All Edges.
  • Ports. Up to four. A port gets an address from the IP pool of the network, like a VM port.
  • Firewall rules pass or block traffic on a port — Configure firewall rules. This is not IP guard: IP guard checks the address on the port, while router rules control traffic between networks — Networks and IP pools.
  • NAT rules replace addresses in packets — Configure NAT rules.
  • Resources. The router service VM takes 2 vCPUs, 1 GB of RAM and a 22 GB disk.

You connect networks when you create the router. Later, you can add or remove a port only on a stopped router.

When rules take effect​

A saved rule is stored in Center; the router does not apply it yet. The router gets all saved rules in two cases:

  • Apply rules — Center sends them to the running router.
  • Start or restart — the router automatically takes them while booting.

Likewise, a deleted rule stays in effect until the rules are applied again or the router restarts. You cannot change a rule — only delete it and add it again. A rule number ("#") is unique among the firewall rules of a router and among its NAT rules.

The router checks firewall rules in ascending order of the "#" number, and the last matching rule applies. Among NAT rules, the first matching one applies. By default, there are no rules: make the first rule — the one with the lowest number — Block for any traffic in the required direction, then add allow rules with higher numbers.

Who manages a router​

Cluster master manages any router in the cluster. VDC admin creates routers in their own VDCs and manages only the routers they created. VDC user and VDC viewer can only view routers and rules.

Routers can be turned off for the whole cluster; the menu then has no All Edges or Edges item.

See also​