What’s up, what’s down and what are you not sure about?

Let us know what you set up lately, what kind of problems you currently think about or are running into, what new device you added to your homelab or what interesting service or article you found.

I finally finished my first iteration of my Minilab including a very smooth migration from the old server yesterday so I can go to the service side of things again. I plan to get some kind of selfhosters VPN for external access to stuff that’s not exposed to the internet, I’ll have to investigate which one.

  • irmadlad@lemmy.world
    link
    fedilink
    English
    arrow-up
    2
    ·
    6 days ago

    You can restrict Caddy access to use your tailscale. For instance in your Caddyfile:

    For tailscale ip range:

    myverycoolserver.duckdns.org {
        @allowed {
            remote_ip 100.64.0.0/10  # Allow Tailscale IP range
        }
        respond @allowed 200  # Allow access
        respond 403  # Deny access for others
        reverse_proxy localhost:YOUR_SERVICE_PORT  # Your service configuration
    }
    

    For specific tailscale IP:

    myverycoolserver.duckdns.org {
        @allowed {
            remote_ip YOUR_TAILSCALE_IP  # Replace with the specific Tailscale IP
        }
        respond @allowed 200  # Allow access
        respond 403  # Deny access for others
        reverse_proxy localhost:YOUR_SERVICE_PORT  # Your service configuration
    }