Firewalls

Virtualized Severs > Features

Firewalls

Updated

A firewall filters traffic to and from a server before it reaches the operating system. Rules are set per server in the portal or the CLI, and the firewall is free on every VPS.

Key features

  • Ordered rules: rules are checked top to bottom, and the first match wins.
  • Default inbound policy: choose whether inbound traffic no rule matches is allowed or blocked.
  • Server references: allow or block another of your servers by name. The rule follows that server's IPs as they change.
  • Drafts and deploys: edits save to a shared draft and take effect only when you deploy.
  • History: every deploy is kept as a version you can compare and revert to.
  • Blocked traffic: see what the firewall dropped, which rule dropped it, and export the list.

The firewall runs on the host, outside your server. It works alongside any firewall inside the operating system, such as or . Traffic has to pass both.

How rules are evaluated

Each rule matches on direction, protocol, ports, and the remote address, and then allows or blocks the traffic. Rules are checked in order, and the first rule that matches decides. Put specific rules above broad ones.

FieldDescription
DirectionInbound (traffic to the server) or Outbound (traffic from it).
ActionAllow or Block.
ProtocolAny protocol, , , (IPv4), or .
PortsA port, a list, or a range, such as , , or . and only. Empty means All ports.
Source / DestinationThe other end of the connection: the source for inbound rules, the destination for outbound rules. Up to 10 IPs, CIDR ranges, or your other servers. Empty means Anywhere.
NoteOptional text, up to 120 characters, for what the rule is for.

A single rule takes either IPv4 or IPv6 addresses, not both. To cover both families, add one rule for each.

Outbound traffic is allowed unless a rule blocks it.

Default inbound policy

The last row in the list, All other inbound traffic, decides what happens to inbound traffic that no rule matches.

SettingBehavior
AllowEverything gets in unless a rule above blocks it. This is the default on new servers.
BlockOnly what a rule above allows gets in.

Before you switch the default to Block, add a rule that allows SSH (), or RDP on Windows, from your own IP. Otherwise you lock yourself out of the server. The (my ip) hint next to the address field shows the address you're connecting from.

Blocking inbound traffic doesn't break the server's own connections. Replies to traffic the server started are allowed back in, and DHCP and IPv6 neighbor discovery keep working.

Rules Synteq applies

One platform rule sits above your rules and can't be changed from the firewall.

RuleDescription
Outbound TCP 25 (SMTP)Blocked on every server to stop open mail relays. To send mail directly on port 25, select Request access on that row and fill in the port 25 form. This opens a support ticket.

Ports 465 and 587 aren't affected, so you can send through a mail provider without a request.

Using your other servers as a source or destination

In the IP, range or server field, pick one of your other servers in the same organization instead of typing its IPs. The rule matches that server's current addresses, and it updates automatically when the server's IPs change.

If the referenced server is terminated or moved to another organization, the rule stops matching it and the server shows as Removed server. Remove or replace the reference when you next edit the rules.

Editing and deploying rules

Rules are on the server's Network tab, in the firewall section. You need permission to manage the server to make changes. Members with read-only access can view the rules and blocked traffic.

  1. Open the server and select the Network tab.
  2. Select Add rule and fill in the fields. Drag the handle on the left to reorder rules.
  3. Set All other inbound traffic to Allow or Block.
  4. Select Deploy and confirm.

Edits save automatically to a draft shared by everyone on the team, and nothing changes on the server until you deploy. The note beside Deploy shows when the draft was last saved and by whom. Changes usually take effect within a minute of deploying.

If someone else deploys while you're editing, the portal warns that your draft was started from an older version. Review the history before deploying.

Editing as JSON

Switch to the JSON view to edit the whole list as text. Each rule is an object, in evaluation order:

[
  {
    "direction": "in",
    "action": "accept",
    "protocol": "tcp",
    "ports": "22",
    "remote_cidr": "203.0.113.7/32",
    "remote_resource_ids": [],
    "note": "office SSH"
  },
  {
    "direction": "in",
    "action": "accept",
    "protocol": "tcp",
    "ports": "80,443"
  }
]

and are required. defaults to , and an empty with no means anywhere. The editor flags errors as you type, and you can't deploy until they're fixed.

History and reverting

Select Version history to see every deploy and every draft edit, with a diff against the state before it. To go back, select Revert the draft to this on an entry. Reverting loads that state into the draft; deploy it to apply it.

Deployed versions are kept for the life of the server. Draft edits are kept for 90 days. When a server moves to another organization, its rules move with it, but the history stays with the old organization.

Blocked traffic

The Blocked traffic list shows packets the firewall dropped, newest first, with the rule that dropped them or All other inbound traffic. Filter by direction, rule, or time range, search by IP, port, or protocol, and export the list as CSV or JSON.

The list covers up to the last 7 days. Counts are a sample, so read them as a minimum. The history covers only the time since the server joined your organization.

Logging is on by default. To turn it off, open the server's Settings tab and set Blocked traffic history to off. Turning it off stops recording and hides the list. It doesn't change your rules.

Managing the firewall from the CLI

The CLI has the same controls. Each command takes the server's ID, hostname, or IP.

# Show the rules and the default inbound policy
synteq vps firewall web-1

# Allow SSH from one IP, then block all other inbound traffic
synteq vps firewall add web-1 --direction in --action accept --ports 22 --remote 203.0.113.7/32 --default-in drop

# Allow everything from another of your servers
synteq vps firewall add web-1 --direction in --action accept --protocol any --server db-1

# Remove the rule at position 3
synteq vps firewall remove web-1 --position 3

# Replace the whole list from a file
synteq vps firewall set web-1 --file rules.json

# Show dropped traffic from the last 48 hours
synteq vps firewall blocked web-1 --hours 48

CLI changes deploy immediately and don't go through the draft. See the CLI reference for every flag.

Limits

LimitValue
Rules per server50
IPs, ranges, or servers per rule10
Ports per rule15 (a range counts as two)
Note length120 characters
Blocked traffic window7 days
Draft edit history90 days

Was this helpful?