Tailscale is how home talks to the honeypot. Every device connects outwards to the mesh, which is why it works from behind my 5G line’s CGNAT. And because the real SSH port only listens on Tailscale, attackers scanning the VPS never see it.

There’s a catch, though. A brand-new tailnet’s default policy allows every device to reach every other device. Put a honeypot on it with the defaults, and the internet-facing bait can reach my Pi, my laptop and anything else I’ve joined. The whole point of my design is that the honeypot never gets a way back in.

Tags, then grants

Two building blocks fix this:

  • Tags give a device a role instead of an owner: tag:honeypot for the VPS, tag:lab for the Pi.
  • Grants are Tailscale’s current access-control syntax. Each one says which sources may reach which destinations, on which ports. Tailscale now recommends grants over the older ACL syntax for new policies.

Once you define grants, everything not granted is denied. Here’s the policy I’m starting with:

{
  "tagOwners": {
    "tag:honeypot": ["autogroup:admin"],
    "tag:lab":      ["autogroup:admin"]
  },
  "grants": [
    {"src": ["autogroup:member"], "dst": ["autogroup:self"], "ip": ["*"]},
    {"src": ["autogroup:member"], "dst": ["tag:lab"],       "ip": ["tcp:22"]},
    {"src": ["autogroup:member"], "dst": ["tag:honeypot"],  "ip": ["tcp:12222"]},
    {"src": ["tag:lab"],          "dst": ["tag:honeypot"],  "ip": ["tcp:12222"]}
  ]
}

Reading it line by line:

  1. My own devices can still talk to each other.
  2. I can SSH into the Pi.
  3. I can SSH into the honeypot on its real admin port (DShield moves SSH to 12222).
  4. The Pi can reach the honeypot on that same port, to pull logs.

What’s missing is the point: no grant has tag:honeypot as a source. The VPS can be reached but can’t start a connection to anything.

How I’ll test it

From the VPS, nc -vz -w5 labpi 22 should time out. From the Pi, the pull job should work. Both results go in the build log as screenshots, because “I think it’s blocked” isn’t the same as “here’s it being blocked”.

References