this post was submitted on 10 Mar 2024
52 points (100.0% liked)

Selfhosted

40200 readers
522 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hi all,

I just got a Raspberry Pi 5 and I'm about to do my first setup, but it's a jungle to understand everything as a 'noob'.

My plan is to install the following:

  • Pi-hole
  • Tailscale
  • Traefik

I want to achieve DNS ad blocking and access to all my services on my laptop and phone.

Would these services achieve this? Do they work together? And am I missing something to make it work?

Sorry if this is plain stupid to ask, but I can't seem to find anything where all 3 is used together.

all 16 comments
sorted by: hot top controversial new old
[–] [email protected] 8 points 8 months ago

Docker as mentioned above is great especially if you're going down the homelab rabbit hole. You'll find it really useful to get familiar with for future projects.

Another alternative is to install DietPi. It's an operating system for a raspberry pi. It has all these programs you mentioned with install scripts including docker and installing (and updating) is as easy as checking a box. Also has a pretty good community in case you run into an edge case.

[–] [email protected] 4 points 8 months ago

They aren't mutually exclusive. They work together. I recommend zerotier over tailscale (I forgot why tailscale was bad for me, sorry)

[–] [email protected] 2 points 8 months ago

As said use docker but if you directly want to run a DNS and VPN servers then my recommadtion is Adguard Home instead of PiHole since it is rootless and doesn't modify system And for VPN go with PiVPN script and setup wireguard. Once installed both handle automatic updates without running a single command.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (2 children)

Yes, that would work. Highly recommend installing docker and running in containers. (Except Tailscale, probably; that would be native.)

[–] [email protected] 1 points 8 months ago (1 children)

Thanks for also recommending docker! I've read about it, but I was not sure if it would be useful here.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago) (1 children)

I would go one further and recommend installing Portainer too. Install Docker, then find the code to install Portainer. Then you can log in to Portainer and use that to manage Docker.

I've tried to use Docker for a number of years (and succeeded!) but have recently used Portainer and found it so much easier.

I now install the Portainer client on every instance of Docker that I use and track them all through a single IP address on my lan.

I had read about Docker Compose but never followed it up. But now with Portainer I've come to realise that "Compose" is "Stacks" in Portainer. So now I can just open up my Portainer and copy/paste a compose into a stack and save it, and it fires up the programme for me.

If I want to replicate that program somewhere else I can either copy/paste my stack, or use the "replicate" function to just add it to another machine.

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

Thank you so much! I was just about to list up all my services to get the right architecture, and I've added Portainer to my list.

This is a get-started guide I found for Portainer if anyone else is interested.

[–] [email protected] 0 points 8 months ago* (last edited 8 months ago)

I've run TS and PiHole natively on a Pi Zero W, hardly even makes the CPU run, with Syncthing on it too.

Max CPU was 30%, and that was while making config changes.

Also used it as a Subnet Router for TS - so it was routing RDP connections, etc.

https://github.com/pi-hole/pi-hole/#one-step-automated-install

[–] [email protected] 2 points 8 months ago* (last edited 8 months ago)

Acronyms, initialisms, abbreviations, contractions, and other phrases which expand to something larger, that I've seen in this thread:

Fewer Letters More Letters
DNS Domain Name Service/System
IP Internet Protocol
PiHole Network-wide ad-blocker (DNS sinkhole)
VPN Virtual Private Network

4 acronyms in this thread; the most compressed thread commented on today has 10 acronyms.

[Thread #587 for this sub, first seen 10th Mar 2024, 20:05] [FAQ] [Full list] [Contact] [Source code]

[–] [email protected] 1 points 8 months ago (1 children)

Do you want to use tailscale so you can vpn from your laptop etc when your away from home for pihole to block ads on the laptop? Wouldn't it be easier to run ublock origin on the adblock on the laptop instead?

[–] [email protected] 4 points 8 months ago (1 children)

The Pi-Hole is mostly for my phone. Can't really block ads in apps with uBlock.

Laptop is mostly for remote access to my other services.

[–] [email protected] 2 points 8 months ago

Pi-hole (or my preference Adguard Home) is great for devices connected to your home network. For your phone, go with Blokada (free) or Adguard (iOS, Android, paid - see Stacksocial for occasional license deals) - that'll cover you at home and out of home.

[–] [email protected] 1 points 8 months ago
[–] [email protected] 1 points 8 months ago

DirtPi+Docker

[–] [email protected] 1 points 8 months ago

Maybe this can help after installing pi-hole : https://www.pivpn.io