OPNsense on any small scale dual LAN box, either a used mini PC or a purpose made one.
pfsense running on whatever hardware that doesn’t use too much power
Or opnSense
I’ve been using an R210ii with PFSense for like 8 years now. It’s been rock solid and only sips like 20 watts.
MikroTik is very affordable and can be configured quite extensively.
We probably need more details as to what exactly you’re attempting to accomplish and how you’re attempting to accomplish it.
The main issue is that each rule you add to a firewall has a performance penalty: each packet is checked against each rule before it’s passed.
Ten rules require 10x more cpu than 1 rule, 100 rules need 10x more than 10 rules, and so on.
Depending on how much traffic and how many rules we’re talking about and what kind of expectation you have for performance as well as anything else (eg. vpn endpoint), “small and cheap” may not be fast enough, and you might have to lean into higher performance hardware.
They’re not checked against every rule. First pass it stops.
Yeah, maybe could have been clearer.
I was very vividly remembering a VERY SMART client I had a while ago that had like 600 rules blocking all manner of ports and protocols and IPs, and wondering why everything performed like dogshit.
Sure, it’ll go until it hits the first match, but if you have enough rules, you’re going to be churning through an awful lot of cpu getting everything to the first match.
OP may not have been intending to do something quite that uh, special, but people do funky things.
Pfsense. I’m a purist.
In that case OPNsense does the exact same thing but with a more intuative GUI. It originally was a fork of pfSense.
I’d agree the OPNsense UI is probably more intuitive if you’ve never touched PFSense but I found the OPNsense UI difficult coming from many years of PF.