Cette page est affichée en anglais. Une traduction française est en cours.
ScriptsApr 29, 2026·3 min de lecture

pfSense — Open-Source Firewall and Router Platform

A FreeBSD-based open-source firewall and router platform with a web management interface for securing and routing network traffic.

Introduction

pfSense is an open-source firewall and router platform based on FreeBSD. It provides enterprise-grade networking features through a comprehensive web interface, eliminating the need for command-line firewall configuration. pfSense is widely deployed in home labs, small businesses, and enterprise edge networks as a replacement for commercial firewalls.

What pfSense Does

  • Provides stateful packet filtering with NAT, port forwarding, and traffic shaping
  • Routes traffic between network segments with support for VLANs and multi-WAN failover
  • Runs VPN services including OpenVPN, IPsec, and WireGuard
  • Performs DNS resolution and DHCP serving for local networks
  • Supports package-based extensions for Snort/Suricata IDS, Squid proxy, HAProxy, and more

Architecture Overview

pfSense runs on FreeBSD and uses the pf packet filter for firewall rules and NAT. The web interface is built with PHP and communicates with the underlying system through a configuration XML file and shell scripts. Network interfaces are managed via FreeBSD drivers, supporting Intel, Broadcom, and other NIC families. The package system extends functionality by installing and configuring additional FreeBSD services through the web GUI.

Self-Hosting & Configuration

  • Install from ISO onto dedicated hardware (x86_64), a virtual machine, or Netgate appliances
  • Minimum 1 GB RAM and two network interfaces (WAN + LAN) for basic operation
  • Configure firewall rules, NAT, and routing through the web dashboard
  • Install packages like pfBlockerNG (ad blocking), Suricata (IDS), or Squid (caching proxy)
  • Back up configuration as XML for easy migration and disaster recovery

Key Features

  • Multi-WAN support with automatic failover and load balancing across ISP connections
  • Captive portal for guest Wi-Fi authentication in hotels, cafes, and offices
  • Traffic shaping with ALTQ and Limiters for bandwidth management per user or service
  • High availability with CARP (Common Address Redundancy Protocol) for active/passive failover
  • Comprehensive logging and real-time dashboard with traffic graphs and system stats

Comparison with Similar Tools

  • OPNsense — fork of pfSense with a modernized UI and more frequent updates; pfSense has a larger community and longer track record
  • Untangle — commercial UTM appliance; pfSense offers comparable features at no licensing cost
  • MikroTik RouterOS — proprietary router firmware; pfSense is fully open source and runs on standard x86 hardware
  • IPFire — Linux-based firewall; pfSense provides a more polished web interface and broader package ecosystem

FAQ

Q: Can pfSense run on a virtual machine? A: Yes. pfSense runs well on VMware ESXi, Proxmox, Hyper-V, and other hypervisors. Assign at least two virtual NICs for WAN and LAN.

Q: Is pfSense truly free? A: The Community Edition (CE) is free. Netgate also sells pfSense Plus with additional features and official hardware appliances.

Q: How does multi-WAN work? A: pfSense can use multiple internet connections simultaneously, distributing traffic or failing over automatically when a link goes down.

Q: Can it handle gigabit throughput? A: Yes. On modern x86 hardware, pfSense handles 1 Gbps+ with firewall rules active. Hardware AES support accelerates VPN throughput.

Sources

Fil de discussion

Connectez-vous pour rejoindre la discussion.
Aucun commentaire pour l'instant. Soyez le premier à partager votre avis.

Actifs similaires