Firewall & Sentinel CSF

Updated 14 Nov 2026 Published

Firewall & Sentinel CSF

VinzaPanel gives you two ways to control which ports are open on your server:

  • Firewall (built in, sidebar Management → Firewall, /firewall/) — a simple page on top of UFW. This is what a fresh install uses.
  • Sentinel CSF (optional app from the Vinza Store, sidebar Security → Sentinel CSF, /apps/csf/) — Sentinel is the actively maintained, drop-in fork of ConfigServer Security & Firewall. It keeps the same csf command, lfd daemon and /etc/csf layout, and adds the Login Failure Daemon, temporary blocks, country blocking and connection statistics.

Use one or the other: Sentinel CSF replaces UFW.

The built-in Firewall (UFW)

The installer enables UFW and opens these ports:

PortUsed for
22SSH
2711The panel itself (or the port you chose for the panel)
80, 443Websites (HTTP / HTTPS)
53 (TCP and UDP)DNS, opened when the installer sets up the PowerDNS nameserver on the server's IP address

Apps open the ports they need when you install them, for example the mail ports for Mail Server or the FTP and passive ports for FTP Manager.

Firewall Rules Manager showing UFW active, the rule count, the Firewall Toggle and the Add Firewall Port Rule form

Open or block a port

  1. Go to Management → Firewall.
  2. In Add Firewall Port Rule, enter the Port Number — a single port such as 8080 or a range such as 40000:40100 — or click one of the presets (HTTP, HTTPS, SSH, FTP, FTP passive, MySQL).
  3. Choose the Protocol (TCP or UDP) and the Policy Action (Allow or Deny). Rules apply to Incoming traffic.
  4. Optionally enter a Source IP or network (for example 203.0.113.5 or 203.0.113.0/24). Leave it empty to apply the rule to everyone; with an address, the rule only applies to traffic from it.
  5. Add a Comment / Label so you remember why the rule exists, then click Create Firewall Rule.

The panel protects you from the most common mistakes:

  • A Deny rule that would cover the SSH port or the panel port for everyone, or a deny for your own IP address, is refused.
  • If UFW already has a rule for the same port, protocol and source that was set outside the panel, the new rule is refused — UFW would otherwise silently replace the existing rule instead of adding one.

Use the search box and the action, direction and protocol filters to find a rule; Remove deletes it. Edit comment changes only the label — the UFW rule itself is not touched.

Block an IP address

The Block an IP Address card stops all incoming traffic from one address or network, on every port. Enter the IP address or network, an optional Reason, and click Block IP. The block is placed ahead of the rules that open ports 80 and 443, so the address cannot reach your websites either. Your own address (shown on the card) cannot be blocked from here. Blocked addresses appear in the rule list as All ports; Remove lifts the block.

Rules set outside the panel

Rules that UFW enforces but that were not created on this page — the installer's ports, ports opened by apps, or a ufw allow you typed yourself — are listed under Rules set outside the panel. They are shown for reference; manage them with ufw on the command line.

Turning UFW on or off

The Firewall Toggle card shows the UFW status and lets you Enable Firewall or Disable Firewall.

Warning

Disabling the firewall leaves every listening service reachable from the internet. Only do it briefly, for example while troubleshooting.

When Sentinel CSF is installed, the Firewall page shows a banner with an Open CSF button, and adding rules or toggling UFW there is refused: UFW is off while CSF runs, so rules made on this page would not be enforced. If CSF is installed but disabled (csf -x), the banner warns that the server has no active firewall at all.

Sentinel CSF

Sentinel CSF is a premium app: it is included with the plans that include premium apps, and can be bought separately in the Vinza Store on other plans. See Pricing.

Install

  1. Click Vinza Store in the top bar and open Sentinel CSF.
  2. Click Install. The installer downloads a pinned Sentinel release, checks its SHA-256 checksum (and refuses to continue on a mismatch), installs the Perl modules it needs and configures CSF.
  3. Open Security → Sentinel CSF.

On the first install the port lists are built from what your server actually uses:

  • TCP in: 20, 21, 22, 25, 53, 80, 443, 465, 587, 993, 995, plus the port(s) your SSH daemon really listens on, the panel port (2711 by default) and every TCP port UFW was allowing.
  • UDP in: 20, 21, 53, plus the UDP ports UFW was allowing.
  • TCP out: CSF's defaults plus 465 (SMTPS, for a mail relay).
  • On servers with IPv6, the same lists are applied to IPv6.

If UFW was active, it is disabled — CSF now manages the firewall, and the rules on the built-in Firewall page no longer apply. Uninstalling Sentinel CSF turns UFW back on if it was active before CSF was installed.

Leave Testing mode

CSF is installed in Testing mode: its rules are cleared every 5 minutes, so the firewall is not protecting you yet. The sidebar shows a TEST badge until you switch.

  1. On the Overview tab, review the Ports lists (TCP_IN, TCP_OUT, UDP_IN, UDP_OUT).
  2. Make sure your SSH port and the panel port are in TCP Incoming.
  3. Click Enable Production Mode. This also starts LFD.
Danger

If your SSH port or the panel port is missing from TCP_IN when you leave Testing mode, you will lock yourself out. Keep an SSH session open and test a new connection before closing it.

While CSF is stopped or in Testing mode, permanent allow and deny entries are written straight to csf.allow and csf.deny and take effect once the firewall runs in production mode. Temporary allow and deny need the firewall running outside Testing mode.

What you can do on the page

TabWhat it does
OverviewFirewall state, LFD daemon state, Sentinel version, Service Control (Start, Restart, Reload, Flush Rules)
IP ManagementPermanent Allow (csf.allow) and Block (csf.deny) with an optional comment; Temp Allow / Temp Deny for a number of minutes; list and Unblock active temporary blocks
PortsEdit the four TCP/UDP in/out lists (comma-separated, ranges allowed) and Save & Apply, or use Quick Add / Remove Port to open or close a single port
Intrusion & TrafficLFD block events, a tail of lfd.log (load 200 lines) and top connections
Countries & BlocklistsIP Search (runs csf -g to show where an address is blocked or allowed), Country Blocking and Third-Party Blocklists (see below)
Config EditorEdit csf.conf directly. A backup is saved before every write, and saving restarts CSF automatically.

Country blocking and blocklists

  • Country Blocking — pick countries for Deny these countries (CC_DENY) or Allow only these countries (CC_ALLOW_FILTER). Only valid ISO country codes are accepted. By default CSF uses keyless country data (db-ip, ipdeny, iptoasn); you can enter a MaxMind GeoLite2 licence key instead, which is stored encrypted and never shown again.
  • Third-Party Blocklists — switch on the lists in csf.blocklists (such as Spamhaus DROP/EDROP, DShield, blocklist.de or Tor) with their refresh interval and maximum size.
Warning

CC_ALLOW_FILTER drops every other country on the open ports, so make sure your own country is in the list. Large country lists and blocklists become thousands of firewall rules unless LF_IPSET is on in csf.conf; the page warns you when it is off.

Tip

Before experimenting with blocks, add your own office or home IP with Allow on the IP Management tab so a mistake cannot shut you out.

Related pages

On this page