I’ll try to make a case concisely that IDS/IPS has no place in a typical home network.
You should start by asking yourself what makes any particular activity “bad” from the perspective of IDS? What is the actual value you’re getting, what are you protected from?
HTTPS, generic TLS, DNS over HTTPS and TLS, QUIC, and some bittorrent, is what comprises most of the internet traffic today.
These are awesome for your privacy online because they make content snooping and filtering hard and are gradually becoming the norm for all communications. They’re also heavily adopted by malware. Botnet malware has used encryption for their own command and control communications for decades. And most software and sysadmin practices are catching up and there’s less and less legitimate unencrypted stuff out there.
So, IDS/IPS systems might be able to detect traffic going from one place to the other, they’d know what these places are in terms of IP addresses, but they largely would not be able to discern content.
And for content they can discern, what is it?
-
Bad IPs
Turns out that some parts of the internet are just poorly maintained and managed, and these are on networks that are routed. It’s important to remember that it’s the job of your ISP is primarily to provide connectivity and secondarily police your use so you don’t endanger the stability of the network. It’s not your ISPs job to decide what other parts of the internet can and can’t do. … and there’s parts and ranges not worth talking to.
These are relatively cheap to filter out in a firewall - it’s about as cheap as routing. You can’t really protect from it except
-
Bad DNS names
DNS is useful, beyond saving people from having to remember or type numbers into their browsers, they’re also a useful indirection mechanism. *.netflix.com always goes to Netflix regardless of whether that IP belongs to Akami, or Limelight .. (they mostly don’t use third party CDNs these days). *.badperson.com always goes to bad person.
There’s proportionally little DNS traffic relative to everything else, if you’re providing DNS to your devices, you can filter it there. e.g. on your PiHole server.
-
Bad content
More and more things are on the internet, not all are easy to keep up to date, and there’s still some stuff not encrypted. For example, your back yard pointed camera might have an unencrypted http web interface with shell injection attack surface - a bad website might compromise it, and that camera might compromise the rest of your network by taking over dhcp serving and even routing (some malware has routing abilities better than most routers sadly).
There’s lots of examples of this because the world is a large place, but less and less over time, lots of stuff is just becoming more encrypted, better secured and more updated.
-
Bad patterns
Most IDS/IPS software doesn’t really prevent this - things like slow port scans and fingerprinting attempts. Where you have a botnet sending a single TCP syn to port 22, and 15 minutes later another bot on a botnet is sending a TCP syn to port 2222 .. after about a week they’ll have a mostly complete picture of what ports you have forwarded and what services your ip is running.. in case of interesting exploits they’ll detect this. This is really hard as it turns out and requires correlation of these weird things.
What is useful for a home user?
Some subscription to ip filters that gets rendered into a bunch of routing table entries to devnull?
(capturing all traffic is not necessary for this - your device has a perfectly capable routing functionality)
Some subscription to DNS filters that gets rendered into your local DNS server?
(capturing all traffic to detect DNS requests off of your devices - is not really necessary)
Capturing all traffic for patterns
(most traffic good or bad is encrypted, some isn’t that might be a problem)
Complex analysis of hard to detect patterns
(requires lots of processing power over lots of data, not interesting to home users)
In short, Pi Hole good, some kind of ip filtering good, automatic updates for both filters and device firmwares good, most other stuff.. meh.
If you’re providing a service to the internet .. have a few servers and are pushing tens of megabits of traffic on average and care about security, DMZs, more filtering and analysis start to make more sense.
if you’re renting a rack or a cage for your company at your nearby colo facility more filtering makes sense.
If you’re running an open network, e.g. a cafe or a guest network at a small company, or an open network at a university, where people bring their own devices, maybe more filtering makes sense.
Set it and forget it IDS/IPS on a USG, makes little sense for a home user IMHO.
@wwed26
I am hoping to whitelist a few services such as Steam, Netflix, and the likes.
- Q: Is it possible and how do I whitelist these entries
- Q: How would I go about collecting the IPs of the aforementioned services.
- A: it’s not simple and it changes all the time.
For example Netflix in Netflix - PeeringDB .
They run 3 autonomous systems that can advertise IPs that netflix manages, 2906, 55095, 40027 and as they spin up and turn down services and bits and pieces of their network they’re buying and/or selling blocks of IPs.
Here’s some of their IPs for one of their AS-es AS2906 Netflix Streaming Services Inc. - bgp.he.net
Additionally, they might start to use an from some third party service for part of their system and direct clients to talk to it, how will you know it’s one of theirs? Is there a public list of IP prefixes known to belong to netlix in an easy to consume format? … I don’t know - it’s technically feasible to make/collate such a list, but I don’t know of anyone offering a canonical up-to-date list.
Steam aka Valve Software aka Valve Corporation… you’d follow the same approach, additionally games you download off of steam … who knows what they need.
I’m going to go out on a limb and say you should probably just disable IDS/IPS on your USG, and if you have devices you don’t fully trust (cameras / IOT), block them from the internet fully or put only those on a restrictive VLAN.
If you want/need advanced firewalling at high speeds for a particular use case, use a more advanced router (e.g. build an x86 box and use pfSense to manage, or if you need more flexibility than pfSense offers, build your own linux router … this is not easier, but is orders of magnitude more powerful .. if that can even be measured).