Install the app
How to install the app on iOS

Follow along with the video below to see how to install our site as a web app on your home screen.

Note: This feature may not be available in some browsers.

Tailscale, Docker, Pi-Hole, Mac Mini, NAS and Cloudflare

829
258
NAS
DS918+
Operating system
  1. macOS
Mobile operating system
  1. iOS
There had been a lot of posts lately concerning remote access to the NAS when hosting Pi-Hole on the NAS with an 'entry' via a custom domain and Cloudflare.

It all worked well for me via Cloudflare using a CNAME DNS record to point at my QuickConnect ID on the NAS then using a reverse proxy to hit Pi-Hole.

The issue I found was that Pi-Hole used up way too many resources on the NAS.

So I decided to off-load the Pi-hole system on to my old Intel Mac Mini which was out of use. So Docker was installed and Pi-Hole set up. Tailnet is installed on the Mini so I could access Pi-Hole at mypinhole.mytailnet.com and using the tailnet Pi-hole IP as the Tailnet nameserver. It all worked apart from :
  • Only accessable via a Tailnet device (no real problem there)
  • I could not access it from outside of Tailnet as there were HTTPS errors as I was no longer going in via Cloudflare and using their Origin Certificate.
  • Pi-Hole as it sat on top of Tailnet only showed one client which had the Tailnet host IP.
All well and good but I wanted more......

I've now installed Pi-Hole into Tailnet using a Tailscale Sidecar container in Docker on the Mini, and that solves the issue of the IP addresses, I get all the machines using the Tailnet showing the Tailscale client IPs.

But this bypasses the NAS so it can't be accessed via my third-party domain using HTTPS.

Solutions look to be install a system called Unknown on the Mini (again using Docker) which will manage certificates etc.I really don't want to use yet another container

My preferred solution would be:
  • Still use Cloudflare DNS so I can use a sub-domain as I had previously. That gives me the HTTP certs, plus I can use a Cloudflare rule to change the port from 80 to the Pi-Hole admin port
  • The router takes the Pi-Hole admin port and forwards that to the NAS
  • The NAS has a reverse proxy (incoming HTTPS, subdomain, port 80), destination HTTP, <hostnamer>, port 8080
The problem is (I think) the <hostname>, I've tried:
  • The local IP LAN address of the Mac Mini (192.168 etc)
  • The Tailnet IP address of the Tailscale Sidecar (100,100, etc) **
  • The Tailnet Tailnet name of the Tailscale Sidecar (pihole-sidecar.mytailnet.com)**
** - As Tailscale is installed on the NAS and Minni I'm assuming cross networking between the LAN Tailnet can work?

Anyone any ideas? Networking is my weak spot and this is driving me nuts....

I could must use the Pi-hole admin portal on 'pihole-sidecar.mytailnet.com' it works fine, but it annoys me I can't use HTTPS for it.

Does that make sense? I think I've got it right?

Any assistance appreciated.
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Similar threads

The only way to edit "advanced" reverse host parameters is to write your own conf file and place it via...
Replies
1
Views
309
If we're being honest, my test customers are my parents working on my farm lol. They already get lost on...
Replies
10
Views
717
It's relatively straightforward. SSH into your Synology and run below command as root user. sudo...
Replies
4
Views
3,374
I have installed TailScal on my DS425+ NAS, and it looks to be working: I can now access the NAS using the...
Replies
0
Views
364
  • Question Question
Hi there! My RT6600ax is operating two separate networks. A "main" one, serving my NAS...
Replies
0
Views
228

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending content in this forum

Back
Top