# I recommend taking your VPS off the public internet with Tailscale and Cloudflare Tunnel

DevFeed: [I recommend taking your VPS off the public internet with Tailscale and Cloudflare Tunnel](<https://devfeed.tech/articles/i-recommend-taking-your-vps-off-the-public-internet-with-tailscale-and-cloudflare-tunnel-105218.md>)

Original publisher: [Read original article](<https://levels.io/vps-tailscale-cloudflare-tunnel>)

Author: Pieter Levels

Published: 2026-10-23T00:00:00Z

Content type: opinion

Language: en

Sources: [@levelsio (Pieter Levels)](<https://devfeed.tech/sources/levelsio-pieter-levels.md>)

Topics: [tailscale](<https://devfeed.tech/topics/tailscale.md>), [Cloudflare](<https://devfeed.tech/topics/cloudflare.md>), [Virtual Private Network](<https://devfeed.tech/topics/vpn.md>), [Internet](<https://devfeed.tech/topics/internet.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [app](<https://devfeed.tech/tags/app.md>), [attack](<https://devfeed.tech/tags/attack.md>), [cloudflare](<https://devfeed.tech/tags/cloudflare.md>), [cloudflare-tunnel](<https://devfeed.tech/tags/cloudflare-tunnel.md>), [exploit](<https://devfeed.tech/tags/exploit.md>), [exploits](<https://devfeed.tech/tags/exploits.md>), [firewall](<https://devfeed.tech/tags/firewall.md>), [hetzner](<https://devfeed.tech/tags/hetzner.md>), [internet](<https://devfeed.tech/tags/internet.md>), [network](<https://devfeed.tech/tags/network.md>), [open](<https://devfeed.tech/tags/open.md>), [privacy](<https://devfeed.tech/tags/privacy.md>), [private](<https://devfeed.tech/tags/private.md>), [public](<https://devfeed.tech/tags/public.md>), [security](<https://devfeed.tech/tags/security.md>), [server](<https://devfeed.tech/tags/server.md>), [site](<https://devfeed.tech/tags/site.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [tailscale](<https://devfeed.tech/tags/tailscale.md>), [tech](<https://devfeed.tech/tags/tech.md>), [tutorial](<https://devfeed.tech/tags/tutorial.md>), [vps](<https://devfeed.tech/tags/vps.md>)

## AI overview

The author recommends reducing direct public access to a VPS by combining Cloudflare Tunnel for a website or app with Tailscale for server access. In this setup, Cloudflare Tunnel carries web traffic so the VPS no longer responds directly on ports 80 or 443; Tailscale provides a private network for the author's devices and VPS. The author says both services connect outward, then advises blocking regular VPS access through the firewall and testing that block. They frame this as reducing the attack surface against application exploits and exposed server ports, while acknowledging it is not perfect. The excerpt presents the author's recommendation, not evidence that the setup prevents attacks.

## Source excerpt

Maybe important to repost this now that everyone is getting hacked If you have a VPS, I recommend you to get if off the public internet and into a Tailscale ne...