Tailscale VPN Setup
Tailscale creates a secure private network between your devices. Access your self-hosted BlackBook database from anywhere.
Why Tailscale?
- ✓ Secure - End-to-end encrypted connections
- ✓ Simple - No port forwarding or firewall rules
- ✓ Free - Up to 100 devices on personal plan
- ✓ Fast - Direct peer-to-peer when possible
How It Works
Step 1: Create Tailscale Account
- Go to tailscale.com
- Click "Get Started"
- Sign in with Google, Microsoft, or GitHub
- Your account is created automatically
Step 2: Install on Your Computer
Windows
- Download from tailscale.com/download
- Run the installer
- Click the Tailscale icon in system tray
- Sign in with your account
macOS
- Download from Mac App Store or tailscale.com/download
- Open the app
- Click "Connect"
- Sign in with your account
Step 3: Install on Your NAS/Server
Synology NAS
Option A: Package Center (if available)
- Open Package Center
- Search for "Tailscale"
- Install and sign in
Option B: Manual Installation
# SSH to your NAS
ssh your-user@your-nas-ip
# Download and install
curl -fsSL https://tailscale.com/install.sh | sh
# Start and authenticate
sudo tailscale up
Other Linux Servers
curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up
Step 4: Verify Connection
- Open Tailscale Admin Console
- You should see both devices listed
- Note the hostname or IP of your NAS (e.g.,
synologyor100.x.x.x)
Test the connection:
# From your computer, ping the NAS
ping synology # or whatever hostname shows in admin
Step 5: Configure BlackBook
In BlackBook setup, use the Tailscale hostname:
Host: synology (your Tailscale hostname)
Port: 5432
Database: blackbook
Username: blackbook
Password: your_password
That's it! Now you can access your database from anywhere - home, office, coffee shop, or travel. As long as Tailscale is running on both devices, the connection is secure.
MagicDNS (Optional)
Tailscale's MagicDNS lets you use simple hostnames instead of IPs.
- Open Tailscale Admin Console
- Go to DNS settings
- Enable MagicDNS
- Now use
synologyinstead of100.x.x.x
Troubleshooting
Device not appearing in admin
- Make sure Tailscale is running on both devices
- Check you're signed into the same account
- Try
tailscale statuson command line
Can't connect to database
- Verify both devices show "Connected" in Tailscale
- Try pinging the NAS:
ping synology - Check PostgreSQL is running on the NAS
- Verify port 5432 is correct
Slow connection
Tailscale tries direct connections but sometimes uses relay servers. Check connection type in admin console - direct is fastest.
Security Tips
- Enable 2FA on your Tailscale account
- Use ACLs to restrict which devices can access what
- Review devices regularly and remove unused ones
- Key expiry - devices need to re-authenticate periodically