Open-source firewalls & network security

OPNsense

Explore how Palloran uses OPNsense at the network edge, when we route on a Layer 3 switch, and why we prefer OPNsense for the firewall.

Last updated: November 23, 2026

Official documentation

Products and technologies

OPNsense is a firewall and routing platform built on FreeBSD. It combines stateful traffic filtering with services for connecting networks, such as VPNs, routing policies and link monitoring. It can run on compatible x86-64 hardware or in a virtual machine.

Rack of servers and network hardware with connected cables
Illustrative photo by Sergei Starostin on Pexels
  • Interfaces and firewall rules

    Assign networks to managed interfaces and define the traffic each needs to reach.

  • Virtual private networks

    A documented VPN can connect an authorized remote endpoint, with separate rules for the traffic that may follow.

Software and hardware routing

The distinction is where packets are forwarded. A software router (sometimes called softrouting) processes packets primarily on a general-purpose CPU. A Layer 3 switch or specialized router can forward supported traffic in a dedicated chip, such as an ASIC. An appliance running OPNsense on an x86 CPU is still a software router, even when it uses hardware assistance for specific operations.

  • Routing on a CPU

    Its advantage is flexibility. The same gateway can combine stateful filtering, NAT, VPN, traffic shaping and detailed logs. It can be deployed on compatible hardware or virtualized.

    Throughput and latency depend on the CPU, network interfaces, packet sizes and enabled services. Small packets increase the work per gigabit, and encryption or inspection can compete for CPU time. Test the features you plan to run together.

  • Forwarding in an ASIC

    A switch ASIC can forward supported routes at high packet rates and with predictable latency. This is useful when large volumes of approved traffic move between local networks at the same time.

    Route and ACL table capacity is finite. Which traffic stays in hardware and which features are available depends on the model. Check route scale, ACL limits and how the switch handles exceptions before sizing it.

Where Palloran uses each

At Palloran we use OPNsense at the network edge and choose Layer 3 switching for high-volume internal traffic when the required controls can be enforced there. We decide which device routes each network by following actual traffic paths and marking the boundaries that require inspection.

  • OPNsense at trust boundaries

    We route internet and VPN traffic through OPNsense. We also bring selected internal networks through the firewall when they require stateful inspection, detailed logging or stricter access policies. An office with modest internal traffic can keep more routing on OPNsense when its measured capacity is sufficient.

  • Layer 3 switching for local traffic

    When approved servers exchange a large volume of data across VLANs, we can place those gateways on the Layer 3 switch and apply the controls supported by that device. The switch routes that traffic locally. Any flow that must be inspected by OPNsense needs an explicit path through it.

What a Palloran Labs deployment delivers

We typically deploy OPNsense where an organization needs firewall redundancy, granular access between networks and more than one internet link. We turn those requirements into a network design, an explicit policy for permitted traffic, and documented procedures for operating and recovering the deployment.

  • Continuity when a firewall fails

    A high-availability pair uses shared addresses so the secondary firewall can take over if the primary fails. We define which connection states need to synchronize and test what happens to active sessions, VPNs and critical services during failover and recovery.

  • Segmentation and auditable access rules

    We map who needs to reach what across staff, server, guest or industrial networks, then translate that map into VLANs, inspection paths and firewall rules. A traffic matrix records the source, destination, service and reason for each permitted flow. Testing allowed and blocked paths makes complex rules easier to review and change.

  • Multi-WAN failover and load balancing

    We monitor each internet link and define which services prefer a primary provider, which use a backup, and which can share capacity across providers. Load balancing distributes separate connections. Each connection uses the capacity of its assigned link. We test continuity for services sensitive to public IP changes, such as some VPNs or services with IP allowlists.

  • A network the team can operate and recover

    The handoff covers the topology, the traffic matrix, configuration backups and the procedure for reviewing and recovering changes. Testing the loss of a firewall separately from the loss of an internet link shows the operations team how to tell the two failures apart and respond.

Why open source matters to Palloran Labs

Open source is a design principle at Palloran Labs. It lets us build enterprise-grade networks around the organization’s needs while reducing dependence on costly renewal terms, intrusive activation requirements and restrictions on how the platform can be deployed or extended. We judge the result by how the network performs under load, how it handles failure and how well the team can operate it.

  • Budget for the resilience the network needs

    OPNsense Community Edition lets us design a redundant firewall deployment without a commercial subscription for the base platform on each node. We can allocate the budget to compatible equipment, independent internet links, testing, maintenance and the support the organization needs. Where a more selective upgrade cycle or a commercial feature matters, we can evaluate Business Edition as part of the total cost of ownership.

  • Keep the network operable by the client

    We hand over the topology, the reasoning behind the traffic rules and a recoverable configuration. The organization can maintain the system with its own team or with the support provider it chooses. If a firewall needs replacing, a configuration backup provides a starting point for restoring it on compatible equipment, with interface assignments and traffic paths checked before returning it to service.

  • Keep room to change the implementation

    A new site, a separate network for industrial equipment or a second internet provider should be a design decision the organization can make as it grows. Access to the source, documented API endpoints and compatible plugins give us ways to review behavior, connect monitoring and automate supported tasks. We evaluate the maintenance and support implications of each extension before putting it into production.

Why Palloran chooses OPNsense

Three things drive our preference for OPNsense: its open-source community edition, its documented API and its plugin ecosystem. Together they let us review the platform, automate supported operations and add the services a project needs.

  • OPNsense and pfSense

    pfSense Community Edition is open source and offers firewall, routing and VPN features. Netgate also offers pfSense Plus with additional features and integrations for some of its appliances. For our projects, the documented endpoints and available OPNsense plugins carry more weight when we design how the network will be operated and extended.

  • OPNsense and a custom FreeBSD gateway

    FreeBSD includes firewalls such as PF and IPFW and is a capable base for a custom gateway. That approach leaves the integration of services, administration, updates and recovery procedures to the team operating it. OPNsense gives us those workflows in an integrated web interface with configuration export and an API for supported modules.

  • OPNsense and BSD Router Project

    BSD Router Project (BSDRP) is a FreeBSD distribution focused on routing, with FRRouting and BIRD. It fits roles where route exchange is the main job. For an edge that also needs policy management, VPNs and extensions in one interface, we choose OPNsense.

Integrations with Proxmox, FreePBX and Grandstream

These design examples show how Palloran can combine a virtualized firewall and phone system with dedicated local switching. Virtualization gives each service its own maintenance and recovery lifecycle. A Layer 3 switch can handle selected high-volume paths while OPNsense applies policy at the network edge and between zones that require inspection.

  • Proxmox VE, OPNsense and FreePBX

    Proxmox VE hosts OPNsense and FreePBX in separate virtual machines. VLAN-aware bridges connect them to the intended networks and keep hypervisor management, WAN and voice traffic in separate segments. FreePBX manages extensions, queues and call routing. OPNsense controls access from phones and remote sites and applies the policy for traffic to the SIP carrier.

    This design lets the team back up and maintain each service independently and right-size its virtual resources. The host, storage and uplinks can still be shared failure points. For high availability, design the firewall pair across separate hosts, assess shared dependencies, and test how the PBX, phones and trunks behave when a host or link fails.

  • Grandstream Layer 3 switches with OPNsense

    A compatible Grandstream switch, such as one from the GWN7810 series, can serve as the gateway for selected VLANs. For example, an approved backup flow between server networks can stay on the switch, subject to the access controls the model supports. OPNsense handles internet links, VPNs and the routes between networks that require stateful filtering, such as access from a restricted segment to an internal service.

    To make both devices work as one design, we define which device owns each VLAN gateway, how routes are exchanged, and where access rules apply. We verify both directions of each path that requires firewall inspection and check the switch model’s routing and ACL capacity against actual traffic.

What you can build with OPNsense

The same platform can serve a single office, connect multiple sites or sit in front of private infrastructure. We select the features for the role, then size and test the gateway with those features active.

  • Segmentation and connected sites

    Separate staff, guests and services into networks with their own policies. Use WireGuard, IPsec or OpenVPN where the tunnel and endpoints fit, and route only the networks each site or user needs.

  • Continuity and dynamic routing

    Use gateway groups for multiple internet links, CARP for firewall redundancy and the FRR plugin to exchange routes with OSPF or BGP where it fits. Link failover and firewall failover address different faults and should be tested separately.

  • Visibility, automation and extensions

    Use rule logs and diagnostics to verify traffic paths, export the configuration for recovery and use documented API endpoints for supported tasks. Plugins extend the platform, with different maintenance and support levels. Review those levels and test upgrades against the features in use.

  • DNS, guest access and inspection

    Use Unbound for DNS resolution, a captive portal when the guest network needs a sign-in or terms page, and Suricata for intrusion detection or prevention where appropriate. Evaluate inspection performance with traffic and rules that represent the deployment.

Illustrative example

A hybrid office network

  1. Office and server VLANs
  2. Layer 3 switch routes approved local traffic
  3. OPNsense filters traffic at the edge
  4. Internet and VPN links
An approved backup flow between server VLANs stays on the Layer 3 switch. Internet and VPN traffic go through OPNsense. Guest clients can use the internet, while the design puts their gateway on the firewall and applies rules that limit access to internal services.

What to check before choosing

We size the firewall and switch against the same traffic map. For acceptance we measure the paths that will be used in production with routing and security features enabled.

  • Measure throughput, packets per second and latency with representative traffic, including concurrent VPN or inspection if applicable.
  • Verify permitted and blocked paths at each trust boundary, including traffic routed locally by the switch.
  • Test link or firewall failover as applicable, and restore a configuration backup before handoff.

Questions about OPNsense

Is a physical OPNsense appliance a hardware router?

The appliance is physical, and OPNsense normally forwards traffic using software on its CPU. A switch ASIC can take over forwarding for supported traffic when the design puts that traffic on the switch.

Will OPNsense see traffic between VLANs on the Layer 3 switch?

When the switch forwards directly between VLANs, that flow stays on the switch. Design the route through OPNsense for networks that require its inspection or logging.

Official references

Related Palloran capability

Palloran Labs is an independent integrator. We name these brands because we design with, install or sell their products. Unless a page says otherwise, this does not mean the brand endorses Palloran or that we are its official partner or distributor. Trademarks belong to their respective owners.