How practical is it to block everything by default?

2 years ago by smeg to c/pihole

I've just set up my pihole and I'm considering the best way to configure it. Is it a good idea to set the default group to block (almost) all domains and then manually add trusted devices to another group with a "normal" block list? My use case is untrustworthy devices that I don't want phoning home but which might change their IP address.

grehund 6 points 2 years ago

Untrusted devices should really be on their own VLAN. You will have much better control over them and their ability to reach out to the net, or gather info on your network and other devices. Some IoT devices have their DNS hardcoded, so they will ignore your Pihole anyway - you will need to redirect the DNS with outbound NAT to combat this.

path: 0 15927889, hotness: undefined, score: 6, children: 1
smeg 2 points 2 years ago

More reading for me to do then, thanks!

path: 0 15927889 15928453, hotness: undefined, score: 2, children: 0
LazerDickMcCheese 6 points 2 years ago

Not very practical. Find a few curated lists, then start blocking domains 1 by 1. Sounds inefficient, but it's ironically faster in the long run than blocking the whole WWW then backpedaling

path: 0 15922892, hotness: undefined, score: 6, children: 15
smeg 2 points 2 years ago

The trouble is that I don't want an untrusted device to be able to call out at all, and I won't know where it's trying to reach until I connect it

path: 0 15922892 15926106, hotness: undefined, score: 2, children: 14
Taleya 2 points 2 years ago

Isolate a wlan, then deny it access past the router

path: 0 15922892 15926106 15928277, hotness: undefined, score: 2, children: 13
Onomatopoeia 1 point 2 years ago

Think you meant VLAN and autoincorrect got you.

path: 0 15922892 15926106 15928277 15956768, hotness: undefined, score: 1, children: 0
smeg 1 point 2 years ago

Can you explain this a bit more to a networking beginner?

path: 0 15922892 15926106 15928277 15929445, hotness: undefined, score: 1, children: 11
Taleya 3 points 2 years ago

most routers allow dual wireless networks now, you should be able to set one that's exclusively for IoT. So you have MyWifi and WifiForThings.

You can then set the WifiForThings to have no actual internet access. This will mean that any apps etc won't work though, so be aware.

path: 0 15922892 15926106 15928277 15929445 15934991, hotness: undefined, score: 3, children: 10
chickenf622 3 points 2 years ago

If you're willing to deal with the massive pain in the ass that is, I don't see a reason not to. Maybe write a note next to your computer to check the block list if something isn't working right.

path: 0 15920285, hotness: undefined, score: 3, children: 0
sabreW4K3 2 points 2 years ago

Just add a bunch of block lists until you get the level of blockage you want.

path: 0 15919823, hotness: undefined, score: 2, children: 0
sbv 2 points 2 years ago

My use case is untrustworthy devices that I don't want phoning home but which might change their IP address.

If you're using DHCP, you might be able to tell your router to assign a specific IP to the MAC address.

Alternatively, if you have a few trusted devices on your network, can you add them to an allow list and deny traffic to every other IP?

path: 0 15926842, hotness: undefined, score: 2, children: 1
smeg 1 point 2 years ago

If you're using DHCP, you might be able to tell your router to assign a specific IP to the MAC address.

Hopefully, seems pretty unlikely that the untrusted devices will bother spoofing their MAC addresses

can you add them to an allow list and deny traffic to every other IP?

Yeah that's what I meant by manually adding trusted devices to a group with a normal block list

path: 0 15926842 15927436, hotness: undefined, score: 1, children: 0
Darkassassin07 2 points 2 years ago

That's not a terrible idea; though it means extra configuration everytime anything new connects to the network. Friends using your wifi for example.

I just manually assign DHCP reservations for the MAC of each known device. Then they always have the same IP (without requiring static ip config on the devices themselves)

For a bunch of blocklists: https://firebog.net/

path: 0 15923383, hotness: undefined, score: 2, children: 1
smeg 1 point 2 years ago

Yeah that was going to be my plan, I think I can set that on my router but its UI isn't particularly clear!

path: 0 15923383 15927626, hotness: undefined, score: 1, children: 0
napkin2020 2 points 2 years ago

If you want to go through logs and meticulously look for which broke what. There are a lot of things that happen in the background when you visit a webpage(cdn.example.com, cf.example.com...) and *.example.com white-list is pretty stupid(ads.example.com)

path: 0 15955048, hotness: undefined, score: 2, children: 0
Reannlegge 1 point 2 years ago

I tried that once, pihole blocks stuff coming in and not going out. Many “smart” devices will freak out if they can send things out to the internet but cannot receive things back.

path: 0 15922587, hotness: undefined, score: 1, children: 5
Onomatopoeia 1 point 2 years ago

Pihole doesn't block inbound traffic, it has nothing to do with it (as you mention in your later comment, DNS is about address lookups, not routing IP addresses).

PiHole is a DNS server, all it will do is resolve addresses for clients that use it.

path: 0 15922587 15956892, hotness: undefined, score: 1, children: 0
smeg 1 point 2 years ago

Does it? I don't know much about networking but I thought for a device to even send something out it still needs to go through DNS first.

path: 0 15922587 15926047, hotness: undefined, score: 1, children: 3
Reannlegge 1 point 2 years ago

No it does not go through a DNS on the way out. A DNS, or domain name server, is like a phonebook so people can put in whatever.whereever and get the IP address back.

path: 0 15922587 15926047 15932752, hotness: undefined, score: 1, children: 2
smeg 1 point 2 years ago

Yeah, so to reach out does it not need to use DNS to know where it's reaching out to?

path: 0 15922587 15926047 15932752 15944758, hotness: undefined, score: 1, children: 1
lagoon8622 3 points 2 years ago

No it can just send stuff to an IP

path: 0 15922587 15926047 15932752 15944758 15949748, hotness: undefined, score: 3, children: 0
pihole
pihole

@sh.itjust.works

login for more options
649
35
1

The Pi-hole® is a DNS sinkhole that protects your devices from unwanted content without installing any client-side software.

go to feed...