Traffic profiles

Decide which network traffic can reach your machines, and forward ports, with reusable rule sets.

A traffic profile is a named set of firewall rules: which protocol, from which addresses, on which ports, in which direction. You create a profile once and attach it to as many machines as you like. Traffic profiles decide what reaches each machine, so attach at least one that allows the way you connect (SSH, remote desktop, web).

Create a traffic profile

  1. Open Traffic ProfilesTraffic Profiles.
  2. Click Add Traffic Profile. The Add/Edit Traffic Profile dialog opens with one empty rule.
  3. Enter a Name, for example web-servers, and a Description that says what the profile is for.
  4. Fill in the first rule under Rules (fields below).
  5. To add another rule, click Add at the top right of Rules. To remove one, click its ×.
  6. Click Submit.

The dialog closes and the profile appears in the list. The console doesn't check addresses or ports as you type: the check happens when you click Submit.

If the profile is rejected, the form is cleared

When you see an error after Submit, the dialog empties its fields and rules. Click Close, click Add Traffic Profile again and re-enter the profile. For profiles with many rules, note them down before you submit.

A new profile does nothing until you attach it to a machine: see Attach a profile to a machine.

Rule fields

FieldWhat to enter
ProtocolTCP (the default), UDP, ICMP (ping), All TCP, All UDP, All ICMP, All traffic, or Custom Protocol.
IPThe addresses the rule applies to, in CIDR form. 0.0.0.0/0 means anywhere. A single address ends in /32, for example 203.0.113.25/32. For an Inbound rule this is where the traffic comes from.
Port RangeThe ports, written start:end. One port is written with the same number twice, for example 22:22. 1:65535 means all ports.
Redirect Port RangeThe port on the machine that the traffic is delivered to, also start:end. If you don't want to forward to another port, enter the same range as Port Range. See Port redirect.
DirectionInbound (the default) for traffic coming into the machine, or Outbound for traffic leaving it.

Example rule sets

These are examples to copy and adapt. Replace 203.0.113.25 with your own public IP address (search "what is my IP" from your office network).

SSH from your office only

For a Linux machine you manage over SSH. Only your office can connect.

ProtocolIPPort RangeRedirect Port RangeDirection
TCP203.0.113.25/3222:2222:22Inbound

A public website

For a web server. Anyone can reach the website on HTTP and HTTPS, and only your office can use SSH.

ProtocolIPPort RangeRedirect Port RangeDirection
TCP0.0.0.0/080:8080:80Inbound
TCP0.0.0.0/0443:443443:443Inbound
TCP203.0.113.25/3222:2222:22Inbound

Remote desktop to a Windows machine

For a Windows machine you sign in to with Remote Desktop.

ProtocolIPPort RangeRedirect Port RangeDirection
TCP203.0.113.25/323389:33893389:3389Inbound
Don't open SSH or remote desktop to everyone

Rules with 0.0.0.0/0 on port 22 or 3389 let anyone on the internet try to sign in. Limit those ports to the addresses you connect from.

Port redirect

Redirect Port Range forwards traffic that arrives on one port to a different port on the machine.

For example, your application listens on port 8080, but you want people to reach it on the standard web port 80:

ProtocolIPPort RangeRedirect Port RangeDirection
TCP0.0.0.0/080:808080:8080Inbound

A visitor opens http://<public-ip>/ (port 80) and the traffic is delivered to port 8080 on the machine. Ranges work the same way: Port Range 8000:8010 with Redirect Port Range 9000:9010 sends 8000 to 9000, 8001 to 9001, and so on. Keep both ranges the same length.

Attach a profile to a machine

  1. Open Super MachinesMachines, select the prefix and open the machine (click its card or Super Id).
  2. Go to the Security/Access tab.
  3. Under Traffic Profile, click Attach. The Traffic Profiles dialog lists the profiles already attached.
  4. Search for a profile in the Traffic Profile box and select it.
  5. Click Add to put it in the list. Repeat for more profiles.
  6. To take a profile off, click × next to it.
  7. Click Save.
Save replaces the whole list

The machine ends up with exactly the profiles in the list when you click Save. If you remove every profile and save, all of them are detached, which can cut off your own access.

The attached profiles appear in the Security/Access tab. Click a profile there to see its rules.

If you click Add without selecting a profile, you'll see Please select a traffic profile.

View and edit a profile

  1. In Traffic ProfilesTraffic Profiles, open the profile's Action menu and click Open. The profile opens read-only.
  2. Click Enable Edit Mode at the bottom left.
  3. Change the name, description or rules.
  4. Click Submit.

Changes apply to every machine the profile is attached to. Check you aren't removing a rule another machine depends on.

Delete a profile

Deleting a profile can't be undone

Machines that use it may lose the access it allowed.

  1. Open the profile's Action menu and click Remove.
  2. Check the Super Id, Name and Description in the dialog.
  3. Click Delete.

Troubleshooting

  • I can't connect to my machine. Check that an attached profile allows your protocol, port and address with Inbound direction. Your public IP may have changed: update the IP field. If you are locked out, sign in through the console, which opens in your browser, and fix the profile meanwhile.
  • "unauthorized" or "unable to process request" The change was rejected, often because of a mistyped address or port range. Check the start:end format and the CIDR (for example /32 for one address).
  • After I opened a profile, the new-profile dialog shows its Super Id, and Add and × are missing under Rules. Click Enable Edit Mode to bring the buttons back. Ignore the Super Id: Submit still creates a new profile.