talira

OPNsense

Open source, feature-rich firewall and routing platform

open coreBSD-2-Clauseself-hostablefree

Forked from pfSense in 2014. Deciso, a long-time pfSense sponsor, forked it in 2014 over code quality, a GUI that ran root tasks, build tools that were no longer freely available, licence changes and a lack of transparency after Netgate took over; the first release, 15.1, came in January 2015 (OPNsense's About the Fork page)

OPNsense is an open source firewall and routing platform built on FreeBSD (release 26.7 runs on FreeBSD 15.1) that you install on your own x86-64 hardware or virtual machine and manage from a web interface. It covers a stateful firewall, multi-WAN failover, IPsec, OpenVPN and WireGuard VPNs, inline intrusion prevention with Suricata, a caching proxy, traffic shaping, a captive portal and CARP hardware failover, with plugins for more and a REST API for automation. Deciso, a long-time pfSense sponsor, forked pfSense in 2014, and the project now ships two major releases a year (January and July) with frequent updates under the BSD 2-clause licence. The paid Business Edition from Deciso trails the free Community Edition on a more conservative firmware repository and adds central management (OPNcentral), a web application firewall and OpenID Connect sign-in.

Problems it solves

  • replace my ISP's router with an open source firewall running on a small x86 box
  • turn an old desktop PC with two network cards into a firewall and router for my home network
  • an open source firewall distribution I can install on spare hardware instead of buying an appliance
  • build a firewall for our office network without paying for a commercial appliance licence
  • switch to a backup internet connection automatically when the main line goes down
  • spread traffic across two WAN links at our branch office
  • set up a site-to-site IPsec VPN between head office and our branches
  • let remote staff reach the office network over OpenVPN or WireGuard from their laptops
  • stop trojans and botnet command-and-control traffic at the network edge with inline intrusion prevention
  • run two firewalls as a failover pair with synced state so the network stays up if one box dies
  • keep IoT gadgets, guests and servers on separate VLANs with rules between them
  • show guests on our Wi-Fi a captive portal login page with printed vouchers
  • cache web traffic and block categories of sites through a transparent proxy for a school network
  • shape bandwidth on my router so video calls aren't starved by big downloads
  • find out which users, ports and applications use the most bandwidth from NetFlow reports

View all 27 problems

Features

  • stateful firewall for IPv4 and IPv6 with a live view of blocked and passed traffic
  • multi-WAN with load balancing and failover
  • IPsec (including route-based) and OpenVPN built in; WireGuard site-to-site and road warrior setups
  • inline intrusion detection and prevention with Suricata and Proofpoint Emerging Threats Open rules (ET Pro optional)
  • high availability with CARP, configuration synchronisation and synchronised state tables
  • forward caching proxy with transparent mode and blocklists
  • traffic shaper
  • captive portal with vouchers and a template manager
  • two-factor authentication (TOTP, RFC 6238) for the web GUI, captive portal, OpenVPN, IPsec and the proxy
  • authentication servers with local users and users synchronised from LDAP
View 9 more
  • REST API (/api/<module>/<controller>/<command>) with key and secret credentials and an auto-generated reference
  • community and third-party plugins, such as FRR dynamic routing (BGP, OSPF, RIP), BIND, ZeroTier, nginx and ClamAV
  • NetFlow analysis and health graphs with zoom and data export
  • encrypted cloud backup to Google Drive and Nextcloud; configuration history with coloured diffs
  • DHCP server and relay, DNS server and forwarder, dynamic DNS
  • 802.1Q VLANs and multi-zone support
  • MVC framework built on Phalcon, with configd as the backend service daemon
  • two major releases a year (January and July) with minor updates in between
  • Business Edition: OPNcentral central management, OPNWAF web application firewall, authoritative DNS, OpenID Connect sign-in

Limitations

  • Doesn't run on ARM boards such as the Raspberry Pi: OPNsense is only available for 64-bit x86-64 (amd64) hardware1

Ways to run it

OPNsense Community Edition

You run it, BSD-2-Clause

free12

Only in this edition

  • new features first: the free version is where features are tested before the Business Edition

Not included

  • OpenID Connect sign-in for the web GUI and captive portal34
  • OPNcentral central management of many firewalls35
  • the OPNWAF web application firewall3
  • the authoritative DNS server3
  • the official OVA virtual machine image35
  • the integrated GeoIP database35

You arrange

  • a 64-bit x86-64 (amd64) machine with at least a 1 GHz dual-core CPU and 3 GB of RAM
  • disk space for features that write to disk, such as the caching proxy and the intrusion detection alert database
  • community forum support

Self-hosting docs

OPNsense Business Edition

You run it, under a commercial licence

€149,00 / year for one installation; 3-year subscription €399,00 (sale; normally €447,00)35

Only in this edition

  • commercial firmware repository with a more conservative upgrade path (lags behind the Community Edition)
  • LINCE security verification by independent third parties
  • OPNcentral central management, provisioning and monitoring
  • OPNWAF web application firewall
  • authoritative DNS server
  • OpenID Connect sign-in
  • integrated GeoIP database
  • official OPNsense Open Virtualization Format (OVA) image
  • Practical OPNsense e-book in English and German
  • up to 20% discount on the base support package

You arrange

  • a 64-bit x86-64 (amd64) machine or virtual machine, or an official OPNsense appliance from Deciso

Self-hosting docs

Capabilities

Has an APIplan not known
Takes pluginsplan not known
Has single sign-onplan not known

Alternatives

The same job

These do what OPNsense does.

  1. pfSense Open source firewall, router and VPN software from Netgate
  2. IPFire The open source firewall
  3. VyOS Open-source router and firewall platform
  4. OpenWrt A Linux operating system targeting embedded devices
  5. MikroTik RouterOS The network operating system that powers MikroTik routers, switches, and wireless devices

Compare OPNsense with the top 3