Skip to content

VPN obfuscation and stealth mode: what they are and when you need them

Obfuscation disguises VPN traffic so networks that block VPNs let it through. How networks spot a VPN, how stealth modes hide it, and what they can't do.

PryVPN TeamPublished 5 min read
Illustration: an encrypted packet wrapped in an envelope passes a scanner beam on port 443, while a plain VPN packet is stopped
Short answer

Obfuscation disguises VPN traffic so that networks that block VPNs let it through, usually by wrapping the tunnel in something that looks ordinary, such as encrypted web traffic on TCP port 443. You only need it when a network blocks VPNs. It's slower than a normal connection, and it isn't invisibility: advanced inspection can still spot it.

A VPN already encrypts your traffic, so nobody on the network can read it. Obfuscation solves a different problem: some networks don't need to read your traffic to block it. They only need to recognize it as a VPN. Obfuscation, often sold as "stealth mode", makes the tunnel look like something those networks let through.

Most people never need it. If you're on a hotel, campus or office network where your VPN sits on "Connecting" forever, you might.

What obfuscation is, and what it isn't

  • It is a disguise. The encrypted tunnel is wrapped in, or reshaped into, traffic that looks ordinary to a filter.
  • It isn't extra encryption. Your data is exactly as protected as before; only its outside changes.
  • It isn't anonymity. Sites you sign into still know it's you, and the VPN provider still carries your traffic.
  • It isn't part of most VPN protocols. WireGuard's own documentation says it "does not focus on obfuscation"; that job belongs to a layer on top.

How networks recognize a VPN

Filters don't need to break encryption. They look at the outside of the traffic:

What the filter checks What gives a VPN away
Protocol and port Many networks only allow web traffic (TCP 80 and 443) and DNS. Anything on UDP, where WireGuard lives, never gets out
Packet shape Some protocols start with messages of a fixed size and layout. WireGuard's first handshake message is always 148 bytes, easy to match
Protocol fingerprints Byte patterns, packet sizes and how a server answers odd probes. Researchers working with a large internet provider identified over 85% of OpenVPN connections this way, with negligible false positives (USENIX Security 2022)
Known servers Lists of IP addresses that belong to VPN providers

A network may use one of these checks or all of them. Most hotel and office filters stop at the first: they simply drop UDP.

Common ways to disguise a tunnel

Technique How it works Trade-off
Tunnel over TCP 443 The VPN runs over the web's port instead of UDP Gets past port filters; a filter that inspects traffic can still see it isn't a normal website
Wrapped in TLS The tunnel travels inside a real TLS connection, like HTTPS Looks like a secure website to most filters; slower than UDP
Scrambled packets Bytes are reshaped so no fixed pattern is left Beats simple pattern matching; not port filters that only allow web traffic
Different entry points New server addresses, other ports Helps against address lists, until the new ones are listed

Everything that moves a VPN from UDP to TCP pays a price. WireGuard's authors explain that they don't support TCP because of "the classically terrible network performance of tunneling TCP-over-TCP": when a packet is lost, both layers try to recover it, and on a weak connection they get in each other's way. Protocols that support TCP, such as OpenVPN, offer it as an option, not as the default.

When you need it, and when you don't

You probably need it when:

  • Browsing works without the VPN, but the VPN times out on this network.
  • You're on hotel, airport, campus or office Wi-Fi that only lets web traffic through. Our guides to hotel Wi-Fi that blocks VPNs and to university and work networks go through those cases.
  • The error mentions a handshake that never completes.

You don't need it when:

  • You haven't signed in on the Wi-Fi's login page yet. No VPN, stealthy or not, gets past that; sign in first.
  • The VPN connects normally. Stealth is slower, so use it only where it helps.
  • You're on home broadband or mobile data that doesn't block anything.

Not sure which case you're in? Our VPN blocked on Wi-Fi troubleshooter asks two questions and gives you the steps.

Limits worth knowing

  • It can be detected. A long encrypted connection to a single server that doesn't behave like a website can still stand out to advanced inspection, or to a filter that probes the server.
  • It's slower. TCP inside TCP, plus TLS on top, costs speed, most of all on lossy connections.
  • Rules still apply. On a work or university network, stealth mode doesn't change the rules you agreed to. If the network blocks something you need for legitimate work or study, ask the IT team first. And a few countries restrict VPNs: check before you travel.

How PryVPN's stealth mode works

Diagram: in normal mode, a WireGuard packet over UDP is recognized and blocked by the firewall; in stealth mode, the same encrypted WireGuard data travels inside TLS 1.3 on TCP port 443 and passes as HTTPS
WireGuard over UDP, and the same tunnel inside TLS 1.3 on TCP 443

PryVPN's stealth mode puts the WireGuard tunnel inside a real TLS 1.3 connection (RFC 8446) on TCP port 443, the same protocol and port every HTTPS site uses.

  • Auto decides for you. PryVPN tries WireGuard over UDP first. If the server doesn't answer within about 7 seconds, it switches to stealth and remembers that for this network for a few hours. After a handshake timeout you can also tap Retry over TCP 443 (Stealth).
  • The TLS is real, and checked. The app pins our server's certificate. If a network tries to intercept the connection by swapping certificates, PryVPN refuses to connect and tells you, instead of sending anything through it.
  • It has costs. Stealth is slower than UDP and needs Android 10 or later. While it's on, the PryVPN app itself stays outside the tunnel so its TLS connection can reach our server; all your other apps stay protected.
  • It isn't invisible. It gets through most networks that block VPNs, but a network with advanced inspection can still detect or block it.

You can pick a mode by hand in Settings › Protocol; the protocol help article explains each option, and restrictive networks covers the rest.

Frequently asked questions

Using a VPN, with or without obfuscation, is legal in most countries, and a few restrict it. What changes is the network's own rules: at work or at university, follow the policy you agreed to.

Does stealth mode make me anonymous?

No. It changes how your traffic looks to the local network. Websites you sign into still know who you are.

Can my employer or university still tell I'm using a VPN?

Possibly. Stealth gets past filters that block by port or pattern. A network that inspects traffic closely, or that manages your device, can still notice a VPN.

Should I leave stealth on all the time?

No. Keep the protocol on Auto: you get fast UDP where it works and stealth only on networks that need it.

Stealth is one of the ways PryVPN keeps you connected on networks that try to stop VPNs. If you'd like to try it, download PryVPN.

Sources

  1. WireGuard: known limitations (obfuscation and TCP)
  2. WireGuard: protocol and cryptography
  3. Xue et al., OpenVPN is Open to VPN Fingerprinting (USENIX Security 2022)
  4. RFC 8446: The Transport Layer Security (TLS) Protocol Version 1.3
  5. OpenVPN 2.6 reference manual (UDP and TCP transport)

Spotted a mistake? Write to support@pryvpn.com and we'll fix it and update the date.

Go deeper

Guides and help articles on the same subject.

More from the blog

Try PryVPN for free

Free, no card, no activity logs. Download the Android app from this site and install it in a minute.

Version 0.1.25.91.68538 · 27.9 MB · Android 8.0 or later

How to install it

  • Free, no card
  • No activity logs
  • WireGuard encryption
  • Signed by PryVPN
QR code that opens the PryVPN download page
On a computer? Scan this code with your phone to download it there.

Your download has started

Install Pry VPN in about a minute. Android asks only once.

  1. Wait for the download

    It takes a few seconds. You can follow it at the top of the screen.

  2. Keep the file

    If your browser warns that this type of file can be harmful, choose to download it anyway.

  3. Open it

    Tap the notification when the download ends, or open Files › Downloads and tap pryvpn-0.1.25.91.68538.apk.

  4. Allow the install

    Android asks once: tap Settings, turn on “Allow from this source” for your browser and go back.

  5. Install

    Tap Install. If Android shows a security notice, tap “More details”, then “Install anyway”.

  6. Open and connect

    Tap Open, create your free account and tap Connect.

All install steps and checksums