

I got into self hosting because my place flooded and I was waiting on insurance and the repair people to fix give the go a head and then to actually fix my place I do not really go anywhere so I was fine with being blasted with ads when I was out of my home, until I caught myself watching ads to get extra whatever from a mobile game. I had a pi zero 2 (with a PoE hat) that was not being used for anything so I thought why not use it to host wireguard, I had looked at a few options for VPNs but thought wireguard fit my needs the best. It “worked” I do not know if it was just my copper internet speeds or the silicon in the pi zero 2 which slowed everything down but now that I have a dedicated OpenWRT firewall, fibre, and a static IP (well technically 2 I just do not use the second one because the weekend project of spinning up my own SMTP and IMAP server had me at the point where I wanted to pull out my hair), I have wireguard automatically turn the VPN on when I am away from my LAN. So I would only see the adds if I went on someone elses device.
I have a flint 2 (glinet) as my firewall as well, I had read somewhere that I should install vanilla OpenWRT so I did (I have added stuff to it so I like coming up with different flavours when talking to people like rocky road). I have Caddy running in docker on a pi in my LAN I have a password file of some sort that Caddyfile references at the top. Don’t ask me how I formatted it because I do not remember that part but take my secondary pihole as an example of using a domain that cannot be reached, from outside of my lan.
pihole52.reannlegge.ca { @allowed { remote_ip 10.0.0.0/8 } handle @allowed { redir / /admin{uri} reverse_proxy http://10.0.69.52:31415/ } handle { respond "Not available from this network" 403 } import easydns_tls log { output file /var/log/caddy/pihole52.log format json } }While other places on my domain can be reach outside of my vLANs. I have to secure some things up as I found that my SearXNG is open to the WAN.
Edit: looks like search.reannlegge.ca was available on the WAN if you where in Canada but I have changed that to only on my vLANs and VPNs