pfSense VPN - IPsec, OpenVPN, and WireGuard Tunnels

pfSense VPN - IPsec, OpenVPN, and WireGuard Tunnels

pfSense supports three VPN protocols: IPsec, OpenVPN, and WireGuard. Each protocol has distinct characteristics in terms of performance, compatibility, and ease of configuration. The choice of protocol depends on the specific requirements of the deployment - connecting remote employees, linking branch offices, or integrating with third-party equipment.

VPN Protocol Comparison

CharacteristicIPsecOpenVPNWireGuard
PerformanceHigh (hardware acceleration)Moderate (userspace)High (kernel-level)
CompatibilityIndustry standard, works with any vendorRequires OpenVPN client on both sidesLimited third-party device support
Ease of SetupComplex (numerous Phase 1/2 parameters)Moderate (PKI infrastructure)Simple (minimal parameters)
Use CasesSite-to-site, IKEv2 mobile clientsRemote access, site-to-site through NATSite-to-site, remote access
Native OS SupportWindows, macOS, Linux, iOS, Android (built-in)Requires client installation on all platformsWindows, macOS, Linux, iOS, Android (built-in)
NAT TraversalRequires NAT-T (UDP 4500)Works on any port, including TCP 443Works through NAT (UDP)

Choosing the Right Protocol

IPsec should be used when connecting sites with equipment from different vendors (Cisco, Juniper, Fortinet) or when providing remote access through the built-in IKEv2 client in operating systems without installing additional software.

OpenVPN is the optimal choice for employee remote access with centralized certificate management and Active Directory integration. The protocol operates reliably in networks with restrictive policies, as it can use TCP 443.

WireGuard is recommended for new deployments where third-party equipment compatibility is not required. The protocol provides minimal latency and straightforward configuration. Native support in pfSense is available starting with version 2.7.

In This Section

  • IPsec VPN - site-to-site tunnels, IKEv2 for mobile clients, troubleshooting, and connecting to third-party equipment
  • OpenVPN - remote access server, site-to-site tunnels, client configuration export, and Active Directory integration
  • WireGuard VPN - tunnel creation, peer configuration, interface assignment, and client setup
Last updated on