Open source firewall, router and VPN software from Netgate
open coreApache-2.0self-hostablefree
pfSense is a firewall, router and VPN platform built on FreeBSD, available since 2004 and started as a fork of m0n0wall, with Netgate as its largest contributor. You install it on an amd64 machine or virtual machine, buy it on a Netgate appliance, or run it from the AWS and Azure marketplaces, and configure it in a web interface: stateful filtering, NAT, multi-WAN, IPsec, OpenVPN and WireGuard VPNs, CARP high availability, a captive portal and traffic shaping, plus packages such as Snort, Suricata, pfBlockerNG and HAProxy. It comes as two editions: the open source pfSense CE (Apache 2.0) and pfSense Plus, Netgate's commercial build with extras such as ZFS boot environments, OpenVPN DCO and the Netgate Nexus GUI and REST API. Netgate has announced that release 26.10, due before the end of November 2026, merges them into one edition with every feature free on any amd64 hardware, selling online upgrades and support instead.
Problems it solves
- a free firewall for my home lab that I can install on an old PC with two network cards
- an open source firewall distribution to install on spare hardware I already have
- replace an expensive commercial edge firewall at our small business with software on standard hardware
- block whole countries and lists of known-malicious IP addresses from reaching our network
- run signature-based intrusion detection and prevention on traffic at our internet gateway
- see and block which applications people use on the network with layer 7 detection
- connect several offices with VPN tunnels that fail over to a second internet link
- give remote workers VPN access with ready-made client configurations for Windows, macOS and phones
- run a firewall and VPN gateway in AWS or Azure to connect our cloud network to the office
- buy a small fanless firewall appliance that comes with support and lifetime software upgrades
- pair two firewalls in a high availability cluster so the backup takes over when the primary fails
- set up firewall failover inside a hypervisor or cloud where multicast doesn't work
- roll back a firewall upgrade or config change that broke things
- speed up VPN throughput on my firewall with crypto offload hardware
- cap each guest's bandwidth and total data transfer on a public Wi-Fi network
- check VPN and admin logins against our RADIUS or LDAP directory
- monitor my router over SNMP and get alerts by email, Telegram or Pushover
- load balance our web servers behind the firewall with a reverse proxy
- manage several firewalls and script their configuration through a REST API
- allow some firewall rules only during school or office hours
- keep using my ISP's fiber gateway for 802.1X authentication while my own router handles the traffic
- export NetFlow or IPFIX records from my firewall to a flow collector
- announce routes with BGP or OSPF from a software router at our network edge
- get vendor support with a guaranteed response time for our open source firewalls
- back up the firewall configuration automatically and encrypted to an offsite server
Features
- stateful packet inspection with per-interface rules, anti-spoofing and default deny
- inbound and outbound NAT, NPTv6, policy-based routing and static routes
- multi-WAN with load balancing and failover
- IPsec, OpenVPN and WireGuard VPNs, site-to-site and remote access, with tunnel failover
- L2TP/IPsec for mobile devices and OpenVPN client configuration export
- high availability clustering with CARP (also on AWS)
- captive portal with per-user bandwidth limits and data transfer quotas
- traffic shaping wizard and limiters for per-IP rate limits
- time-based firewall rules and connection limits
- IDS/IPS with Snort and Suricata packages, OpenAppID application detection and ntopng deep packet inspection
View 11 more
- IP and country block lists with the pfBlockerNG package
- packages such as HAProxy, FRR (BGP, OSPF), ACME, FreeRADIUS, BIND, nmap and the Zabbix agent
- local user database plus RADIUS and LDAP authentication with group-based privileges
- lockout after repeated failed logins, CSRF protection, DNS rebinding protection and HSTS for the web GUI
- dashboard widgets, RRD graphs, real-time traffic graphs, SNMP and remote logging
- notifications by GUI, SMTP email, Telegram, Pushover and Growl
- encrypted automatic configuration backup to a Netgate server
- DHCP server, DNS resolver and forwarder, dynamic DNS, PPPoE server
- pfSense Plus: Netgate Nexus GUI and REST API with multi-instance management (Plus 25.07 and later)
- pfSense Plus: ZFS boot environments, OpenVPN DCO, Intel IPsec Multi-Buffer, QAT, unicast CARP and layer 2 rules
- pfSense Plus on Netgate amd64 and ARM64 appliances and AWS and Azure marketplace images
Limitations
- Doesn't run on a Raspberry Pi or other ARM board you supply: on hardware not sold by Netgate it needs a 64-bit amd64 (x86-64) CPU1
Ways to run it
pfSense CE
Not included
- OpenVPN data channel offload (DCO) and Intel IPsec Multi-Buffer crypto4
- Intel QuickAssist (QAT) crypto acceleration4
- ZFS boot environments for rolling back a bad upgrade or configuration change4
- unicast CARP for high availability where multicast doesn't work4
- Ethernet (layer 2) filtering rules4
- native NetFlow and IPFIX export4
- the Netgate Nexus GUI and REST API45
You arrange
- a 64-bit amd64 (x86-64) machine with 1 GB or more RAM and an 8 GB or larger disk
- one or more compatible network interface cards
- a bootable USB drive or optical drive for the installer
- community forum support
pfSense Plus
pfSense+ w/ TAC Lite $129/yr, w/ TAC Pro $399/yr, w/ TAC Ent $799/yr per instance; included on Netgate appliances (Netgate 1100 $289) with lifetime upgrades and TAC Lite; on AWS and Azure from $0.08/hr2467
Only in this edition
- Netgate appliances with pfSense Plus preinstalled, lifetime upgrades and TAC Lite included
- AWS and Azure marketplace images
- Netgate Nexus GUI and REST API with multi-instance management
- ZFS boot environments
- OpenVPN DCO, Intel IPsec Multi-Buffer and QuickAssist crypto acceleration
- unicast CARP and Ethernet (layer 2) filtering rules
- TAC support around the clock, with 24-hour (Pro) or 4-hour (Enterprise) target response
Capabilities
| Has an API | plan not known |
|---|---|
| Takes plugins | plan not known |
Forks
- OPNsense Open source, feature-rich firewall and routing platform. Its own project since 2014.
Alternatives
The same job
These do what pfSense does.
- OPNsense Open source, feature-rich firewall and routing platform
- IPFire The open source firewall
- VyOS Open-source router and firewall platform
- OpenWrt A Linux operating system targeting embedded devices
- MikroTik RouterOS The network operating system that powers MikroTik routers, switches, and wireless devices
- TNSR A terabit software router and VPN concentrator
