Recent posts

#1
General Discussion / Re: Bhyve on OPNsense for virt...
Last post by JamesFrisch - Today at 04:34:00 AM
Quote from: smalltime on August 05, 2025, 01:34:56 AMFor anyone else who finds this post, I don't think I'm smart enough to tell you whether or not you should run VMs on your OPNsense server,

IMHO you should not. It makes no sense. Even if you really want to have only one server running and bare metal networking performance at the same time, you are better of using Proxmox as Hypervisor and passtrough your NIC(s) to a OPNsense VM.
#2
General Discussion / Re: Bhyve on OPNsense for virt...
Last post by mattlach - Today at 02:11:50 AM
Quote from: gspannu on January 17, 2026, 06:44:07 PM
Quote from: mattlach on April 05, 2024, 06:07:28 AMThis is good info.

I have been running OPNSense as a guest under Proxmox on a small server that has one other VM on it (basic linux install for pihole) but I have found that WireGuard requires WAY more CPU than I expected at gigabit speeds, so I am considering doing away with Proxmox, running OPN Sense bare metal, and moving the pihole VM into bhyve on OPNSense instead to make sure OPNSense can talk straight to the hardware and be more efficient.

In my config the one VM would not be externally exposed, but instead get its own entirely virtual local network on the LAN side of the OPNSense firewall, so I am not terribly concerned about security, but I'll port scan it from the WAN side just to make sure.

I probably won't get around to this right away, but when I do I'll definitely post back here.

Thanks for sharing.

I intend to run a similar setup (a PiHole running on Alpine Linux in a VM under bhyve).

Did you ever manage to get this setup working properly? Can you share your complete/ detailed instruction set.. would be much appreciated.

Thanks.

Sorry for the delayed response.  I guess I don't log in on these forums often enough.

I wound up going in a different direction on this, so I am no longer pursuing Bnyve.

I wound up sticking with Proxmox/KVM/LXC with OPNSense running under KVM with passed through NIC's and a small linux container under LXC as my piHole install.

Instead of consolidating with Bhyve, I wound up expanding the hardware, upgrading my 4C/4T Rocket Lake Xeon to a more capable, higher clocked 16C/32T server and have gobs of CPU capacity, so I no longer have to get creative in order to keep things running smoothly.
#3
General Discussion / Release related end-user burno...
Last post by OPNenthu - Today at 01:32:42 AM
In response to @franco's comment here-
 
I say "yay!" for more frequent security fixes, but I have a concern if the frequency of release notes that I need to pay attention to increases ;)  Anything in the works to automate security patches but leave the features and (potentially) breaking changes as manual updates?

Actually I'm not sure what's less cognitive load: more things less often, or fewer things more often.
#4
I can confirm these patches are working on OPNsense 26.7.9_3 with a TP-Link UE306 USB to Ethernet Adapter (ASIX AX88179B chipset). Thanks @web!
#5
QuoteHow should WAN failover be configured when only a single ISP IP address is available?

It should not. You should pick a contract that gives you a public /29.
#6
High availability / Re: HA (CARP/pfSync) with Sing...
Last post by shaam - November 21, 2026, 11:44:58 PM
Cisco Switch's VLAN configuration screenshot. Thanks
#7
High availability / Re: HA (CARP/pfSync) with Sing...
Last post by shaam - November 21, 2026, 11:44:14 PM
Secondary firewall screenshots; I'll add the switch screenshot to the second reply. Thanks
#8
High availability / HA (CARP/pfSync) with Single I...
Last post by shaam - November 21, 2026, 11:42:55 PM
Hi Community,

I'm looking for some guidance with my OPNsense HA setup. I've been working on this on weekends for the last six months, adding one piece at a time as my schedule allows, but I've run into a few issues that I haven't been able to resolve.

Environment
  • ISP provides only one public IP address. I requested a second IP, but they would not provide one.
  • ISP modem: Motorola
  • Switch: Cisco SG350-28P
  • Two OPNsense firewalls (Primary and Secondary)
  • Each firewall has:
  • - WAN interface
  • - LAN interface
  • - Dedicated interface for pfSync
Physical Connectivity

WAN Side


  • Motorola modem → Cisco switch port 21
  • Cisco switch port 22 → Primary Firewall WAN
  • Cisco switch port 20 → Secondary Firewall WAN

LAN Side

  • Cisco switch port 23 → Primary Firewall LAN
  • Cisco switch port 24 → Secondary Firewall LAN

Synchronization

  • Dedicated interface between firewalls for pfSync
  • Primary: 10.0.0.1
  • Secondary: 10.0.0.2

I also created five production VLANs on both the firewalls and the switch. Additionally, I created VLAN 99 on the switch for the WAN network.

HA Configuration

On the primary firewall under System > High Availability:

  • Selected the pfSync network
  • Configured state synchronization
  • Added the secondary firewall IP
  • Added the root credentials for configuration synchronization
  • Enabled synchronization for services and applied changes

Configuration synchronization appears to be working for firewall rules. However, VLANs did not synchronize, so I had to manually create them on the secondary firewall.

CARP Configuration

On both firewalls:

  • Configured CARP Virtual IPs
  • Interface selected: LAN

Current status:

  • Primary firewall: MASTER
  • Secondary firewall: BACKUP

LAN addressing:

  • Primary LAN IP: 192.168.1.252
  • Secondary LAN IP: 192.168.1.253
  • CARP VIP: 192.168.1.1
Issue1 - WAN IP Does Not Return to Primary After Failover

When I shut down the primary firewall, the secondary firewall became active as expected.

However, after bringing the primary firewall back online and stopping the secondary firewall, several devices stopped working and the primary firewall would not obtain the ISP WAN address.

From the CLI, I could see DHCP activity and the ISP-assigned address (something like 72.x.x.x/23), but the WAN interface in OPNsense showed no IP address.

I left the system overnight without success.

The next morning, I powered off:

  • Primary firewall
  • Secondary firewall
  • Modem
  • Switch

for about an hour. After powering everything back on, the primary firewall immediately obtained the WAN IP again and Internet access returned.

I contacted my ISP, and they said they can't manually release the IP lease on their side and suggested the issue is likely related to the firewall or modem.

Now Questions
  • How should WAN failover be configured when only a single ISP IP address is available?
  • Is there a recommended method to release or renew the WAN DHCP lease during failover?
  • Could the ISP modem be caching the MAC address of whichever firewall last obtained the lease?
  • Should I use CARP on the WAN side as well, or another approach for a single-public-IP environment?
  • Has anyone successfully implemented OPNsense HA with a single ISP-provided DHCP address?

Issue #2 - Secondary Firewall Appears to Be Serving DHCP While in BACKUP State

Despite the secondary firewall showing BACKUP status, I noticed devices appearing in its DHCP lease table.

My work laptop repeatedly lost Internet connectivity. While troubleshooting, I discovered it had received its lease from the secondary firewall.

The lease information showed DHCP Server: 192.168.1.253 (Secondary Firewall) instead of DHCP Server: 192.168.1.1 (CARP VIP)

This appears to indicate the backup firewall is still responding to DHCP requests even though it is not the CARP master.

Now Questions are
  • How can I ensure clients always receive DHCP leases from the CARP VIP (192.168.1.1)?
  • How do I prevent the backup firewall from serving DHCP while it is in BACKUP state?
  • Is there additional DHCP failover or HA configuration required beyond CARP and pfSync?
  • Could this be the reason some devices failed during testing?

Some more questions
  • Is it expected that VLANs do not synchronize through configuration synchronization and must be created manually?
  • Are there any obvious issues with my physical topology or VLAN design?
  • Is a dedicated WAN VLAN on the switch the recommended design when both firewalls share the same ISP connection?

I have attached screenshots from both firewalls and the Cisco switch. The secondary FW and switch screenshots are in the reply post, since it only allowed 4.

Any guidance, recommendations, or examples from similar deployments would be greatly appreciated. Thank you for your time and help!
#9
26.7, 26.10 Series / Re: Any way to automate update...
Last post by Patrick M. Hausen - November 21, 2026, 11:21:47 PM
Why so complicated? Just use bectl - these snapshots will contain everything important.
#10
General Discussion / Re: Has anyone heard of / trie...
Last post by Patrick M. Hausen - November 21, 2026, 11:20:44 PM
Why not use GPL or Affero GPL?