Accessing a Linux computer at home or in the office from another location used to require opening router ports, dynamic DNS, and manual firewall rules. With Tailscale, you create an encrypted private network between your devices in a few minutes. And all of this without exposing anything directly on the internet.
This article covers the first steps of creating a private network between a Linux computer and a Windows computer, validating communication with ping.
1. Our test scenario
We will connect two devices in an encrypted private network based on the WireGuard protocol:
- Computer 1 (Linux): any PC, laptop, or server running Debian or Ubuntu.
- Computer 2 (Windows): your computer or laptop running Windows 10 or 11.
Each computer will receive a private Tailscale IP address in the 100.x.x.x/10 range. With these addresses, the machines communicate securely even when on different physical networks, without needing to open ports on the router.
Step 1 — Create your Tailscale network and enable initial protection
Access the official Tailscale website and click on Get started.
Create your account using Google, Microsoft, GitHub, or another compatible identity provider.
Enable multi-factor authentication (MFA) on that provider’s account. Since Tailscale delegates login to it, MFA is the first layer of protection for your network.
In the Tailscale admin console, go to Settings → Device management and enable the Device approval option.

With Device approval turned on, no new computer or mobile phone can exchange traffic on your network before your manual approval in the console — even if someone manages to initiate a login. This feature is available for free on all plans.
Step 2 — Install and connect Tailscale on Computer 1 (Linux)
Open the terminal on Computer 1 (Linux) and follow the steps below.
2.1. Update packages and install Tailscale
sudo apt update && sudo apt install curl -y
curl -fsSL https://tailscale.com/install.sh | sh


Note: the command above uses the official Tailscale installer. If you prefer to manually configure the GPG key and repository before installing via
apt, follow the official documentation for Linux.
2.2. Enable and verify the service
Now let’s enable the service and ensure it is activated on host startup.
sudo systemctl enable --now tailscaled
systemctl status tailscaled

You can exit this screen with the Ctrl + c command.
The displayed status should be active (running). Press q to exit the status screen.
2.3. Connect Linux to your private network
Now let’s run the command below to generate the link to include the new machine in the Tailscale network.
sudo tailscale up

The terminal will display an authentication link in the format [https://login.tailscale.com/xxxxxx]. Copy this link and paste it into the host where you have your Tailscale session logged in, or log in.

A great convenience of this method is that you do not need to open a browser or type your password on the Linux computer: simply open this link in the browser of the device where you are already logged into the Tailscale console and click Connect.

Next, go to the Machines tab in the Tailscale admin console and click Approve to authorize Computer 1 (Linux).


2.4. Check the assigned private IP
Back in the Linux terminal, run:
tailscale ip -4
tailscale status

Write down the returned IP address (for example, 100.x.x.x).
Step 3 — Install and connect Tailscale on Computer 2 (Windows)
Now let’s add Computer 2 (Windows) to the same private network.
Download and run the official installer at tailscale.com/download/windows.

Run the file you downloaded.

And install Tailscale.


After completing the installation, you can connect Windows in two ways:
Option 1 Via PowerShell
This is the best option to avoid needing to log in on the computer’s browser).
First, open PowerShell and run:

Inside the terminal, type the command to bring up Tailscale.
tailscale up

Just like on Linux, PowerShell will display a link [https://login.tailscale.com/a/xxxxx]. Simply open this address on a mobile phone or computer where you are already logged into your Tailscale account, click Connect, and approve Computer (Windows) in the Machines tab.



We will see our new machine in the Tailscale console.

Once approved, confirm in PowerShell if both computers already appear connected on the same network:
tailscale ip -4
tailscale status

In the admin console (Machines tab), both devices should now appear online with their respective 100.x.x.x IPs.

Option 2: You can log into your Tailscale account.
The other option is to log directly into your Tailscale account and approve the device.
Via the graphical interface: click the Tailscale icon in the system tray (near the clock), select Log in, and sign in with your Tailscale account.

Step 4 — Test connectivity with ping
With both computers connected and approved, let’s validate private communication.
4.1. From Windows to Linux (traditional ping and tailscale ping)
In PowerShell on Computer 2 (Windows), replace IP_DO_LINUX with the IP that Tailscale assigned to it and run the traditional ping:
ping IP_DO_LINUX

Now run Tailscale’s own diagnostic command:
tailscale ping IP_DO_LINUX

To stop, type Ctl + c.
In addition to latency, this command shows whether the tunnel established a direct connection (via IP:port) or if the traffic went through an encrypted Tailscale relay server (via DERP). If both computers are on the same local network during this first test, it is normal for the connection to be direct and with very low latency.
4.2. From Linux to Windows (tailscale ping)
In the terminal of Computer 1 (Linux), replace IP_DO_WINDOWS with the address obtained in Step 3 and test connectivity in the opposite direction:
tailscale ping IP_DO_WINDOWS

To stop, type Ctl + c.
Why not use the standard
pingfrom Linux to Windows? By default, Windows Defender Firewall blocks incoming ping (ICMP) requests from outside, even over a VPN. This causes the traditionalpingto return a timeout, giving the false impression that the VPN has failed. On the other hand,tailscale pingtests the tunnel using Tailscale’s internal protocol and confirms that communication in both directions is active.
Validation checklist
Before moving on to the next tutorial, confirm that all items below have been completed:
- [ ] Account protected with multi-factor authentication (MFA)
- [ ] Manual device approval (Device approval) enabled
- [ ] Computer 1 (Linux) and Computer 2 (Windows) on the same account, with distinct
100.x.x.xIPs - [ ] Traditional
pingfrom Windows to Linux responded normally - [ ]
tailscale pingworked in both directions (Windows → Linux and Linux → Windows) - [ ] No ports were opened on the router
See more:
Access Internet through site to site VPN
OpenVPN and PfSense Site to Site
Install and Configure OpenVPN Server on PfSense
Install OpenVPN Client on Windows

Juliana Mascarenhas
Data Scientist and Master in Computer Modeling by LNCC.
Computer Engineer






