There was a problem loading the comments.

Using Security Groups

Support Portal  »  Knowledgebase  »  Viewing Article

  Print

Nothing reaches the server until you allow it.

 

A security group is the firewall on the instance. New VMs start with no inbound access from the Internet: no SSH, no ping, no HTTP. Attach a group that allows the traffic you need, or the server can show Active with no way in. Create the group here, then attach it when you launch in Creating and Managing Virtual Machines, or on the server page after.

 

Create a group

From CloudNetworking, open the Security Groups tab. Click + Create Security Group.

Security Groups list with Create Security Group

  1. Location is SiouxFalls.
  2. Name it something you will recognize. This example is allow-ssh.
  3. Description is optional.
  4. Click + Create Security Group.

Create Security Group form with allow-ssh filled in

If this project already has a group with inbound SSH, skip create and open that group instead. The screens below use one named SSH.

 

Allow SSH

Open the group. Under Security Group Rules, click + Add rule. For SSH you want inbound TCP port 22. The SSH group already has that rule:

SSH security group rules with inbound TCP 22

Read the row: ingress, IPv4, port 22, protocol tcp, remote 0.0.0.0/0. That CIDR is the whole Internet. Tighten it to your office prefix if you can. The two egress Any rows are normal; leave them unless you mean to lock outbound traffic.

 

Attach it to a server

On the create-server form, attach this group before + Create Server. That step lives in Creating and Managing Virtual Machines.

 

If the server already exists: CloudServers, click the name, Security Groups, then Add Security Group and pick the group. Here SSH is already on demo-ubuntu.

demo-ubuntu Security Groups tab with SSH attached

 

Other common rules

Same + Add rule screen. Direction ingress, ether type IPv4, remote 0.0.0.0/0 unless you have a tighter CIDR.

  • HTTP: TCP, port 80
  • HTTPS: TCP, port 443
  • Ping: ICMP

 

One group or many

Some people put every rule in one group. Others keep small groups (SSH, web) and attach several. No performance difference. Small groups are easier to audit later. Do not treat default as inbound SSH from the Internet. It is not.

Attachments


Share via
Did you find this article useful?  

Related Articles

© Gozunga