Skip to main content
UFW (Uncomplicated Firewall) is a user-friendly frontend for iptables, available by default on most Debian and Ubuntu systems. This guide covers installation, common rules, and DigitalFyre-specific considerations.

Installation

Initial Setup

Before enabling UFW, always allow SSH first. If you enable UFW without an SSH rule, you will lose access to your server and need to use the VirtFusion console (VPS) or IPMI (Bare Metal) to recover.
Confirm with ufw status verbose to verify your rules are active.

Common Rules

Allow by Port

Allow by IP Address

Deny and Rate Limiting

Deleting Rules

DigitalFyre-Specific Considerations

VPS (VirtFusion)

DigitalFyre VPS servers use cloud-init for initial provisioning and qemu-guest-agent for host communication. These services operate at the hypervisor level and are not affected by UFW rules inside your VPS. You are free to configure your firewall however you need.

Managed Services

If you have a managed service with DigitalFyre, you will need to allow access for DigitalFyre’s management infrastructure:
  • Jump Server IPs — Required for support team SSH access. Request these IPs from support.
  • Monitoring Probe IPs — Required for proactive server monitoring. Request these IPs from support.

Uptime Monitoring

DigitalFyre uses UptimeRobot for uptime monitoring. If you restrict ICMP or HTTP/HTTPS traffic, you may need to allowlist UptimeRobot’s probe IPs to avoid false downtime alerts. UptimeRobot publishes its probe IP list at: uptimerobot.com/inc/files/ips/IPv4andIPv6.txt At minimum, allow ICMP (ping) and HTTP/HTTPS (ports 80 and 443) from these addresses.

Useful Commands

Recovery

If you lock yourself out:
  1. VPS — Log in through the VirtFusion console (accessible from the customer portal) and run ufw disable or ufw allow 22/tcp
  2. Bare Metal — Access the server through IPMI/KVM and correct the rules
  3. If you cannot access the console, contact support for assistance