r/opnsense • • 29m ago

26.7.10p2 (patch release 2) left core files at 0 bytes -> boot fails with "Call to undefined function convert_config()"

Post image
12 Upvotes

Setup: OPNsense 26.7.10p1 as a VM on Debian 13 (libvirt/KVM), qcow2 on virtio, UFS root. Disk uses libvirt's default cache mode (no `cache=` set, so not `unsafe`) with `discard='unmap'`. WAN is PPPoE, so the VM is also the host's only way to the internet.

What happened:

- Today I updated 26.7.10p1 -> 26.7.10p2 (the "patch release 2" in the 26.7.10 announcement thread: openssl35 3.5.10, openvpn 2.7.10, dnsmasq 2.93_2, opnsense 26.7.10p2). The update log finished cleanly, with no errors.

- On the next boot, rc.bootup died with:

`Fatal error: Uncaught Error: Call to undefined function convert_config() in /usr/local/etc/rc.bootup:63`

When I commented that line out, it failed on `system_devd_configure()` instead.

- The cause turned out to be that `/usr/local/etc/inc/system.inc`, `config.inc` and `util.inc` were 0 bytes, all timestamped at the moment of the update.

- `pkg check -s -a` showed checksum mismatches only in the 4 packages from this update (~2500 files in opnsense, ~6700 in openssl35, a few in openvpn and dnsmasq). Every other package was fine.

- `fsck` also found UFS inconsistencies (incorrect block counts, bad summary information, blocks missing from the bitmaps).

So the update created the package files, but their contents never made it to disk.

What it was not: earlier that evening I had grown the disk (20 -> 32 GB) and freed a few GB of Netflow and AdGuard data. The box kept running normally after that, `df` looked right, and the only damaged files were the ones written by the update. config.xml and everything else on the system was intact.

How I recovered (no internet, no keyboard on the console):

  1. Typed into the VGA console from the host with `virsh send-key` (a small wrapper script) and read the output with `virsh screenshot`.
  2. At the shell after the failed boot: `mount -ur /`, `fsck -fy /dev/gpt/rootfs`, then `reboot -n`.
  3. Copied `/conf/config.xml` to the host for safety.
  4. Gave the LAN NIC a temporary IP, downloaded the 4 .pkg files on another machine, served them from the host with `python3 -m http.server`, and pulled them into the VM with `fetch`.
  5. Ran `pkg add -f` for openssl35, dnsmasq, openvpn and opnsense. After that `pkg check -s -a` showed 0 mismatches, and after a reboot everything works again.

Questions:

- Has anyone else had 0-byte files after the 26.7.10p2 update, especially on VMs?

- Is there a known way for the updater to end up with files that aren't flushed to disk (e.g. a reboot/restart triggered too soon after extraction)?

Lessons learned: snapshot the qcow2 before every update, enable the serial console so `virsh console` works when boot fails, and keep a copy of config.xml off the box.


r/opnsense • • 8h ago

Opnsense, prefer only config or also CLI?

6 Upvotes

I am curious what you people prefer, do you only use the opnsense tooling, or do you also install packages and configure them on the cli?

When it comes to appliance type systems I never know how to feel about configs that will not be included in the built in system and backups.

What do you prefer for your setups?

Edit: an example reason for CLI usage would be to install extra software, or other advanced configs that is beyond the supported scope of the configuration tooling like webui or api.


r/opnsense • • 4h ago

Follow-up on my V1610 Suricata build: verifying client outcomes vs. allowed alerts (and where local AI hits a wall)

3 Upvotes

Back in October I posted my first test running inline Suricata on a Protectli Vault V1610 they sent over (OPNsense 26.7.5, Suricata 8.0.7_1). Since then I built out the log collection side on a wired Windows review unit (64 GB Minisforum MS-S1 MAX) and spent a few weeks testing a specific question: how much of OPNsense/Suricata alert triage can a local LLM actually handle reliably? All testing and opinions are my own.

The biggest lesson from this round had nothing to do with AI. During an early timed self-test, I misread my own logs. I saw an allowed STUN alert and assumed the connection went through without checking the Windows client. An allowed Suricata alert only tells you how one rule treated a packet. Multiple rules can fire on the same connection attempt, so you still need the EVE packet verdict if you log it, and confirming the app actually connected means matching the client-side record across all seven fields: attempt ID, timestamp, protocol, source/destination IPs, and source/destination ports.

To test that without any AI in the loop, I put together two short local exercises:

  • F05: Attempt 1 has one blocked entry plus ten allowed rule matches. Attempt 2 fires 11 seconds later with one allowed match, and there is a single client success receipt. All ten allowed matches belong to attempt 1, while the client receipt only matches attempt 2 (UDP 43005 to 3478).
  • F07: Fourteen allowed alerts to UDP 3478, paired with a client success record that matches the timestamp and attempt ID, except the port is UDP 443. That leaves the UDP 3478 outcome unknown rather than falsely marking it resolved.

For day-to-day OPNsense log review, everything that actually earns its keep runs completely model-free:

  • OPNsense sends RFC5424 syslog over UDP 5514 to a local listener that writes append-only JSONL segments and builds a derived SQLite index.
  • The local viewer collapses noisy repeats into a single expandable row (for example, 710 repeated STUN records on one line) and checks byte-offset hashes back to the raw log file.
  • The collector has zero firewall credentials. If the Windows box goes to sleep, the V1610 keeps enforcing rules normally, though the collector will miss incoming UDP syslog packets while asleep.

On the local AI side, I benchmarked several base models (Qwen3 4B, Qwen3.5 4B, Qwen3.5 9B, Gemma 4 12B QAT, and Ling-3.0-tiny) on receipt matching and next-check selection, then fine-tuned Qwen3.5 4B with QLoRA on Windows ROCm for raw flow triage:

  • When I added near-matching receipts to test strict seven-field joins, small non-thinking models failed badly (0/12 to 4/12 passes). Moving the seven-field join into deterministic Python solved it completely. Once Python handled the facts and record links, Qwen3.5 4B picked a useful next check and target on 21/24 fresh cases (22/24 after updating the option labels and instructions) compared to 4/24 for a fixed-order baseline.
  • QLoRA fine-tuning pushed dev attack flags from 1/62 to 61/62, with benign-labeled false flags rising from 0/152 to 18/152. Across six selected IoT-23 captures, though, 585 of 596 flows still required human review across flags and uncertain calls, and running a separate 27B model as a second-opinion reviewer moved 0 of 64 benign-labeled flags on a fresh Mirai capture (43-1).

Where I landed is pretty straightforward: deterministic Python handles grouping, exact record matching, and hash-verified links. Base Qwen3.5 4B stays strictly optional for scheduled summaries where Python passes in the verified facts.

If you want to run the model-free viewer, try the F05/F07 exercises, or inspect the 320-row offline scorecards (Muhstik 3-1 and Mirai 35-1):

For those running Suricata on OPNsense at home: when an unfamiliar allowed alert shows up, what are you checking or logging on the endpoint side to confirm the connection actually completed and see which process opened it?


r/opnsense • • 1d ago

Release 26.7.10p1 legitimate?

34 Upvotes

I went to add a plugin and was stopped due to a required upgrade to 26.7.10p1. It does not show up in the release notes. Is this a valid update?

[EDIT] this turns out to be a false alarm on my part. The naming convention has changed to be <release>pX, where X is the patch number


r/opnsense • • 1d ago

Suggest YouTube Channels that offers tutorials/guides.

3 Upvotes

r/opnsense • • 1d ago

SCP Config Backup Option

9 Upvotes

I've been running OPNsense for a couple years now and try to remember to export the XML config after changes via the web interface and check it into git on my Mac (I just use the local git CLI commands). I've been thinking about automating this a bit and have seen the options for doing this via a community plugin or two, as well as doing this via the API from an external system. One option I haven't seen so far (though I'm sure I'm not the first to think of it) is to just use "scp" from an external system to download the config instead of using the API. In its simplest form it's a one-liner that'll just grab the current config file to the local system. This assumes you've set up the appropriate user permissions as well as ssh access with a shared key, but I've had that configured for a long time. I also slapped together a little shell script to grab the current config file but only save it if it's different from the previously downloaded config as a test, and I'm thinking that I might just let multiple timestamped copies of the config accumulate rather than check them into git, since this would mimic the functionality of the System --> Configuration --> History feature of the web interface. I also still have my old git repo and plan to keep it current until I settle on one final solution, and it'd be easy to add that functionality to my script. I'll probably also end up fighting with cron before too long, too.

None of this is especially fancy or complicated, but since I didn't remember seeing the "scp" download method mentioned for config backups I thought I'd share it in case others find it useful. It definitely seems simpler than the API option, but it's a more special case so if you're wanting to automate other things then learning the API would be worth the effort. I happen to use a Mac so the Terminal makes this easy, but it'd be just as simple on any Linux distro out there, and I expect it would also work on Windows if you have the Windows Subsystem for Linux (WSL) installed.


r/opnsense • • 2d ago

This simply makes no sense and yes, documentation still doesnt match what shows on OPNSense.

10 Upvotes

Following up on this post: https://www.reddit.com/r/opnsense/s/VwbJhEc6qq

Somehow, I was able to get this running, added two peers and it was working.

Did a firewall update and ended on version OPNsense 26.7.10p1.

Added another peer and its able to talk to other devices inside, but of course, its now not able to access the web.

Went back to the instructions listed here: https://docs.opnsense.org/manual/how-tos/wireguard-client.html

And Sections 4a, 4b and 5 doesnt match whats is showing on my end.

Example from section 4b, the entry Translation/Target doesnt exist on the firewall.

There are many more like that but this is apparently a non ending quest.

So, can someone please guide me in what the heck I'm doing wrong so i can get internet access from the peers meanwhile connected?

Thanks.


r/opnsense • • 2d ago

The pfSense fork nobody asked for is now the one people actually recommend

Thumbnail
makeuseof.com
310 Upvotes

Ran across this nice article.. just sharing FYI


r/opnsense • • 2d ago

Firewall recommendations for 1 Gbps with WireGuard?

Thumbnail reddit.com
0 Upvotes

r/opnsense • • 2d ago

Block known-bad IPs and domains on OPNsense with the Q-Feeds plugin (free tier available)

44 Upvotes

Hi all, I'm Stefan, founder of Q-Feeds, so please read this as a vendor post. Here is how to set it up, in case it's useful.

1. Install the plugin
Go to System > Firmware > Plugins, search for the Q-Feeds plugin and click +.

2. Get a free API key
Register at tip.qfeeds.com, open Manage API Keys and click Create Free API Key. Then go to Security > Q-Feeds Connect, paste the token and click Apply. The plugin fetches the intelligence and creates the firewall aliases, including Malware IP.

3. Block the IPs
Add a Floating rule: action Block, your LAN interface, logging enabled, and the Malware IPs alias as destination. An inbound rule with the alias as source is optional if your inbound traffic is already tightly allow-listed.

4. Block domains (optional)
Unbound must be your primary DNS resolver. Enable "Register domain feeds" in Security > Q-Feeds Connect. On older builds, raise Firewall Maximum Table Entries to at least 2000000.

Good to know

  • The free Community feeds refresh every 24 hours.
  • Aliases match IPs and Unbound matches domains, so neither sees URL paths. Use a proxy or web filter for URL blocking.
  • Keep your API key out of chats and tickets.

Full guide: https://qfeeds.com/en-opnsense-documentation

Official OPNsense docs: https://docs.opnsense.org/manual/qfeeds.html

Free registration: https://tip.qfeeds.com/views/auth/register.php
Packages: https://qfeeds.com/pricing/

Happy to answer questions in the comments, and I'll pull in one of our engineers for the tricky ones.


r/opnsense • • 3d ago

Built an App for Myself

Thumbnail
gallery
113 Upvotes

I’m considering releasing it on the App store for ios and cloning it for Android. Anyone interested in using this? I will be releasing it 100% all features unlocked and free to download, everything stays on your device, I’m just adding a tip jar. Just need to know if anyone would be interested before buying a developer license.

UPDATE: Thank you everyone! It seems worth it to publish both iOS and Android versions of this app and making the source available on github. Stay tuned, I will try get this out over the holidays, and will post an update when it’s live!


r/opnsense • • 4d ago

Nomadix EG 6000 as an OPNsense box

Post image
74 Upvotes

The Nomadix EG 6000 is a hotel gateway that’s readily available used. Inside is a Lanner NCB-4210, the same general platform used for the WatchGuard Firebox M370/M470/M570 and other appliance device vendors. I've written up everything I found getting OPNsense fully working here:
https://github.com/chaiselozenge/eg6000-opnsense-writeup

I used claude to help me chase down how to test and verify various hardware behaviors.

What it ended up as:

  • Xeon E3-1240 v5, 4C/8T, turbo enabled
  • 2 × 4 GB DDR4 ECC UDIMM, ECC active
  • 8 × 1 GbE onboard (6 copper, 2 SFP), plus an Intel X550-T2 in the rear slot
  • 256 GB mSATA boot disk

What the write-up covers:

  • BIOS console redirection, which ships disabled
  • Front LCD under LCDproc, with a patch to change the backlight timeout
  • Middle LED as a WAN up/down light, and fan control via the WGXepc utility
  • Discussed the Nomadix LAN bypass relays, and how to check them
  • Extensive notes on the M570, M370 and the Nomadix AG 5900, including hardware details and expansion options.

Happy to answer questions.

TL;DR: After reading the pfSense on Watchguard M370 thread, I went down the Nomadix hardware rabbit hole and documented what I found.


r/opnsense • • 4d ago

Help choosing a 1U firewall appliance for Opnsense

Thumbnail reddit.com
7 Upvotes

I was wondering if anyone on this sub had any tips for me regarding my needs for an Opnsense firewall appliance. I've been looking at multiple different candidates until now, but couldn't find a great opportunity.


r/opnsense • • 4d ago

No DNS query entries showing in Unbound DNS Reporting

Post image
4 Upvotes

I don't understand why I don't see any DNS query entries showing in Unbound DNS Reporting. It's the first time I've stumbled upon this problem. I basically checked and tried everything in the OPNsense settings, but I haven't succeeded in getting it to work properly yet.

Could you please help me figure it out? Thanks


r/opnsense • • 4d ago

GeoIP blocking: Anyone doing it, and if so, what makes you decide which countries?

37 Upvotes

I'm interested in knowing what reasons make for blocking a given country. It seems obvious to say the clichés like Russia, China, North Korea etc, but surely there must be a list that is based on actual patterns of abuse. Does that even exist? Is GeoIP blocking even actually worth it anyway?


r/opnsense • • 4d ago

OPNsense on QEMU/KVM

Thumbnail
gallery
9 Upvotes

I've been trying to setup OPNsense in a virtual environment. I've attached some photos of the current configuration of the network interfaces and the vm running OPNsense. I have a couple client vms attached to the same 'opn-lan' network and when checking they are assigned an IP from the OPNsense DHCP server and I can ping the default gateway with no issues.

However, when I type in the webui ip in a browser on one of the client vms, the connection times out and I can't reach it. What am I missing here?

I'm still learning about OPNsense and want to figure it out in a sandboxed environment before deploying it on my actual hardware. Thanks in advance!

EDIT: Clarity

EDIT: This has been solved, after some research, it turns out that libvirt still assigns the .1 address to the virtual bridge interface on the host. Solved by changing interface LAN ip to ip ending in .2 in the OPNsense console.


r/opnsense • • 4d ago

How do u do packet inspection on opnsense?

2 Upvotes

r/opnsense • • 5d ago

CSRF check failed. Your form session may have expired, or you may not have cookies enabled.

5 Upvotes

Been running Opnsense as my router of choice for my and my kids' houses for over a year.

Yesterday, one of them refuses to allow logins via the web browser, with:

CSRF check failed. Your form session may have expired, or you may not have cookies enabled.

(I am still able to SSH to the router)

I have tried:

a) restarting the router
b) restarting my browser
c) using my browser (chrome) in incognito mode
d) using two entirely different browsers (edge and firefox)
e) using an entirely different PC
f) verifying the system time is correct on both the router and the PC
g) cookies are enabled, obviously

No configuration changes have been made recently to this router. Googling the error message provides little assistance other than checking the above items.

Any other ideas on things to try to resolve this, short of blowing away the configuration and setting it up from scratch?


r/opnsense • • 5d ago

New and Confused Firewall rules

4 Upvotes

I am migrating from Ubiquiti EdgeRouter 10X to Sophos SG 230 R1 for Opnsense. Firewall rules on EdgeOS were so much easier.. I'm lost and yes I google searched, finding stuff from the Home Network Guy and others.. A lot of the tutorials seem to be for older versions and I am struggling a bit to grasp the concepts.. Once I get the process concepts down I think I'll be okay..

Here is what I have and it's probably a bit over complex..
vlan10 - Private - Should have access to all other vlans
vlan11 - IOT, a few cross talk firewall rules for backups etc..
vlan12 - Guest, Internet only
vlan13 - vMotion, Blocked from Internet)
vlan14 - Security Cameras, Only Blue Iris allowed to the internet
vlan90 - Network management vlan, only Ruckus AP and Opnwrt APs allowed internet access.
vlan100 - Lab

Struggles
- Accessing Plex, Emby, and other servers from the primary vlan to the other vlans via my external domain.. So I don't think my NAT is setup correctly for Hairpinning / loopback. Plex works correctly via externally with Zoraxy.. Emby I cannot seem to get to communicate with at all externally.

A few other services work correctly with Cloudflare tunnels. Which is odd that some items work and some do not, but one item at a time..

- Cross vlan communications IE devices reaching across. I'm 100% it is the way I have my firewall rules configured.. I am not just sure exactly how to fix it..

I was trying to follow this guide initially from Home Networking Guy.
https://homenetworkguy.com/how-to/beginners-guide-to-set-up-home-network-using-opnsense/
It did not seem to work, I could not get out to the internet. I think there was conflicts with the automatic rules created so I found that I set the vlan up with the gateway things seem to work better. I think this is what is breaking my loopback and my cross vlan communications.. Based on my firewall logs, I see traffic for my phone hitting the WAN interface then trying to hit my private vlan. so I am pretty sure this is what is causing my internal to other vlan loopback and cross open rule issues.

One example I am having issues with is the Blue Iris IP hitting my Pihole on the other vlan.
Yes I know much of this is built into Opnsense, I was trying to migrate what I know until I learn what I do not know...

Now I see all kinds of blocked by default even though I think it should be allowed based on my firewall rules.

If you know of what I could google search for differently or have links, to assist in my issue that would be great!


r/opnsense • • 4d ago

Guest Network with third party gateway

Thumbnail reddit.com
0 Upvotes

r/opnsense • • 5d ago

Firewall: Migration assistant question

9 Upvotes

Hello, the other day I upgraded my OPNsense (home) firewall to:

Versions
OPNsense 26.7.6-amd64
FreeBSD 15.1-RELEASE-p4
OpenSSL 3.5.9

It looks like I need to migrate my legacy rules. Did you have any issues doing this or any downtime?

I have 24 rules to export and import.

Thanks


r/opnsense • • 5d ago

Promox 7.3 kernel

7 Upvotes

Has anyone who has a virtual install of OPNsense on Proxmox moved to the 7.3 kernel. If so have you had any issues or seen any improvements?


r/opnsense • • 5d ago

Made a free Windows tray app that tells you when your OPNsense Suricata alerts actually matter

Thumbnail
gallery
15 Upvotes

I run Suricata in IPS mode and got sick of scrolling the alerts page trying to work out what was real and what was just internet background noise. So I built IPS Watch, a small tray app that polls OPNsense through the API and only pings you when something's worth a look.

  • Scores alerts into findings (brute force, scans, sensitive ports, compromise signatures) using the firewall log, so the noise stays quiet
  • Tray icon goes red, plus toasts or Slack/Discord/ntfy/email alerts
  • Acknowledge or block an IP in one click, or select a batch and ack them all at once
  • A host page for any IP: its findings, IPS events, DHCP name, DNS activity and CrowdSec status in one place, plus a "who owns it?" registry lookup for outside addresses
  • Also watches firewall health, open port forwards, new devices, config changes, DNS (Technitium/Unbound) and CrowdSec

Free and open source (GPLv3), Windows only, no admin needed. Latest is 1.4.1. It's not code-signed yet, so SmartScreen will grumble; each download has a SHA-256 to check against. Screenshots use demo data.

GitHub: https://github.com/optimusprime-nn/opnsense-IDS-Monitor
Releases: https://github.com/optimusprime-nn/opnsense-IDS-Monitor/releases/latest
Docs: https://optimusprime-nn.github.io/opnsense-IDS-Monitor/

Feedback and bug reports welcome!


r/opnsense • • 5d ago

Would anyone mind verifying Gemini's instructions for creating a VLAN?

0 Upvotes

I'm quite the noob with networking beyond setting up regular commercial home routers (ASUS, Tp-link etc) and I only recently setup my DIY Opnsense router that i've mated to a TP-Link TL-SG105PE Switch and TP-Link EAP653 Access Point. I'm not intending do anything especially advanced with it but I did want to create a separate VLAN for my IoT devices and so not really knowing where to start I turned to AI but I dont know better than to trust it point blank. I'm going to paste the instructions it gave me below and I was hoping someone might be kind enough to tell me they seem OK or if anything is wrong with them?

### Goal & Hardware Overview

* **Router / Firewall:** OPNsense 26.7 (using Dnsmasq for DHCP/DNS)

* **Managed Switch:** TP-Link TL-SG105PE (Easy Smart)

* **Access Point:** TP-Link EAP653 (standalone mode)

* **DNS Filtering:** Two local AdGuard Home instances on the main LAN (`10.10.20.180` and `10.10.20.85`)

* **IoT Clients:** Brother laser printer, Amazon Echo speaker, TP-Link Tapo smart plugs

---

### 1. Network Layout

* **Trusted LAN (Untagged / VLAN 1):** `10.10.20.0/24` (Gateway: `10.10.20.1`)

* **IoT Network (Tagged / VLAN 30):** `10.10.30.0/24` (Gateway: `10.10.30.1`)

---

### 2. OPNsense 26.7 Interface & Dnsmasq Setup

* **VLAN Device (`Interfaces → Devices → VLAN`):**

* Parent: Physical LAN NIC (`igb1`)

* VLAN Tag: `30` (`IoT`)

* **Interface Assignment (`Interfaces → Assignments`):**

* Enabled `IoT` with Static IPv4 `10.10.30.1/24`

* **Dnsmasq (`Services → Dnsmasq DNS & DHCP`):**

* **General:** Added `IoT` alongside `LAN` under Interfaces; `DHCP register firewall rules` checked.

* **DHCP Range:** `10.10.30.100` – `10.10.30.200` (`255.255.255.0`) on `IoT`.

* **DHCP Option:** Set Option `dns-server [6]` on `IoT` to `10.10.20.180,10.10.20.85`.

* **Cross-VLAN Printing:**

* Installed `os-mdns-repeater` and bridged `LAN` and `IoT` only (with a static DHCP reservation on `10.10.30.0/24` for the Brother printer).

---

### 3. OPNsense Firewall Rules (`IoT` Interface — Top-to-Bottom)

Created an `RFC1918_Networks` alias containing `10.0.0.0/8`, `172.16.0.0/12`, and `192.168.0.0/16`.

*(Auto-generated Dnsmasq DHCP UDP 67 rule sits at the top)*

| # | Action | Protocol | Source | Destination | Port | Description |

| :--- | :--- | :--- | :--- | :--- | :--- | :--- |

| **1** | Pass | IPv4 TCP/UDP | `IoT net` | `10.10.20.180` | `53` | Allow IoT to Primary AdGuard Home |

| **2** | Pass | IPv4 TCP/UDP | `IoT net` | `10.10.20.85` | `53` | Allow IoT to Secondary AdGuard Home |

| **3** | Pass | IPv4 UDP | `IoT net` | `This Firewall` | `123` | Allow IoT NTP time sync |

| **4** | Block | Any | `IoT net` | `RFC1918_Networks` | `any` | Block IoT from LAN, firewall GUI/SSH, and private subnets |

| **5** | Pass | IPv4 Any | `IoT net` | `any` | `any` | Allow IoT internet access |

---

### 4. TP-Link TL-SG105PE & EAP653 Configuration

* **802.1Q VLAN (`TL-SG105PE`):**

* **Port 1 (EAP653):** VLAN 1 Untagged, VLAN 30 Tagged (PVID `1`)

* **Ports 2–4 (Trusted wired devices):** VLAN 1 Untagged, VLAN 30 Not Member (PVID `1`)

* **Port 5 (OPNsense LAN uplink):** VLAN 1 Untagged, VLAN 30 Tagged (PVID `1`)

* Saved configuration to flash (`Save Config`).

* **EAP653 SSIDs:**

* `Home` (Trusted): No VLAN ID (stays on untagged VLAN 1)

* `Home-IoT` (IoT): VLAN ID `30` (2.4 GHz)

Many thanks.