FOSSFEEDWhere activity matters more than stars. Discover Fire Pit Noted Submit a project
← All articles

Tailscale Part 5: Securing Your Homelab with Access Controls

Learn how to secure your Tailscale network with device approval and access controls, giving you more control over who can access your homelab.

Over the past few articles, we've explored how Tailscale can make managing a homelab remotely much easier. We've covered subnet routing, MagicDNS, and most recently, exit nodes, which allow you to route internet traffic through your home connection.

But now that we have everything connected, there's something else worth discussing. How do we control which devices can actually access our homelab?

By default, Tailscale allows devices within your tailnet to communicate with each other. That's convenient when you're getting started, but it's worth reconsidering as your network grows, especially if you begin inviting other people.

Fortunately, Tailscale provides several ways to manage access without making your networking setup unnecessarily complicated.

Enable device approval #

One feature I'd recommend looking into is device approval. Normally, signing in to Tailscale on a new device allows it to join your tailnet automatically. With device approval enabled, new devices must be approved by an administrator before they can communicate with anything on your private network.

To enable it, open the Tailscale administration dashboard and navigate to the Device management settings. Enable device approval, and any new devices attempting to join will require authorization.

You can review pending devices from the Machines page, where you'll find an option to approve them. Existing approved devices can continue working normally. This gives you an opportunity to review new connections before granting access.

Understanding access controls #

Device approval determines which devices can join your tailnet, but access controls determine what those devices can reach after connecting.

Tailscale uses a system called grants to manage these permissions. You might also encounter access control lists, commonly called ACLs, in older tutorials. Both systems work, although Tailscale recommends grants for new configurations.

Let's say you've invited someone to your tailnet because they occasionally need access to a particular service. You might be comfortable letting them access that application, but you probably don't want them connecting to your Proxmox management interface.

With grants, you can specify which users or devices are allowed to connect to particular resources. You can even restrict access to specific ports.

Managing permissions #

Open the Access controls section of your Tailscale dashboard. You'll find a visual policy editor that lets you create rules without manually writing configuration files.

Each rule identifies where a connection originates, where it's allowed to go, and which ports or protocols it can use.

For example, you could configure a rule allowing a particular user to access a web application on port 3000 while leaving other management services inaccessible.

There's an important detail here. Tailscale's default policy allows connections between all devices, so adding a restrictive rule won't automatically override that existing permission. You'll need to replace or narrow the broad access rule as part of configuring your permissions.

Be careful when making changes, particularly if you're already using subnet routing or exit nodes. Removing existing permissions could interrupt remote access. Review the policy preview and test your connections before considering everything finished.

A few additional security considerations #

It's worth occasionally reviewing the Machines page to make sure you recognize every connected device. If you've replaced an old laptop or stopped using a particular machine, there's little reason to leave its access active.

I'd also recommend enabling multifactor authentication on the account you use to sign in to Tailscale. Your identity provider plays an important role in protecting access to your tailnet.

Keep in mind that Tailscale's permissions don't replace your normal server security. Applications still need appropriate authentication, and firewall rules remain important.

Wrapping up the series #

That brings our beginner Tailscale series to a close. We've gone from connecting our first devices to accessing an entire homelab remotely, and now we have a better understanding of how to manage access safely.

There's still plenty more to explore with Tailscale, but these five articles should give you a solid foundation for using it in your own homelab.

Comments 0

Join the conversation.

Write a comment

No comments yet. Be the first to comment.

Leave a comment

Anonymous comments are reviewed before publication. Sign in to comment as a member.

Navigation