Advice needed: Mini PC for my first OPNsense firewall

Started by sam1970, Today at 08:18:21 PM

Previous topic - Next topic
Advice needed: Mini PC for my first OPNsense firewall

Hi everyone,

I'm new to OPNsense and would like to set up a dedicated mini PC as a firewall for my home network and homelab, running OPNsense directly on the hardware without Proxmox.

My current setup consists of an ISP modem/router, two managed Netgear switches (GS108E and GS308Ev4), a QNAP TS-664 running Docker containers (Pi-hole, Unbound, WireGuard), and a Raspberry Pi 5 running a second Pi-hole. I also use Proton VPN for selected traffic.

I'd like to gradually move routing, NAT, DHCP, VLANs and VPN management to OPNsense. I'm also interested in experimenting with Suricata IDS/IPS, Zenarmor and network monitoring. Gigabit speeds are sufficient for my needs, and since I already have managed switches, two physical network ports are enough.

Hardware

After browsing this forum, I came across the **HUNSN RJ35 with Intel Core i3-N305 (DDR4 version)**:

Amazon

I'd prefer a slightly more powerful CPU than strictly necessary to leave some headroom for future use.

I already have the following components available:

- 8 GB Transcend DDR4-2666 SO-DIMM (TS1GSH64V6B).
- 2× WD Red SN700, 250 GB NVMe M.2 2280.

According to the specifications, the HUNSN supports DDR4-3200. I'd like to start with my existing DDR4-2666 module and possibly upgrade to 16 GB DDR4-3200 later, when RAM prices become more reasonable. One NVMe drive is sufficient for my needs.

My questions

1. Does anyone have experience with this HUNSN N305? How reliable is it for 24/7 operation, particularly regarding cooling, power consumption, BIOS support and potential Intel i226-V issues?
2. Will my DDR4-2666 module work in this DDR4-3200 system, and is 8 GB enough to get started with Suricata?
3. Based on your own experience, are there any better mini PCs you would recommend?
4. Which OPNsense plugins or features would you recommend for a homelab? I'm considering Suricata, Zenarmor, ntopng, WireGuard and policy-based routing through Proton VPN.
5. Would you recommend keeping my existing Pi-hole installations, or would Unbound with DNS filtering in OPNsense be a good alternative? I'm also considering NetAlertX as a replacement for Fing for network device discovery.

My main priorities are reliable 24/7 operation, good firmware support and reasonable power consumption. I'm specifically looking for a compact mini PC, not a rackmount server.

Thanks in advance for your advice and experiences!

AFAIK, the HUNSN RJ35 was available as DDR-5 model only. The link you gave lead me to a different brand machine with DDR-4, but beware: that one has only 2 Realtek Gbit ports, so no 2.5 Gbit and non-Intel. That, I would avoid.

You will get no "decent" firmware support with any of these chinese machines, if any at all. That mostly does not matter much, because all that matters will be CPU microcode updates, which are included in OpnSense anyway. The only thing that matters id stability and potentially, power draw.

I would go for a 4 port I226V specimen and upgrade both RAM and SSD myself, so you can go for good brand units.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, Leox LXT-010H-D

1100 down / 450 up, Bufferbloat A+

Thanks for your advice. You're right about the Amazon listing. It's surprisingly difficult to find a reliable, reasonably priced mini PC for OPNsense on Amazon.

I've also been looking at Protectli and found these two models:

- VP3230: Intel N305, 8 cores, 2× Intel i226-V, DDR5 — €482.79 incl. VAT.
- VP2430e: Intel N150, 4 cores, 4× Intel i226-V, DDR5 — €458.59 incl. VAT.

Both are fanless and support NVMe storage.

I'm leaning towards the VP3230. For just €24.20 more, it offers twice the CPU cores and more headroom for experimenting with Suricata and other features.

Since I already use managed switches, I assume two Ethernet ports (WAN and LAN with VLANs) should be sufficient.

You recommended a four-port i226-V system, but I haven't been able to find a suitable four-port N305 model that's readily available to buy.

Is there a particular advantage to having four physical ports in my setup when everything is connected through managed switches?

Which of these two Protectli models would you choose, or would you recommend something else in this price range?

Thanks again!


Yes, there are two advantages:

1. When you use cross-VLAN-traffic, you do not share the bandwidth of one port. That might come in handy when you use file transfers from a NAS to a PC when both are connected via 2.5 Gbps. Incidentally, 300 MByte/s seems to be the speed where RAID-volumes with HDDs max out and also, Nxxx CPUs can also do that.

2. FreeBSD (and hence OpnSense) does not like mixing tagged VLANs and untagged traffic on the same interface. While you can fix that by using all tagged VLANs, some vendors prefer their management VLAN untagged (e.g. Unifi). Thus, you need two LAN interfaces: one untagged and the other for all tagged VLAN traffic.

That is obviously impossible with only two ports, unless you use another VLAN for WAN traffic. In that case, you can also use a router-on-a-stick.

Another warning: Cheap china boxes are often worse in cooling performance than, say, brand variants like Protectli (they also offer firmware updates). N305 uses more power than N150, despite having the same nominal TDP. While it is true that the performance is slightly better, it all originates from more threads. Last time I looked, Zenarmor supported only single threading in the CE version.

Supply of these boxes has diminished severely since prices are so high. You could get yourself an N1x0 four port box without RAM and SSD for < 200€ in 2025. The same box now costs >300€ and the RAM and NVME come in at another 200 instead of 100€.
Intel N100, 4* I226-V, 2* 82559, 16 GByte, 500 GByte NVME, Leox LXT-010H-D

1100 down / 450 up, Bufferbloat A+

Four network interfaces vrs two is to not constraint yourself from the start if you can avoid it. Yes you need only two but you'll soon find use for the spare ones.
Memory DDR4-3200 vrs DDR4-2666 makes very little difference in a router firewall IMHO. Use what you have. You'll need to research a little what works on them.
Since you say you are new to this, I'd suggest getting the basics going first before moving on. That is get your core services going: routing, firwalling, NAT, DHCP. Once you put it in place disable your existing ones to avoid conflicts and you should be golden.
You don't say if your ISP is giving you an ip by VLANs on their side or PPOE - those need details in advance to set OPN on first.
Later you can move on to VLANs.
Then policy routing for VPNs.
Finally services like Suricata, Zenarmor, etc. I'd leave those for last.
Good luck in your new adventure.