🎉 Giảm 20% cho đơn hàng đầu tiên!✦🚚 Miễn phí vận chuyển cho đơn trên 500.000₫✦⚡ Flash Sale — Số lượng có hạn!✦🎁 Quà tặng kèm cho đơn từ 1.000.000₫✦🎉 Giảm 20% cho đơn hàng đầu tiên!✦🚚 Miễn phí vận chuyển cho đơn trên 500.000₫✦⚡ Flash Sale — Số lượng có hạn!✦🎁 Quà tặng kèm cho đơn từ 1.000.000₫✦
When VPN Is No Longer the Only Answer: VPN, SOCKS5, Cloudflare Tunnel, Tailscale — Four Technologies, Four Ways of Thinking About Connectivity
Quay lại Blog

When VPN Is No Longer the Only Answer: VPN, SOCKS5, Cloudflare Tunnel, Tailscale — Four Technologies, Four Ways of Thinking About Connectivity

25 tháng 11, 202616 phút đọcVũ Khôi
English
#English#Hạ tầng & DevOps#Bảo mật
Vũ Khôi

Vũ Khôi

Tác giả tại Wotech Electronics Blog

Illustration of surveillance cameras and circuit patterns, symbolizing control over who may connect to a system

When VPN Is No Longer the Only Answer: VPN, SOCKS5, Cloudflare Tunnel, Tailscale — Four Technologies, Four Ways of Thinking About Connectivity

There was a time when, the moment anyone mentioned remotely connecting to a company's internal network, the first reflex of IT people was: Set up a VPN! Access the file server from home? VPN. Manage a server remotely? VPN. Connect two branches? VPN. Access the accounting software, ERP, or CRM while traveling? VPN again. Sometimes, even when a customer only wanted to reach one internal web application, the IT team would build an entire VPN system for users to connect through. But technology does not stand still — and when the infrastructure architecture changes, the way we think about connectivity has to change too.

Quick answer: Article #00 in Dung Nguyen's series "When VPN Is No Longer the Only Answer" compares four technologies often mistaken for the same thing: (1) VPN — connecting into a network (IPsec, SSL VPN, OpenVPN, WireGuard; Remote Access, Site-to-Site, On-Premise ↔ Cloud); the fault is not in the VPN but in building a very secure tunnel without controlling what passes through it — an infected machine, a stolen VPN account, an over-broad firewall policy. (2) SOCKS5 Proxy — only forwarding an application's traffic (TCP, UDP Associate, changing the source IP, per-application routing); the point many people get wrong: SOCKS5 does NOT encrypt data by default — hiding an IP address and securing data are two completely different stories. (3) Cloudflare Tunnel — the server needs no open inbound port: the cloudflared connector proactively establishes an outbound tunnel to Cloudflare's infrastructure, needs no public IP, and works behind CGNAT; combined with Zero Trust, SSO, MFA, and device checks — but no open inbound port does not mean it cannot be attacked, since SQL Injection or Broken Access Control can still be exploited through legitimate access. (4) Tailscale — a VPN organized as a mesh over WireGuard: each device gets its own IP in the Tailnet and connects directly and encrypted with others when possible, via relay when not; no need for all traffic to loop through one central gateway. The author's conclusion: there is no strongest technology in every situation — the four are not on the same plane to be ranked against each other, and they can complement one another; and what is changing is not only the technology but the mindset: from network-centric security to security centered on identity, devices, and resources.

VPN (Virtual Private Network) is probably the most familiar technology for System and Network people. SOCKS5 is a proxy protocol. Cloudflare Tunnel is a tunnel solution connecting a service to Cloudflare's infrastructure. Tailscale is an overlay private-network solution built on WireGuard VPN. At a glance they all look the same — they all help with remote connections, forwarding traffic, or reaching systems that cannot be connected to directly — but peeling back to the technical essence, they were born to solve very different problems.

1. VPN — when we want to connect into a network

The essence of a VPN is creating a private network connection through an intermediary network infrastructure, such as the Internet. Common secure VPN protocols use encryption to protect data in transit. Two offices thousands of kilometers apart can connect as components of the same corporate network. An employee sitting at home can still access the file server, accounting software, ERP, or internal resources they are authorized for.

A VPN can solve many problems: Remote Access VPN for users; Site-to-Site VPN between branches; connecting On-Premise to Cloud; connecting a Data Center to a Disaster Recovery Site; remote management of servers and network devices; encrypting data in transit; integrating AD, LDAP, RADIUS, and MFA authentication; Full Tunnel or Split Tunnel; routing and access control between network zones. Technologies such as IPsec, SSL VPN, OpenVPN, and WireGuard are all widely used.

But a VPN also raises a very interesting question. If an employee only needs to access the accounting software, why must we give their computer a connection into the corporate network? What if that computer was already infected with malware? What if the VPN account is stolen? What if the firewall policy is configured too broadly, letting VPN users reach network zones they do not need? Then the tunnel designed to protect data can become the path for an attacker to reach important resources inside the company.

The VPN is not wrong. What is sometimes wrong is that we build a very secure tunnel but do not control what passes through it.

2. SOCKS5 Proxy — when we only want to forward traffic

If a VPN is about connecting networks, a SOCKS5 Proxy is about forwarding an application's connections. Imagine your computer is running Chrome, Outlook, Teams, accounting software, and dozens of other applications. You want Chrome's traffic to go through an intermediary server, while the other applications keep using the normal Internet connection. That is one of the problems SOCKS5 can solve.

SOCKS5 works as a relay station between the client and the destination server. Instead of the client connecting directly to the destination server, the connection is established through the proxy server. SOCKS5 can be used to: forward TCP traffic; forward UDP through the UDP Associate mechanism; change the source IP address the destination server sees; route connections per application; test services from different network locations; access resources through an intermediary server; combine with an SSH Tunnel to protect the connection; support authentication mechanisms depending on the deployment.

But there is one thing many people get wrong: SOCKS5 does not encrypt data by default. The fact that your IP address changed does not mean your data is protected. The fact that the destination server cannot see your real IP does not mean you are fully anonymous. If the application does not use an encrypted protocol and the connection to the proxy itself is not protected, data can still be observed or collected. And when using a third-party proxy server, we are placing part of our trust in whoever operates that server.

In the security world, people sometimes focus so much on hiding where they are that they forget to protect what they are transmitting. Hiding an IP address and securing data are two completely different stories.

3. Cloudflare Tunnel — when a server needs no open inbound port to serve the Internet

This is a technology infrastructure people should spend time studying. In the traditional model, when a company has an internal web server that needs to serve the Internet, we usually have to prepare: a public IP, DNS, NAT port, firewall policy, SSL certificate, reverse proxy, and WAF. And after everything is done, the IT team lives with the Internet constantly scanning the published service ports.

But Cloudflare Tunnel approaches the problem differently. Instead of letting the Internet proactively connect into the internal server, why not let the internal server proactively establish an outbound connection? A connector named cloudflared is deployed inside the corporate network. This connector establishes an outbound tunnel to Cloudflare's infrastructure. Users access the service through Cloudflare, and traffic is then forwarded through the tunnel back to the internal system. No inbound port needs to be opened on the firewall for that service. No public IP is needed at the application server. In many cases, a system behind CGNAT can still provide the service.

Cloudflare Tunnel can solve problems such as: publishing internal websites and web applications; accessing ERP and CRM through a browser; reaching applications behind NAT or CGNAT; limiting direct exposure of the origin server's IP address; accessing SSH, RDP, and other TCP services with the appropriate connection method; connecting to private network resources; deploying multiple connectors for higher availability. Combined with other services in the Cloudflare ecosystem, a company can also deploy: Zero Trust Network Access, Single Sign-On, Multi-Factor Authentication, Identity-Based Access, Device Posture Check, Web Application Firewall, DDoS Protection, Access Logging, and access policies by user, group, and device. Of course, these features depend on the service, configuration, and plan — installing cloudflared does not magically grant all of them.

Imagine a company with 500 employees who need remote access to the ERP. Instead of deploying a VPN client for all 500 people, the company can let them access a web address, authenticate with their corporate account, complete MFA, and pass access-condition checks before using the application. Users are granted access to the ERP. They do not necessarily need access to the entire network containing the ERP. That is a very large change in security design thinking.

However, no open inbound port does not mean it cannot be attacked. If the web application still has SQL Injection, Broken Access Control, or authentication vulnerabilities, an attacker can still exploit the application through legitimate access. Cloudflare Tunnel changes how we publish a service; it does not automatically fix the vulnerabilities inside that service.

4. Tailscale — when a VPN no longer has to revolve around a central gateway

In the traditional Remote Access VPN model, we usually have a VPN gateway at headquarters or the Data Center. Remote clients connect to this gateway, and traffic is then routed to the systems they need to reach. But imagine a company with servers in Hanoi, servers in Ho Chi Minh City, a virtualization cluster at the Data Center, some applications on AWS and Azure, and hundreds of technicians working from many locations. Does all traffic really need to loop through one central gateway?

Tailscale offers a different approach. In essence, Tailscale is also a VPN, but built on WireGuard, combined with connection coordination, identity management, and NAT traversal to form a mesh private network. Each device joining the network can be assigned its own IP address in the Tailnet. Permitted devices can establish direct encrypted connections with each other when network conditions allow. When a direct connection is impossible, traffic can be forwarded through a relay.

Tailscale can provide many capabilities: Mesh VPN connectivity; WireGuard traffic encryption; NAT traversal; connecting devices behind CGNAT; identity and device management; policy-based access control; Subnet Router to connect to existing LANs; Exit Node to forward Internet traffic; MagicDNS to simplify name-based access; Tailscale SSH; connections between On-Premise, Cloud, and endpoints; remote management of servers, NAS, and virtualized systems.

Imagine a technician sitting in a café who needs to access a Proxmox server at the office, a NAS at home, and a Linux server running at the Data Center. These systems may sit behind different routers, use different ISPs, and not even own a public IP. But with a properly designed overlay network, they can still connect without deploying a pile of NAT ports or forcing all traffic through one central VPN gateway.

Of course, Tailscale has its limits too. Direct connectivity depends on network conditions. Performance can suffer when a relay must be used. Managing identities, devices, and access policies, and the dependency on the control plane, remain issues to evaluate seriously. No technology is born to solve every problem. But Tailscale shows us that a VPN can be organized in a completely different architecture from what we have been used to for many years.

So which technology is strongest?

The answer is that no technology is strongest in every situation. Want to connect networks between two branches? IPsec VPN is still a very good choice. Want to forward one application's traffic through an intermediary server? SOCKS5 may be what you need. Want to publish a web application without opening an inbound port? Cloudflare Tunnel is worth studying. Want to connect many servers and devices scattered across locations, behind multiple layers of NAT? Tailscale can simplify the architecture.

Technology The problem it was born to solve The blind spot people forget
VPN Connecting into a network A secure tunnel that does not control what passes through it
SOCKS5 Proxy Forwarding an application's traffic No default encryption — hiding an IP is not securing data
Cloudflare Tunnel Publishing a service without opening an inbound port Does not fix vulnerabilities inside the application
Tailscale Mesh connectivity, no central gateway Depends on the network for direct connections, depends on the control plane

These four technologies are not entirely on the same plane to be ranked against each other. A VPN is a group of private-network connection technologies. SOCKS5 is a proxy protocol. Cloudflare Tunnel is a tunnel solution connecting a service to Cloudflare's infrastructure. Tailscale is an overlay private-network solution built on the WireGuard VPN. They can compete in some problems, but they can also complement each other within the same corporate architecture.

And do not rush to think that deploying Cloudflare Tunnel or Tailscale means you can throw away firewalls worth hundreds of millions or billions of dong sitting in the Data Center. Firewalls still have roles in network segmentation, traffic control, IPS/IDS, Application Control, protecting servers and databases, and many other security tasks. New technology is not necessarily born to kill old technology. Often it only appears to solve problems the old technology did not solve optimally.

What is changing is not only the technology, but the mindset of IT people

In the past, when designing a network system, we usually started with questions: How many sites? How many VLANs? How many subnets? How is routing done? How does the VPN connect? Which ports does the firewall open?

But today, we need to add other questions. Who is accessing? Is their device trustworthy? Which resource do they really need to access? Why do they need that access? Does the access need to exist permanently? If the device is infected with malware, how far will the impact reach? If an account is stolen, what mechanism does the system have to limit the damage?

That is the shift from network-centric security thinking to security thinking centered on identity, devices, and resources. That is also why concepts like Zero Trust, ZTNA, SASE, and SSE appear more and more in modern IT architectures. Not because VPNs are outdated. Not because firewalls have become useless. But because a company's boundary today no longer sits at the WAN port on a firewall. The security boundary can sit at each user, each device, each application, and each connection session.

We IT people may have spent our youth learning to connect systems that seemed impossible to connect. From routing commands, nights debugging IPsec, tracing firewall policies one by one, to mornings with messy hair just because the two VPN ends refused to shake hands.

But perhaps, in the coming years, the value of infrastructure people will not only lie in knowing how to connect everything. It will also lie in knowing what needs to be connected, who is allowed to connect, under what conditions, and when to disconnect.

In the past, a good network engineer was someone who could connect the whole world together.

Today, a good network and security engineer must also know how to stop the whole world from connecting to places it is not allowed to.

Apply it now: choose the technology by the problem, not by the trend

  1. Ask "what needs connecting" before "which technology": if you need into a whole network, use a VPN; if you only need to forward one application's traffic, use SOCKS5; if you only need to publish a web app, use Cloudflare Tunnel; if you need to join many machines scattered behind NAT, use Tailscale.
  2. Check "what passes through the tunnel": a secure VPN does not mean a clean client machine — control devices, accounts, and firewall policies narrowed to actual needs.
  3. Do not confuse hiding an IP with security: SOCKS5 changes the source IP but does not encrypt by default; data is only safe when the application uses an encrypted protocol and the path to the proxy is protected.
  4. Use Cloudflare Tunnel where it fits: publishing a service without opening an inbound port is a big advantage — but still patch SQL Injection, Broken Access Control, and authentication flaws inside the application.
  5. Design by identity, not only by network: who is accessing, is their device trustworthy, exactly which resource do they need, does the access need to be permanent — those are the questions of Zero Trust and ZTNA/SASE.

1. Are VPN, SOCKS5, Cloudflare Tunnel, and Tailscale the same thing? No. A VPN connects you into a network; SOCKS5 only forwards an application's traffic; Cloudflare Tunnel publishes a service without opening an inbound port; Tailscale is a mesh network over WireGuard with no central gateway. Four technologies born for four different problems.

2. Does SOCKS5 encrypt data? Not by default. Changing the source IP address does not mean the data is protected — hiding an IP and securing data are two completely different stories.

3. Does Cloudflare Tunnel make an application absolutely safe? No. It changes how a service is published (no open inbound port, no public IP needed), but it does not fix vulnerabilities inside the application such as SQL Injection or Broken Access Control.

4. How is Tailscale different from a traditional VPN? Tailscale is also a VPN, but organized as a mesh over WireGuard: each device gets its own IP in the Tailnet and connects directly and encrypted with others when possible, instead of all traffic looping through one central gateway. When a direct connection is impossible, traffic goes through a relay.

5. So which technology should I choose? There is no strongest technology in every situation: IPsec VPN for connecting two branches; SOCKS5 for forwarding an app's traffic; Cloudflare Tunnel for publishing a web app without opening a port; Tailscale for joining many machines scattered behind NAT. They can complement each other in the same architecture.

Source: post by Dung Nguyen (Community of Digital Sarch group, November 25, 2026) — Article #00, series "When VPN Is No Longer the Only Answer". Next in the series: "VPN – The Key That Opens the Company Door, or the Road That Lets Hackers In?"