r/opnsense • • 3h ago

Canadian options for a drop-in upstream firewall

2 Upvotes

Purpose is to introduce a firewall between the ISP modem (which is in bridge mode) and the existing home wifi router (which is in router mode) without making any changes to the home network that has a private and a guest/iot network. I don't want to put the existing home wifi router in AP mode.

Firewalla Gold SE fits the bill due to its transparent bridge mode option but shipping to Canada is expensive, added to the complexity of repairs under warranty.

Are there any equivalent *sense firewall options available in Canada that can work transparently in this scenario?


r/opnsense • • 4h ago

i5 7500 for 600Mb/s internet?

Thumbnail
gallery
14 Upvotes

I'm building my home network and i want to use OPNsense IPS to protect it. I wanted to keep the cost low so I landed on an OptiPlex 3050 SFF with the i5 7500 and 8GB DDR4 at a great price (planning to upgrade to 16GB) and an InLine 51125K LAN card (in the photos, most likely Realtek RTL8111).

I have 600Mb/s internet and I'm wondering if this CPU can handle this much bandwidth or should I go for the 7600/7700.

Also, will the InLine 51125K be a good pick or should i go look for a card with an Intel chipset?

I plan on using it with the TP-Link TL-SG1016DE.

Note: I'm based in Poland, so please don't send me any specific eBay/Amazon links, and just tell me what chipset I should be looking for.


r/opnsense • • 17h ago

Unbound num-threads setting

3 Upvotes

Is there a tunable or setting I can’t find? Id like to set it to 1


r/opnsense • • 19h ago

Upgrade from 26.7.9 to 26.7.10 corrupted base system (/lib/libedit.so.8)

16 Upvotes

(I wrote the following with the help of AI to sum up my experience)

Hi everyone,

just wanted to report an issue I ran into after upgrading from 26.7.9 to 26.7.10 to see if anyone else experienced something similar.

Setup:

  • Hardware: Intel N150 Mini-PC, WD Red SN700 500GB NVMe (nda0)
  • Filesystem: ZFS (single-disk stripe, UEFI)

What happened:

  • Triggered the firmware upgrade from 26.7.9 to 26.7.10.
  • After the upgrade, the system became unbootable.
  • Booting failed with an ld-elf.so.1 error indicating a corrupted /lib/libedit.so.8 shared library.
  • Due to the broken base libraries, accessing a local shell (including single-user mode) was not possible.
  • No ZFS Boot Environments were available in the boot menu to roll back.

Resolution:

  • Booted from an OPNsense 26.7 VGA live USB.
  • Imported zroot read-only and manually mounted zroot/ROOT/default.
  • Verified that /conf/config.xml was intact and backed it up to a second FAT32 USB stick.
  • Performed a clean ZFS reinstall on nda0 and restored config.xml.

I'm not sure what triggered the corruption during the upgrade process. Did anyone else hit a broken base system or libedit.so.8 error on the 26.7.10 update?


r/opnsense • • 1d ago

Tailscale PQC

3 Upvotes

Does anybody know how far behind official apps the OPNsense Tailscale plugin lags? Is a 1.106 release likely to come soon?


r/opnsense • • 1d ago

snia-net-mon - lightweight network flow monitor, running with OPNsense (40+ Vlans)

Post image
54 Upvotes

Hi,

I got tired of deploying heavy monitoring stacks like InfluxDB, Prometheus or Grafana just to keep an eye on local traffic spikes and weird network behavior, so Claudia and I built a small tool in Rust for it.

It's been running for 2 months on our OPNsense environment with over 40 vlans, without an issue. we are now able to find some update issues and suspicious traffic for free..

Repo: https://github.com/tritondm/snia-net-mon

It captures flows and stores aggregated metrics in hourly SQLite files (keeps writes fast and cleanup simple). It learns what's normal for each part of the network and warns you when something is off, e.g. a device suddenly uploading much more than usual. No thresholds to set. (Technically: EWMA / Z-score, details here: https://github.com/tritondm/snia-net-mon/blob/main/FEATURES.md#anomaly-detection).

You can try it out with Docker:

git clone https://github.com/tritondm/snia-net-mon

cd snia-net-mon

docker compose --profile demo up -d # web UI on :8080, with demo traffic

Since this is still an active side project, I'd love some feedback on the Rust codebase, SQLite performance under higher packet load, or how you handle lightweight anomaly detection in your own setups.

any feedback is welcome.

greets

Edit:
details on storage / SQLite ->
https://github.com/tritondm/snia-net-mon/blob/main/FEATURES.md#pre-aggregation-statistics-with-heavy-traffic


r/opnsense • • 1d ago

official site down?

Post image
20 Upvotes

https://opnsense.org/

I’m trying to download the ISO file, but I’m unable to access the website.


r/opnsense • • 2d ago

Securing opnsense router

18 Upvotes

I finally started using my own router after long caveats. Online I have seen plugins such as pfBlockerNG for pfsense that makes the firewall better. This obviously doesn’t work on opnsense so I was wondering how can I make my router more secure so I can expose websites or similar.


r/opnsense • • 2d ago

Looking at a ProtectLi, is opting for coreboot & TPM each worth while?

10 Upvotes

Only documentation I'm finding on secure boot for OPNsense is several years old. Obv new & unfamiliar as to whether it's since been implemented. Also generally curious about advantages or trade offs RE coreboot vs AMI. Thanks!


r/opnsense • • 2d ago

Updateloop with graphite2

2 Upvotes

Had to lock freetype2, harfbuzz, png and graphite2 to fix an update loop. Anybody else having that issue? Do I have to re-install?


r/opnsense • • 3d ago

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

Post image
34 Upvotes

EDIT: MY BAD, it was NOT the update. Further digging showed the real cause: I had grown the root filesystem online (growfs / on a mounted UFS root) about a minute before the update. The firewall log, which is written constantly, has entries every minute up to 19:38 and then nothing until the reboot at 19:56. So after the growfs, no writes reached the disk. The 26.7.10p2 update was just the first big write that got lost when the VM shut down. Sorry for the noise. 26.7.10p2 is fine.

Lesson: after growing a UFS root online, reboot right away and check that writes are still landing (e.g. the logs keep growing). Better still, do the resize from single-user mode. And snapshot the qcow2 first.

-------

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.

r/opnsense • • 3d ago

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

4 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 • • 3d ago

Opnsense, prefer only config or also CLI?

7 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.

Edit2: thanks everyone for the input. Idk how to make a poll so this will have to suffice for now.


r/opnsense • • 4d ago

Release 26.7.10p1 legitimate?

36 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 • • 4d ago

Suggest YouTube Channels that offers tutorials/guides.

5 Upvotes

r/opnsense • • 4d ago

SCP Config Backup Option

11 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 • • 5d ago

Firewall recommendations for 1 Gbps with WireGuard?

Thumbnail reddit.com
0 Upvotes

r/opnsense • • 5d 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 • • 5d ago

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

46 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 • • 6d ago

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

Thumbnail
makeuseof.com
340 Upvotes

Ran across this nice article.. just sharing FYI


r/opnsense • • 6d ago

Built an App for Myself

Thumbnail
gallery
129 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 • • 7d ago

Nomadix EG 6000 as an OPNsense box

Post image
79 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 • • 7d ago

Help choosing a 1U firewall appliance for Opnsense

Thumbnail reddit.com
8 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 • • 7d ago

No DNS query entries showing in Unbound DNS Reporting

Post image
5 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