Browsing Through Colorado with Tailscale

Websites decide what to show you, and how hard to check you, based on where your connection appears to come from.

By Bernie Pruss
Browsing Through Colorado with Tailscale - Cloud Data Consulting

Websites decide a lot based on where your connection appears to come from. In our first Tailscale article, we forgot we had our Northern Virginia exit node turned on, and BestBuy.com showed us stores in Northern Virginia instead of stores near us in Colorado.

Streaming services do the same thing with more at stake. People who have moved or are traveling outside the US find that the services they pay for show a different catalog or won’t play at all. Shortly after we set up a friend and colleague who had moved to Medellín, Colombia, to use our Colorado exit node, a new business contact told us about a family member visiting Ireland who had spent most of a weekend trying to set up her network to watch her favorite sports team, which needed a US Internet Protocol (IP) address.

We had seen the effect ourselves. About a year ago, while using Claude Code to learn to build exit nodes, we ran them in Amazon Web Services (AWS) regions in Ireland, Sydney, and São Paulo. The same streaming account showed a different lineup in each one.

Security services look at the address too. Some websites apply extra security checks when a connection comes from a cloud data center. That matters to us because some of the AI agents we use browse from cloud computers.

Our answer to both problems is a Mac mini on our Colorado internet connection, running Tailscale as an exit node. Our friend in Medellín and our AI agent both select it, and the websites they visit see our residential IP address.

Many devices can be an exit node, including a Linux or Windows computer and even an Apple TV. We use the Mac mini because we had already hardened it to run as a server, and its 10 gigabit network port leaves room to grow when we upgrade our internet service past 1 gigabit.

A device in Colombia and an AI agent's browser both use the Colorado Mac mini as their exit node. Traffic forwards through the Colorado router and internet service to streaming services and other websites.

Both remote devices send their traffic through encrypted Tailscale tunnels to the Mac mini, which forwards it through our Colorado internet service provider.

What a website sees

A website sees the public IP address a connection arrives from. From that address it estimates a location and identifies the network behind it: a residential internet service provider (ISP), a mobile carrier, or a data center. Cloudflare’s geolocation documentation describes how those estimates are made.

The first article solved a different problem. Snowflake needed one fixed IP address it could allow, so we gave our connection a fixed Elastic IP address on a small AWS server. That IP address works for any service that needs a stable, approved IP address; we placed it in the same AWS region as our Snowflake account. For streaming and everyday browsing, we prefer a residential IP address instead.

Security services weigh the source network alongside browser behavior. Cloudflare’s bot-management rule examples show a site combining the network a request comes from with a bot score to decide when to challenge it.

Setting up the exit node

Tailscale is a Virtual Private Network (VPN) that connects devices through encrypted tunnels. The devices on one Tailscale network make up a tailnet. An exit node is a device in the tailnet that other devices can send their internet traffic through.

There are three parts to enabling a device as an exit node:

  1. Configure the device to advertise itself as an exit node.
  2. Approve Use as exit node in the machine’s route settings in the Tailscale admin console, and give the intended users permission to use it.
  3. On the remote device, open Exit Nodes in Tailscale and select the exit node in the location where you want your traffic to exit the tailnet.

Tailscale’s exit-node instructions cover the controls for each operating system. Each device chooses its own exit node, so selecting it on one device leaves every other device on its own connection.

Sharing the exit node with another tailnet

Our first thought was to invite our friend in Medellín into our tailnet. That had two problems. Each invited user takes a paid Tailscale seat, and the Tailscale app is signed in to one tailnet at a time. While he was signed in to ours, his devices dropped off his tailnet.

Machine sharing solved both. We shared the Mac mini with his account and turned on Allow use as an exit node. The Mac mini now appears in his own tailnet, he selects it as his exit node, and he stays signed in to his tailnet.

Routing an AI agent

We’ve been evaluating several AI agents for routine work. The one in this example runs on a computer in a cloud data center. When it signed in to accounts we wanted its help with, it hit a lot of extra security checks: MFA prompts and CAPTCHA puzzles that ask you to prove you’re human. So we had the agent install Tailscale on that computer and select our Colorado exit node. Now the sites it signs in to see a residential IP address in Colorado instead of a data center in California.

When the agent’s server reboots, it loses the Tailscale installation. The first time, we asked the agent to reinstall Tailscale, and two minutes later it was browsing through Colorado again. An overnight reboot removed it again.

After the second reinstall, we had the agent set up a routine that checks every two hours. If Tailscale is missing, the routine reinstalls it and rejoins the tailnet. The check stays quiet when everything is healthy and messages us when it had to repair something.

Exit nodes and app connectors

An exit node carries all of a device’s internet traffic. An app connector carries only the domain names assigned to it, and it takes precedence over the exit node for those domains. Our workstations send Snowflake traffic through the AWS app connector from the first article and everything else through Colorado. The agent browses too many different sites to list them all for an app connector, so it uses the exit node.

Checking the connection

On your workstation or laptop, open WhatIsMyIP.com with the exit node turned off and note the address and location. Then select your exit node and refresh. The address, location, and provider should change to those of the exit node’s internet connection. If they don’t, compare the IPv4 addresses, and make sure the lookup site isn’t assigned to an app connector.

Keeping it running

To keep the exit node reliable, the Mac mini runs on a battery backup and restarts on its own after a power failure.

The first article gave Snowflake a fixed address in its own AWS region. This one gives remote devices a residential IP address in Colorado. Tailscale lets each device choose the location that fits the job.

References

External references open in a new tab.

Share: