· Security

I found a public link I had forgotten about

One machine in my home lab had a public HTTPS address that I had stopped thinking about. What it exposed, what it did not, how I closed it and why the reason for an exposure should be written down next to it.

On July 17 I went through every machine in my home lab and wrote down what each one runs and what it listens on. One line in the result said that a container on my main host had a public HTTPS address, reachable from anywhere on the internet. I had set that up myself at some point and had stopped thinking about it. I closed it the same day. Working out what it had actually exposed was harder than it should have been, and my own naming is the reason.

The lab is tied together with Tailscale, a mesh VPN. Devices on the mesh reach each other privately. There are two features for sharing a web service running on one of those devices. Serve shares it with your other devices on the mesh. Funnel, in the documentation's words, "lets you route traffic from the broader internet to a local service." Funnel is off unless you turn it on. The documentation says it "is disabled by default." So nobody did this to me. At some point I ran the command.

The alarming part was the name. On the mesh, that container was named after a model server, because serving models was its original job. I mentioned in April that I was moving inference off it and onto a dedicated machine. So the line in my inventory read, in effect, "the model server has a public address," and for a moment I believed I had put a language model API on the open internet.

I had not. A Funnel forwards only what you map to it, and the status command shows the mapping. Mine listed two paths, each pointing at a small web service on that container. One was the endpoint for a voice-assistant skill. The other received the one-click action links in the email digests my assistant sends me. The model server's port was not in the mapping and never had been.

That was a relief, and it was also a lesson about names. The scare came from a label that described one old job of the machine and none of what it was publishing. The same label would mislead anyone else reading my inventory, and it would mislead me again in a year.

The two endpoints had different histories, and the difference is the useful part.

The voice skill needed a public address when I used it. A voice assistant's cloud service calls your endpoint from the internet, so there is no private way to receive those requests. The exposure was justified on the day I created it. Then I stopped using the skill. The service kept running and the address stayed public, with nothing behind it that I wanted. Nobody removes an exposure when its reason expires unless the reason was written down somewhere with the exposure. Mine was written down nowhere.

The email links were a different case. Those links only ever needed to work for me, on my own devices, and my devices are on the mesh. They could have been private from the first day.

The fix took three steps. I stopped and disabled the voice skill's service, since I no longer use it. I reset the sharing configuration on that device completely, which removed the Funnel. Then I added back a single Serve entry for the email action endpoint, visible to the mesh only.

Afterward I checked from outside. The public address now refuses connections. That container has nothing reachable from the internet.

What one container exposed before and after July 17
Before, with Funnel on

Two paths reachable from anywhere on the internet

Voice skill endpoint still running after I stopped using it

Email action endpoint public, though only my devices needed it

After, with Serve only

Public address refuses connections

Voice skill service stopped and disabled

Email action endpoint visible to the mesh only

The model server's port was never in the mapping. Links in digest emails I had already received no longer work.

One detail is worth knowing before you try this. You cannot keep one of two paths public and make the other private on a single port. Funnel is decided for the port as a whole. The documentation puts it this way: "If the most recent command to configure the port was funnel, then the port will be completely public." Two paths on the same port are public together or private together. If you want one of each, they go on different ports, and only the port you funnel is public.

The change had a cost, and I accepted it knowingly. Every digest email I had already received contains links to the old public address. Those buttons are dead. New emails carry the new address, which works only from a device on the mesh. For links that exist to let me act on my own mail, that is the right scope.

There are two loose ends, and I am leaving both.

The skill's configuration on the vendor's side still points at the address that now refuses connections. Nothing calls it, so it is harmless.

The misleading name is still in place too. The new email links include that name, so renaming the device would break the links a second time. I have recorded in my notes that the name is wrong and why it stays. That is a weaker fix than a correct name, and it is the one I can make without breaking something that works.

In June I scanned my network from the inside and wrote that the view from the internet and the view across the mesh were still on my list. This inventory covered part of that, and it found something. A port scan from inside the house would never have shown this address. A Funnel is an outbound relationship with a relay service, so there is no forwarded port on the router to find.

So the list of ways into a network is longer than the router's forwarding table. It includes every tunnel and relay that software on the inside has opened outward: mesh features like this one, tunnel services that publish a local port under a hostname, remote-access agents and webhooks registered with outside services. Each of those is configured on the machine that uses it, which means the only complete inventory comes from asking every machine. On a Tailscale device that is tailscale funnel status and tailscale serve status, run on each node.

For each entry you find, I would record three things: who created it, what needs it and what event would end the need. The third is the one I was missing. "Remove when the skill is retired" is a sentence that would have closed this exposure much earlier, if it had been sitting next to the configuration where I would trip over it.

At work this is a firewall rule opened for a vendor during a project, or a storage bucket made public for one afternoon's file transfer. The mechanism is the same. The exposure is created for a reason, and when the reason ends, nothing connects that event back to the exposure. One caveat on my own account: I found this because I happened to be doing an inventory for another purpose. That is luck. A scheduled review of public entry points, with an owner, is the version that does not depend on it.

Views are my own.