Security and Access

Each SWITCHengines instance is protected by firewall functionality. The initial configuration is set to not allow any kind of traffic to access the virtual machine. In order to selectively open the ports that your machine needs, you need to use the “Security Groups” feature to manage firewall rules. A “Default Security Group” will be automatically assigned to all your machines to allow basic administrative functions. Click here to find out more about the "Default Security Group".

However, in a new setup where you are not using the Quickstart option, you will need to add additional rules for ICMP (Ping) traffic, and for SSH traffic if you run Linux or RDP if you run Windows.

In the left column in the EnginesUI of the dashboard interface, click on Project -> Network -> Security Groups

 security groups

Click on Create Security Group to add a new rule

create security group

Enter a name for the Security Group and click on Create Security Group.

 secgroup name

The created security group is being displayed. Select Manage Rules.

 manage rules 2

Click on Add Rule...

add rules

..and create a rule for

    • SSH (port 22) for Linux VMs
    • RDP (port 3389) for Windows VMs

Please find below an overview of the currently available rules:

rule overview

 

If you are not sure what the Remote and the CIDR fields mean, leave the default values!

Note: If you want to allow access to your instance over IPv6 as well, you need to specify additional rules with IPv6 address prefixes.  To allow access from any IPv6 address, specify "::/0", which is the IPv6 equivalent of the default "catch-all" prefix "0.0.0.0/0" in IPv4.

 

Once you set up your own Security Group you can add it to your VM as follows:
 
add security group to vm
 
In the new ‘edit instance’ window that pops up, select Security Groups. Now select the Security Group you created and click on the plus sign. You should be able to see your Security Group under “Instance Security Groups” in the space highlighted below by the dotted lines. Once you have added all Security Groups, click Save. You have now successfully added Security Groups to your instance.
 
edit instance security groups
 

As soon as you have added the rules, your VM will be accessible on the specified ports.

You will have to use Security Groups in this way if you plan to run services on the VM that need to be accessible from outside. We recommend that you create new, specific groups for these cases (for example a Web group with ports 80 and 443 open) and assign those security groups to your VMs.