Skip to content
In-house anti-DDoS, included on VPS, game servers and web hosting · hosted in France · cancel anytime See our plans
CloudFive
Log in

01

What Tailscale does

Tailscale links your devices into a private network, which Tailscale calls a tailnet. Each device gets a fixed 100.x.y.z address there, and they all reach each other directly, in pairs: it is a mesh network, with no central server that all traffic goes through.

  • Encryption: connections use WireGuard. When two devices cannot reach each other directly (a router or a corporate network that is too locked down), traffic goes through Tailscale relays, still end-to-end encrypted.
  • Coordination: a Tailscale service distributes public keys and access rules. You therefore need an account, opened with an existing identity provider (Google, Microsoft, GitHub…). A free plan exists for personal use; its limits are on Tailscale's website.
  • Names: with MagicDNS, you reach a machine by its name, such as mon-vps, instead of its address.

If you do not want to depend on any outside service, Headscale, an independent open-source project, replaces the coordination server; otherwise, WireGuard set up yourself remains the most self-contained option (see the comparison below).

02

Install Tailscale on the VPS

Start with the basic settings from securing a Linux VPS (SSH key, firewall, updates).

In a container VPS (LXC), Tailscale needs the TUN device. Check that it exists:

ls -l /dev/net/tun

If it is missing, Tailscale offers a fallback mode called userspace networking, described in its documentation, but the steps in this guide assume the normal mode, with /dev/net/tun.

Install Tailscale with the official script, which adds the package repository for your distribution, then connect the VPS:

curl -fsSL https://tailscale.com/install.sh | sh
sudo tailscale up

tailscale up prints an address: open it in your browser and sign in to your Tailscale account. The VPS then appears on the Machines page of the admin console. Check from the VPS:

tailscale ip -4
tailscale status

Then install the Tailscale app on your computer and your phone, with the same account. From the computer, the VPS now answers on its 100.x.y.z address.

Key expiry. By default, each device has to sign in again after a while. For a server, disable this on the Machines page, in the machine's menu, Disable key expiry: otherwise the VPS will drop off the private network one day.

03

SSH access without exposing port 22

Once the VPS is reachable through Tailscale, SSH no longer needs to be open to the whole Internet. Two methods.

1. Keep OpenSSH, but only on the private network. This is the method from Tailscale's official guide with UFW. First open a second SSH session over the Tailscale address (ssh utilisateur@100.x.y.z) and check that it works. Then:

sudo ufw allow in on tailscale0
sudo ufw status numbered

Find the rule in the list that allows port 22 (or OpenSSH) from anywhere, and delete it by name, for example:

sudo ufw delete allow OpenSSH
sudo ufw reload

The open session stays active. Test a new connection over the Tailscale address before closing anything, and keep your fallback access in mind: the console in your host's client area.

2. Tailscale SSH. Tailscale can also handle SSH itself: access is granted based on your identity on the private network, with no SSH keys to manage.

sudo tailscale set --ssh

Tailscale then takes port 22, but only on the VPS's Tailscale address: regular SSH stays available on the other addresses until you close it. The SSH rules in the network's access policy (Access controls) must allow the connection.

The same principle applies to your admin interfaces: a service that only listens on the Tailscale address can only be reached from your devices. It is an alternative to the SSH tunnel suggested in installing Portainer or Uptime Kuma.

04

The VPS as an exit node

An exit node routes all of a device's Internet traffic through the VPS, like a classic VPN: useful on public Wi-Fi. On the VPS, first enable forwarding, then advertise it:

echo 'net.ipv4.ip_forward = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
echo 'net.ipv6.conf.all.forwarding = 1' | sudo tee -a /etc/sysctl.d/99-tailscale.conf
sudo sysctl -p /etc/sysctl.d/99-tailscale.conf
sudo tailscale set --advertise-exit-node

In the admin console, on the Machines page, open the VPS's menu, then Edit route settings, and tick Use as exit node. On your phone or computer, then choose this VPS as the exit node in the app.

A few precautions:

  • all your traffic leaves with the VPS's IP address, which is rented in your name: it is not an anonymity tool;
  • Tailscale's documentation asks that the firewall deny forwarding of other traffic by default;
  • the traffic uses the VPS's bandwidth;
  • depending on the system, other settings may be needed: follow the official exit node page if the option does not work.
05

Tailscale or WireGuard set up yourself?

Tailscale uses WireGuard, but takes care of everything that is manual in a WireGuard VPN on a VPS:

  • Tailscale: no port to open, no keys to copy, a new device joins by signing in to the account, and each device reaches the others directly. In return, you depend on an account and on Tailscale's coordination service.
  • WireGuard alone: everything stays with you, with no account or third-party service. You have to open a UDP port, create a key pair and a configuration block for each device, and the VPS acts as the central point.

In practice, Tailscale suits connecting a few devices and managing a VPS without exposing its services. WireGuard alone suits you if you want to control every part, or do not want an account with a third party. Both can run alongside Docker on the same VPS.

06

On CloudFive

CloudFive does not offer managed Tailscale: you install it yourself on a VPS, with root access. The Ryzen VPS, from €5.99 per month, is a good fit:

  • an AMD Ryzen 9 9950X, with DDR5 memory and NVMe storage;
  • root access and a dedicated IP address;
  • basic DDoS protection included;
  • a console in the client area, useful if a firewall rule locks you out.

Our Linux VPS are containers (LXC): if /dev/net/tun is missing on yours, ask support. The servers are in France, on our own network, monthly with no commitment, with French-speaking support 7 days a week by ticket, on Discord and by phone. The other plans are on the VPS page.

07

Frequently asked questions

How do I install Tailscale on a Linux VPS?

Run the official script with curl -fsSL https://tailscale.com/install.sh | sh, then sudo tailscale up. Open the address shown to connect the VPS to your account, and check with tailscale ip -4 and tailscale status.

Do I need to open a port for Tailscale?

No, not for normal operation. Tailscale sets up connections without opening ports and goes through encrypted relays when two devices cannot reach each other directly. That is a difference from WireGuard alone, which requires opening a UDP port.

How do I close the public SSH port with Tailscale?

First check that SSH works over the VPS's Tailscale address. Then allow the interface with sudo ufw allow in on tailscale0, and delete the UFW rule that opens port 22 to everyone. Keep the host's console as a fallback.

Tailscale or WireGuard: which should I choose?

Tailscale is simpler: no port to open, no keys to exchange, and devices reach each other directly. WireGuard alone does not depend on any account or third-party service, but you manage keys and configuration by hand for each device.

Does Tailscale work in an LXC VPS?

Yes, if it has the /dev/net/tun device, which you check with ls -l /dev/net/tun. Without it, Tailscale offers a more limited userspace networking mode. On a CloudFive VPS, ask support if that device is missing.

Our plans

Going further.

The plans covered in this guide, hosted in France and protected by our anti-DDoS, with no commitment.

Support CloudFive AI

An answer right away, a real team behind it.

CloudFive AI answers you at any hour, in seconds. When it doesn’t know, or as soon as you ask, the team that runs the machines takes over. No offshore call centre.

  • TicketThe team replies in under 2 hours, 7 days a week.
  • CloudFive AIAt any hour, on ia.cloudfive.fr, Discord and in your customer area.
  • DiscordThe team, the AI and other customers, in the help channel.
  • Your data stays with usAI runs on our servers in France; e-mails, IPs and passwords are masked.
A ticket in the customer area: a customer’s question about a Minecraft plugin, and the CloudFive team’s reply
A real ticket in the customer area, answered by the team (demo account; shown in French).
CUSTOMER AREA · APP

Your servers.
At your fingertips.

Restart a server, watch its resources live, pay an invoice or open a ticket — and get an alert when something goes wrong.

  • The status of all your services at a glance
  • Blocked attacks, filtered traffic, monthly peak
  • A notification when a server goes down or an invoice is due

App coming soon · in the meantime, everything works in your browser at manager.cloudfive.fr

The CloudFive app: the list of your services, with their status
The CloudFive app: the home screen, your services’ status, blocked attacks and an invoice to pay