this post was submitted on 09 Nov 2023
1 points (100.0% liked)

Homelab

380 readers
9 users here now

Rules

founded 1 year ago
MODERATORS
 

So I’m a bit new to the homenetworking and homelab situation but I have a Unifi DM-SE as my router and I’m trying to establish the best way to block ads at home and away.

So I am currently primarily using either extensions or content blocking apps on my devices to block ads but I’ve been looking into DNS based solutions lately.

I’ve looked into setting up PiHole and it looks pretty simple to do and I have a dedicated small computer with Proxmox that I use for things like Homebridge, Scrypted and I think could set it up easily on there. But it looks like it only works at home. A lot of people say you can set up a VPN but I’d rather not have to turn on and off my VPN on my phone whenever I leave home.

I also looked into Next DNS which seems also pretty easy to setup, but I couldn’t tell if it’s better to set this up per device or network wide via my router.

There’s also the extensions and content blocking apps which would be device specific.

Which is the fastest, performance wise, and easiest to interact with daily?

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 year ago

I'm running unbound. I have a cronjob (bash+python) that downloads StevenBlack's blacklist (https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts), turns it into an unbound config file, and restarts unbound.

Happy to provide a copy if anyone is interested.

[–] [email protected] 2 points 1 year ago

If you're on android you can use tasker to automatically connect to VPN when not at home

[–] [email protected] 2 points 1 year ago

uBlock origin + Pihole. uBlock covers just about everything on your PC but I mainly use Pihole for mobile devices and as a "catch all net"

[–] [email protected] 2 points 1 year ago

Pihole v6 Beta (and I have a fallback to v5). Runs together with unbound in recoursive mode. Super slick and fast!

[–] [email protected] 1 points 1 year ago

I just use basic DNS ad/scam/spam/etc-blocking, via technetium.

I mostly relays on ublock/sponsorblock, as they are much more effective, and tend to "break" less of the internet.

DNS block-lists tend to do a nuke-from-orbit approach, while not being nearly as effective as you would want. (For example- its not going to effectively hide most youtube ads, facebook ads, etc.), while ublock, is extremely effective at the task.

[–] [email protected] 1 points 1 year ago

I use DNS blocking as addons are not really a thing on all mobile devices, but I also roll out uBlock Origin via GPO on Windows as it can better target scripts instead of blocking whole domains and is most of the time able to block detection scripts. The best of both worlds I guess.

[–] [email protected] 1 points 1 year ago

Made an entire video about how to do this with your pihole and unbound.

https://youtu.be/D2Z87W7Znr8?si=RASe65epZ7BPcbee

[–] [email protected] 1 points 1 year ago
[–] [email protected] 1 points 1 year ago

I just use AdGuard Home. For me it works better then PiHole and runs native on my opnsense box.

[–] [email protected] 1 points 1 year ago (1 children)

I like blocky adblocker (https://github.com/0xERR0R/blocky). It is easy to configure using YAML file and also easy to backup.

You can setup Wireguard VPN server. On your phone, set the VPN DNS server to your adblocker IP and set on-demand connection to only connect to VPN when it is not connected to your home network.

[–] [email protected] 1 points 1 year ago

What are the advantages of Blocky over something like piHole?

[–] [email protected] 1 points 1 year ago

Some script that parses blocklists into unbound local-data statements, combined with cron and unbound-control

[–] [email protected] 1 points 1 year ago (1 children)

Just PiHole and then VPN with split tunnel so that only DNS is using home one.

[–] [email protected] 1 points 1 year ago (1 children)

I’ve heard of using Wireguard for VPN when away from my local network. How does performance get impacted with something like that?

[–] [email protected] 1 points 1 year ago

You can set up WireGuard to only route local addresses to the peer, so you would only be routing dns requests through the tunnel and everything else goes via whatever other interface you have. So performance is minimally impacted in that way.

[–] [email protected] 1 points 1 year ago (3 children)

To be honest the advertisers have won this battle as far as I'm concerned but hear me out. It's the "please turn off your ad blocker and support this site" pop-ups got more annoying than the ads. Using a VPN just means I don't get personalized ads, just random ones.

I run everything through a local install of Charles Proxy (though Proxyman or Sqid on Linux can do the same). This lets me see all of my traffic and see ssl traffic in plane text and I use this all day for debugging.

Couple Advantages to using a Proxy instead of a blocker:

  • I can black list some urls that are annoying - including ads but web pages don't see that as adblocking so no p
  • I can use the re-write tool if I'm getting sick of hearing about someone on the news all of the time.
  • I connect other devices on my wifi to it like my android (for above and debugging apps)
  • They can act as a cache with makes things faster though not a real issue these days with GPS internet.
  • There are blacklist collections peaple socialize

www.charlesproxy.com

[–] [email protected] 1 points 1 year ago

This comment brought to you by advertiser sock accounts.

[–] [email protected] 1 points 1 year ago

Using a VPN just means I don't get personalized ads, just random ones.

You can ask Google for non-personalized ads too, its in the settings. They will track you either way.

[–] [email protected] 1 points 1 year ago

I’ve allway wanted the advantages of a proxy but I’ve had a hard time picking hardware, lmk

[–] [email protected] 1 points 1 year ago (1 children)

In any case, if you want to filter your traffic when you're away (be it with a network ad blocker or a proxy server) you will need to have a way to connect to said server.

Local browser extensions only detect what has been shipped to the browser by the web server, which is why they work at home or on mobile data, all the processing is done locally on the device.

A filtering DNS server, or a proxy server, will position itself between the web server you're trying to join and your device, and take out the ads and tracking. But to be able to use that server, it needs to be on the same network as your device. It's all good when you're at home, but when you're away, suddenly you two are separate. Hence the need for a VPN to connect your phone back to your home network.

You could make it public facing, but that's pretty much the worst thing you could do, security-wise. There are so many automated threats that actively try every waking minute of the day to get into an insecure home network to find of value, or to lay a time bomb that will allow them to do more, that you don't want to mess with that. For real. Don't mess with public-facing services.

[–] [email protected] 1 points 1 year ago (1 children)

Does connecting my phone to my home network via VPN when away from home impact speed?

[–] [email protected] 1 points 1 year ago

Yes. It will hit your speed. How much? No idea, but it will.

[–] [email protected] 1 points 1 year ago (5 children)

TL;DR: If you find value in a service, be ready to pay for it. Either in time or dollars. If you say it's not worth it, you probably won't spend enough time there to care about an AD anyway.

Novel concept: if I consume a significant amount of content from a platform (> ~10 hours a month, and the ADs detract from my experience in a noticeable way, I pay to remove the ADs from that platform.

This group should at least know why as well. Hardware costs money. Power costs money. Cooling costs money. We optimize our labs to run as cheaply as possible, but expect content to be delivered to us freely. Some of you spend more keeping a Plex server operating per month for fewer hours of consumed content than you'd pay YouTube for the same viewing hours.

I've ran an AD blocker a total of 3 days in my life like 6 years ago. The amount of sites that stopped working or became broken was nowhere near the inconvenience of just ignoring the ad in the side bar. I've had 0 issues with drive-by malware, 0 issues with not knowing what link to click. It's odd, staying off the sketchy parts of the Internet seems to lead to a pretty unintrusive Internet experience.

I pay for a YouTube premium family plan and because Google actively incentivizes it, 4 of my friends get it for free as well. I would have gotten the family plan anyway because two individual subs is more than one family, and 6 people get to benefit from it.

I hope the advertisers win. The Internet isn't sustainable long term without a path to profitability. Things become ephemeral, unstable, unusable, and uninteresting if no one cares about making it. How many new creators have you found with interesting content on PeerTube? How many of you are ready to maintain a BBS/forum software in perpetuity because you have an engaged audience? Or there's one popular thread that gets thousands of views per month for some unknown reason?

I don't want ADs to win because I like them. I want them to win because in a world where everyone expects things to be free, someone has to pay. If they don't, the Internet gets more fragmented, and less interesting. Maybe one day that won't be a problem, but at present, platforms serve a role as an aggregator. Somewhere to reliably land and find something that fits your interests. I'm not likely to have as enriching of an experience on natively Lemmy, or in the fediverse, or on PeerTube/Vimeo/Floatplane, etc. because they don't have the content or reach. I might reach them through an offshoot of where I normally spend my time online, but never directly.

[–] [email protected] 1 points 1 year ago

This comment brought to you by advertiser sock accounts.

[–] [email protected] 1 points 1 year ago
[–] [email protected] 1 points 1 year ago (1 children)

Don’t disagree with that sentiment. I do pay for YouTube premium etc… it’s more the intrusive ads that get on my nerves.

[–] [email protected] 1 points 1 year ago

Fair, one of my points was the similar to an another commenter's: The blocking is becoming more intrusive than ignoring the ADs. I think we're just delaying the inevitable where sites start to pull all of their content through JavaScript, and if anything interferes with the display, it just doesn't display at all. Or injecting full unskippable ADs in video streams.

When I tried one 6 years ago, the experience of using the Internet was worse than without blocking. The ADs I am served now are less of an inconvenience to me than the constant fight to tune and block them that I see people complain about.

load more comments (2 replies)
[–] [email protected] 1 points 1 year ago (1 children)

i use AdGuard Home on a pi3\rasbian for my home. For me it worked better then pihole, more stable.

[–] [email protected] 1 points 1 year ago

What do you use when you are away from home?

[–] [email protected] 1 points 1 year ago (1 children)

NextDNS (on a Windows server serving as a proxy for the entire network) in combination with Brave browser. Haven't seen an ad or even the dreaded warning on YouTube ever.

Whenever I'm not at home, I VPN through my FortiGate into my home network.

[–] [email protected] 1 points 1 year ago

Wait you have a FortiGate at home? I thought they don’t offer home licenses?

[–] [email protected] 1 points 1 year ago

It's actually quite easy to automatically let vpn turn on or off depending on whether you're home or not.

I personally use wireguard for this. On my wife's iPhone there's a setting in the wireguard app that automatically disconnects vpn when connected to specified ssid and reconnects vpn when disconnected from specified ssid. On my android I use the tasker app to get the same functionality. I used this guide to set it up: https://hndrk.blog/tutorial-wireguard-and-tasker/

I haven't set up dns ad blocking yet, but this is exactly the usecase I've come up with for this setup, that and always having our phones on home network for selfhosted services is great.

Hope this is the solution that you're looking for :)

[–] [email protected] 1 points 1 year ago

Technitium! Soo many features, runs on just about anything. Amazing integration with DHCP. Way easy to set up.

[–] [email protected] 1 points 1 year ago

adguard+ublock origin pretty much does it for me.

[–] [email protected] 1 points 1 year ago (2 children)

Cellular is a completely different network so their is no solution unless you owned a cell tower and did it from that litterly impossible by design for cellular stick to extensions!!! I wouldn’t vpn just for no ads but would use a local ad blocker on my network

[–] [email protected] 1 points 1 year ago (1 children)

If it’s DNS based adblocking, like PiHole or pfBlockerNG, you can do split tunnel VPN, no need to route the entire traffic, just the DNS

[–] [email protected] 1 points 1 year ago

Yea I heard about that it’s gets complicated

[–] [email protected] 1 points 1 year ago (1 children)

NextDNS works on cellular, since you install the config on the phone itself. Works brilliantly, anywhere I travel.

[–] [email protected] 1 points 1 year ago

This, is it what we’ve all need or is their a Caveat

[–] [email protected] 1 points 1 year ago

I can't use any of this stuff, my ISP router is so shit that changing the DNS to Cloudflare or Google's breaks my internet =|

[–] [email protected] 1 points 1 year ago

I have multiple layers of ad blocking.

  • Pihole for DNS
  • Firefox w/uBlock Origin & SponsorBlock (YouTube) on every PC
  • Brave browser on iPhones.
  • SmartTubeNext (YouTube) on Chromecast
  • All of my mobile devices are connected by VPN to utilize Pihole when I’m not home
[–] [email protected] 1 points 1 year ago

Ditched pihole and went with NextDNS running natively on my UDM Pro. Performance is much improved.

[–] [email protected] 1 points 1 year ago

My firewall (opnsense) does this... With very little configuration. Using UnboundDNS with its block list features makes filtering most ads out rather easy.

[–] [email protected] 1 points 1 year ago

NextDNS for the win. You can set it and forget, or tweak it to your heart’s desire. Works on your home network plus on all your devices anywhere in the world. No restrictions. You can tailor settings for each individual device if desired. IMHO, it’s incredibly cheap for an excellent service.

I actually became interested in them simply because where I live, they’re the fastest DNS provider - faster than my ISP, Google, CloudFlare, all I tested over months. The ad-blocking was secondary to me, but now of course I see it as the primary value since it’s so easy to use yet so configurable at the same time.

[–] [email protected] 1 points 1 year ago

I use AdGuard Home, in a Linode instance, and point my pfsense box to it.

[–] [email protected] 1 points 1 year ago

Technitium with block lists + OPNSense ZenArmor as a NGFW. Doesn't block everything, but still as good as you're going to get.

load more comments
view more: next ›