MEGAwit
The modern csf/lfd alternative

Lock down your server without locking yourself out.

MegaWit Firewall (MWF) is a modern iptables/ipset firewall with built-in brute-force protection for cPanel/WHM, Plesk & DirectAdmin. Manage allow, deny and ignore lists, auto-ban attackers hammering SSH, mail, Exim, cPanel, DirectAdmin and FTP, and control it all from a WHM dashboard — everything ConfigServer Security & Firewall (csf + lfd) did, rebuilt for today.

  • 15-day free trial
  • 1 server · unlimited accounts
  • CentOS 7+, CloudLinux, Alma, Rocky, Ubuntu, Debian

MegaWit Firewall

Firewall + brute-force protection: active

Example

Active bans

312

IPs & ranges

Auto-bans · 24h

47

brute-force daemon

Port policy

Deny

SSH always open

Attacks blocked — last 7 days

10:42AUTO-BAN203.0.113.24 · sshd failed logins · 24 h

10:42AUTO-BAN198.51.100.7 · Exim SMTP-AUTH failures

10:43PORT SCAN192.0.2.51 · probed closed ports · banned

10:44ALLOWMySQL 3306 from office IP only

Looking for a ConfigServer Security & Firewall (csf/lfd) replacement? MWF is a modern, actively-maintained alternative — same firewall + brute-force protection, with a real dashboard and safe-by-design defaults.

All csf alternatives compared →

Ports · GeoIP · brute-force · flood

Everything csf does — and more, in one panel

Control which ports are open, block by country, ASN and blocklist, stop brute-force logins and floods, and manage it all from WHM — no config files, no lock-outs.

Layer 01 · Real-time

Real-time brute-force protection (lfd)

A real-time daemon watches SSH, mail/Dovecot, Exim SMTP-AUTH, cPanel/Plesk/DirectAdmin and FTP logs every 2 seconds and auto-bans IPs with too many failed logins — with tunable thresholds and windows.

Log check every 2 s

Layer 02 · Policy

Port policy (default-deny)

Allow only the TCP/UDP ports you choose, inbound and outbound — block everything else. The csf "allow-only ports" model, with a one-click toggle.

Inbound & outbound

Layer 03 · Safety

Lockout-proof safety net

Even with default-deny on, your SSH port and established connections always pass — and a TESTING timer auto-reverts the policy if you don’t confirm you’re still connected.

Auto-reverting test mode

Layer 04 · Intelligence

MegaWit network blocklist

Attackers banned by other MegaWit servers are blocked on yours before they try. An IP is shared only after several independent customers caught it failing logins, and MegaWit customer servers and your allow list are never blocked. Opt-out with one click.

Refreshed every 15 min

Layer 05 · Engine

iptables / ipset engine

A dedicated MWF chain backed by ipsets — fast even with hundreds of thousands of blocked networks. Runs from CentOS 7 to EL9, Ubuntu & Debian, coexisting with or replacing csf.

Dedicated MWF chain

Layer 06 · Migration

One-command csf migration

Moving from csf? mwf import-csf (or one click in the panel) imports csf.conf, csf.allow, csf.deny and csf.ignore — ports, rules, countries, flood and lfd limits — with a preview first.

mwf import-csf

Also included

Advanced IP + port rules

Open a port to a single source ("MySQL from the office only"), or block a specific protocol/port — inbound or outbound, IPv4 & IPv6.

Country blocking (GeoIP)

Block or allow whole countries by ISO code. GeoIP ranges are downloaded and refreshed nightly, and your allow-list always wins.

ASN & public blocklists

Block entire networks by autonomous-system number, and subscribe to curated blocklists — FireHOL, Spamhaus DROP/eDROP, DShield, Emerging Threats.

Flood & port-scan protection

Rate-limit new connections per source, cap concurrent connections per IP and set per-port flood limits. Sources probing closed ports are detected and auto-banned within seconds.

Deny / Allow / Ignore lists

Permanently block, always-trust, or exempt-from-auto-ban any IP or CIDR — IPv4 and IPv6, applied live with no restart. Bans can auto-expire (1 h, 24 h, 7 days) or be permanent.

Live WHM dashboard

Active bans, 24-hour auto-bans, list sizes, port-policy state and license status at a glance — a real control panel, not a shell script. Multi-language.

Alert matrix

Choose which events (bans, floods, GeoIP refresh, license) notify you — over Email, Slack, Telegram or webhook, instantly or as a daily digest.

Inside WHM

A control panel, not a shell script

See what’s being blocked, ban or unban an IP and tune brute-force protection right from WHM — no SSH required.

  • Active bans and 24-hour auto-bans
  • Allow, deny and ignore list sizes
  • Port-policy state and license status
  • Bans, IP lists, ports, GeoIP, flood and alert settings
  • Multi-language panel

whm » plugins » megawit firewall

Example
License active Bans IP Lists Ports GeoIP Flood Alerts

Active bans

312

Auto-bans · 24h

47

Allow-listed

6

Deny-listed

18

Attacks blocked — last 14 days

SourceReasonAction
203.0.113.24SSH failed loginsAuto-banned · 24 h
198.51.100.0/24deny listBlocked · permanent
192.0.2.10allow listAlways accepted

Why switch

MegaWit Firewall vs csf/lfd vs Imunify360

ConfigServer Security & Firewall (csf + lfd) is powerful but config-file driven and no longer actively developed. Here’s how MWF compares — or see all csf alternatives compared.

Capability MegaWit Firewall ConfigServer csf/lfd Imunify360 (firewall)
iptables / ipset firewall check_circle check_circle check_circle
Port policy (allow-only ports) check_circle check_circle check_circle
Brute-force login protection Real-time Yes (lfd) check_circle
Port-scan detection + auto-ban On by default Off by default check_circle
Import an existing csf configuration One command — Partial
Advanced IP + port rules check_circle check_circle Partial
Country (GeoIP) blocking check_circle check_circle check_circle
ASN & public blocklists check_circle check_circle Partial
Shared attacker network (IP reputation) Included cancel check_circle
SYN-flood / port-flood protection check_circle check_circle check_circle
Allow / Deny / Ignore lists + temp bans check_circle check_circle check_circle
Full WHM dashboard (no config files) check_circle Basic UI check_circle
Lockout-proof default-deny (tested) check_circle Manual check_circle
Multi-language panel + alert matrix check_circle cancel Partial
Actively maintained check_circle Minimal check_circle
Price $9.99/mo free Higher

Free 15-day trial

Install in under 2 minutes

No credit card. The trial activates automatically on first install — one per server. Your existing firewall is left untouched.

  1. 1

    Log in to your server as root

    SSH into your cPanel/WHM, Plesk or DirectAdmin server (CentOS 7+, CloudLinux, AlmaLinux, Rocky, Ubuntu or Debian).

    $ ssh root@your-server-ip
  2. 2

    Run the one-line installer

    This installs the agent, sets up the firewall and brute-force protection, the WHM panel, and starts your 15-day trial automatically. It ships with a safe rule set — nothing is blocked until you say so.

    $ curl -fsSL https://install.megawit.com/mwf.sh | sh

    Uninstall anytime — removes the agent, services, cron and plugin cleanly (your other configs are left intact):

    $ curl -fsSL https://install.megawit.com/mwf.sh | sh -s -- uninstall
  3. 3

    Open the dashboard

    Go to WHM » Plugins » MegaWit Firewall for live bans, IP lists and brute-force settings (on Plesk: Extensions › MegaWit Firewall, or the left menu; on DirectAdmin: Admin Level › Extra Features › MegaWit Firewall — same one-line installer, no extra steps).

  4. 4

    Activate a license (when ready)

    Buy a key, then paste it in the MegaWit Firewall settings in your panel — no SSH required. It binds to this server and keeps everything running after the trial.

    Get a license

Pricing

One server, unlimited accounts

No per-account fees. Every cPanel, Plesk & DirectAdmin account on the server is covered for one flat price.

Monthly

Cancel anytime

$9.99 per month

  • Single server license
  • Unlimited cPanel, Plesk & DirectAdmin accounts
  • All features included
  • Automatic updates
  • Priority support
Buy monthly
Recommended

Annual

25% off

Best for production servers

$99 $74.25 per year

  • Single server license
  • Unlimited cPanel, Plesk & DirectAdmin accounts
  • All features included
  • Automatic updates
  • Priority support
Buy annual

Lifetime

25% off

Pay once, never expires

$199 $149.25 one-time payment

  • Single server license
  • Unlimited cPanel, Plesk & DirectAdmin accounts
  • All features included
  • Lifetime updates
  • Never expires
Buy lifetime

Best value · MegaWit Suite

Get all five products under one license

Shield, Postmaster, Firewall, Guardian and Monitor — one key, one server, unlimited accounts, priority support. $29.99/mo $59.95 · $299/yr · $599 lifetime.

Get the Suite

Compare every plan in the MEGAwit Store.

Frequently asked questions

What MegaWit Firewall does, how licensing works, and what it supports.

Is MegaWit Firewall a ConfigServer Security & Firewall (csf/lfd) alternative?

Yes. MWF is a modern replacement for csf + lfd. It gives you an iptables/ipset firewall with allow, deny and ignore lists plus brute-force login protection across SSH, mail, Exim, cPanel, DirectAdmin and FTP — all from a full WHM dashboard instead of config files. It can run alongside csf during migration or fully replace it.

Will it lock me out of SSH?

No. By default MWF only drops the IPs and ranges you deny or that the brute-force daemon bans, and your allow list is always accepted first. The optional default-deny port policy always keeps your SSH port and established connections open, and starts in a timed test mode that reverts by itself unless you confirm it.

What is the MegaWit network blocklist?

When MWF bans an attacker for failed SSH, mail, FTP or panel logins, it can report that IP to MegaWit. Once several independent customers have reported the same IP, it is published in a signed list that every MWF server blocks automatically, refreshed every 15 minutes. Only the IP and the attack type are shared — never logs, usernames or site data. Port scans are not shared, because their source address can be forged. MegaWit customer servers, your allow list and your own SSH session are never blocked, and you can turn sharing or blocking off in the panel.

Can I import my existing csf configuration?

Yes. Run mwf import-csf to preview what will be imported from /etc/csf — allow, deny and ignore lists, advanced rules, allowed ports, country blocks, SYN/port-flood and lfd limits — then add --apply (or use “Migrate from csf” in the panel). Anything csf supports that MWF cannot express is listed instead of being silently dropped, and default-deny is only switched on through the tested, auto-reverting mode.

Can I run it next to csf?

Yes. MWF uses its own dedicated iptables chain and ipsets, so it coexists with csf/firewalld without conflict. That lets you migrate gradually — then remove csf once you're comfortable.

How does the brute-force protection work?

A lightweight real-time daemon (lfd equivalent) reads new auth-log lines every 2 seconds and counts failed logins per source IP over a sliding window; it also bans sources that probe too many closed ports (port scans). When an IP crosses your threshold it's auto-banned with an expiry you choose, and you get an alert. Allow/ignore-listed IPs are never auto-banned.

How does the free trial & licensing work?

Run the one-line installer and a 15-day trial activates automatically — one per server, no credit card. One license = one server with unlimited cPanel, Plesk & DirectAdmin accounts; it binds to the server by hardware fingerprint and can be moved from your billing panel anytime.

Which panels and operating systems are supported?

CentOS 7+, CloudLinux, AlmaLinux, Rocky Linux, Ubuntu and Debian — anywhere cPanel/WHM, Plesk and DirectAdmin run, using iptables + ipset. The agent is a single static Go binary with no dependencies. On DirectAdmin, MWF also detects brute-force logins on the DirectAdmin panel itself and can import an existing csf configuration (DirectAdmin servers often ship with csf). The panel follows DirectAdmin's interface language automatically (English, Turkish, Spanish, German, Chinese).

Replace csf with something you can actually see.

Start a free 15-day trial in minutes, or grab a license and put a modern firewall in front of your server today.

No credit card · trial starts on install · 1 server, unlimited accounts