On this page

You can reach a self-hosted Vaultwarden from anywhere without a VPN by putting it behind Cloudflare Tunnel, Tailscale Funnel or a reverse proxy with a Let’s Encrypt certificate. Cloudflare Tunnel suits most people: it needs a domain on Cloudflare but no open ports on your router. Tailscale Funnel needs no domain at all, and a reverse proxy gives you full control in exchange for opening port 443.
All three work with the official Bitwarden apps and browser extensions, so nobody in your family has to install a VPN to fill in a password.
Why “No VPN” Is a Real Need, Not Laziness
Most Vaultwarden guides tell you to connect via WireGuard or Tailscale before you can even open the app. That’s fine if you always have your VPN to your home network running. But:
- Your partner or family member won’t set up VPN just to grab a password
- Work devices often block VPN connections on corporate networks
- You’re traveling somewhere that blocks VPN protocols entirely
- You just want password autofill to work the moment you open Safari on a new device
Cloudflare Tunnel and Tailscale Funnel need no port forwarding and no static IP, because your server connects out to their networks. The third option, a reverse proxy with Let’s Encrypt, needs port 443 open on your router.
Method 1: Cloudflare Tunnel (Recommended)

Cloudflare Tunnel runs a small daemon, cloudflared, that connects out from your server to Cloudflare’s network. Visitors reach Cloudflare, and Cloudflare passes their requests back down that connection, so you open no ports and change nothing on your router.
What you need
- A domain pointed to Cloudflare (free tier works)
- Cloudflare Zero Trust account (also free)
- Docker or systemd on your Vaultwarden host
- Vaultwarden listening on port 8080 of the host (the examples below use
localhost:8080)
Step 1: Install cloudflared
# On Ubuntu/Debian, as root
curl -L https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64 -o /usr/local/bin/cloudflared
chmod +x /usr/local/bin/cloudflaredStep 2: Authenticate
cloudflared tunnel loginFollow the URL it prints, choose your domain, approve the connection.
Step 3: Create the tunnel
cloudflared tunnel create vaultwarden
# Note the tunnel UUID and the credentials file path it prints - you will need bothStep 4: Configure the tunnel
nano ~/.cloudflared/config.ymlAdd this content. Replace <TUNNEL-UUID> with the UUID from step 3. The credentials path assumes you ran the commands as root, so if you didn’t, use the path step 3 printed.
tunnel: <TUNNEL-UUID>
credentials-file: /root/.cloudflared/<TUNNEL-UUID>.json
ingress:
- hostname: vaultwarden.yourdomain.com
service: http://localhost:8080
- service: http_status:404The last line is the catch-all rule Cloudflare requires at the end of every ingress list. Requests for any other hostname get a 404.
Step 5: DNS and route
# Add the DNS record
cloudflared tunnel route dns vaultwarden vaultwarden.yourdomain.com
# Run it
cloudflared service install
systemctl enable cloudflared
systemctl start cloudflaredIf you wrote config.yml as a normal user and install the service with sudo, give the service the file’s path, because under sudo it looks in /root: sudo cloudflared --config /home/<USER>/.cloudflared/config.yml service install.
Your Vaultwarden is now live at https://vaultwarden.yourdomain.com. Cloudflare provides the HTTPS certificate, and the DNS record points at your tunnel (<TUNNEL-UUID>.cfargotunnel.com), not at your IP address.
Security hardening for Cloudflare Tunnel
Anyone who knows the hostname can reach your Vaultwarden login page. Cloudflare Access can put its own login in front of it:
- Go to Cloudflare Zero Trust, then Access, then Applications
- Add your Vaultwarden hostname as a self-hosted application
- Add a policy that allows your family’s email addresses, and turn on One-time PIN as a login method. Access then emails a code to those addresses, with no identity provider needed
That works in a web browser, but test the apps before you rely on it. Cloudflare’s docs (updated 3 Nov 2026) say non-browser clients can’t complete the Access login redirect and get a 302 response instead. The Bitwarden mobile and desktop apps talk to Vaultwarden’s API directly, so expect them to fail when the policy covers the whole hostname. If your family uses the apps, leave Access off and rely on Vaultwarden’s own defences in the checklist below.
Method 2: Tailscale Funnel (Easiest Setup)

Tailscale is a mesh VPN, and its Funnel feature makes one service on a device public over HTTPS. Only the server runs Tailscale. Visitors open your Funnel URL like any website, and a Tailscale Funnel relay server passes their traffic to your server over Tailscale without decrypting it. You open no ports, and your server’s IP address stays hidden.
What you need
- Tailscale account (Funnel is available on all plans)
- Tailscale 1.52 or later on your Vaultwarden host (the Funnel commands below use the syntax that version introduced)
- MagicDNS and HTTPS turned on for your tailnet
Step 1: Install and authenticate Tailscale
curl -fsSL https://tailscale.com/install.sh | sh
tailscale up --accept-dns=falseStep 2: Enable Funnel
# Optional: bind Vaultwarden to 127.0.0.1:8080 so Funnel is the only way in
# Edit your docker-compose or systemd service to bind to 127.0.0.1
# Share Vaultwarden (port 8080) over Funnel, in the background
sudo tailscale funnel --bg 8080
# Verify
tailscale funnel statusThe first time, the command opens a page that asks you to approve Funnel. Once you approve it, Tailscale creates HTTPS certificates for your tailnet and adds a funnel node attribute to your tailnet policy file. Vaultwarden is then live at https://<machine-name>.<tailnet-name>.ts.net, with no domain and no port forwarding. You can’t use your own domain here: Funnel only serves names in your tailnet’s ts.net domain, on ports 443, 8443 and 10000.
Step 3: Remember that a Funnel is public
Funnel puts no Tailscale login in front of Vaultwarden. Tailscale’s docs call a Funnel port completely public, and the funnel node attribute only decides which tailnet users may create Funnels. Vaultwarden’s own defences do the work: a strong master password, two-step login and its login rate limit, all in the checklist below.
If every device that opens the vault can run Tailscale, use tailscale serve --bg 8080 instead. Serve gives you the same HTTPS address but only inside your tailnet. That puts you back on a VPN, with the HTTPS the web vault needs.
Tailscale Funnel vs Cloudflare Tunnel
- Tailscale Funnel is faster to set up and needs no domain. It adds no login layer for visitors, serves only
ts.netnames on ports 443, 8443 and 10000, and its traffic has bandwidth limits you can’t change. - Cloudflare Tunnel works with your own domain and can put a Cloudflare Access login in front, though Access gets in the way of the Bitwarden apps (see Method 1).
For personal or family use, Tailscale Funnel wins on simplicity. For anything production-facing, Cloudflare Tunnel is more configurable.
Method 3: Reverse Proxy with Let’s Encrypt (Traditional)
This is the classic self-hosted approach. You run a reverse proxy (Nginx, Caddy, or Traefik), get a free TLS certificate from Let’s Encrypt, and expose port 443 securely.
Why this is riskier without a VPN
Exposing port 443 directly means your Vaultwarden server is reachable from the internet. If a vulnerability exists in Vaultwarden or your TLS config, you’re directly exposed. Use this method only if you:
- Keep Vaultwarden fully updated
- Use a strong master password and 2FA
- Run fail2ban to block brute force attempts
- Consider adding Basic Auth in front of Vaultwarden as an extra layer
Caddyfile example (recommended, automatic TLS)
vaultwarden.yourdomain.com {
reverse_proxy localhost:8080
log {
output file /var/log/caddy/vaultwarden.log
}
}Caddy automatically fetches and renews Let’s Encrypt certificates. Restart Caddy, and your Vaultwarden instance is live at https://vaultwarden.yourdomain.com.
Nginx configuration (alternative)
server {
listen 443 ssl http2;
server_name vaultwarden.yourdomain.com;
ssl_certificate /etc/letsencrypt/live/vaultwarden.yourdomain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/vaultwarden.yourdomain.com/privkey.pem;
location / {
proxy_pass http://127.0.0.1:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}Certbot handles certificate renewal with certbot --nginx -d vaultwarden.yourdomain.com.
Comparison: Which Method Should You Use?
| Feature | Cloudflare Tunnel | Tailscale Funnel | Reverse Proxy + LE |
|---|---|---|---|
| No domain needed | No | Yes | No |
| No port forwarding | Yes | Yes | No |
| Visitors’ traffic passes through | Cloudflare’s network | Tailscale Funnel relays | Your router, straight to the server |
| Free tier | Yes | Yes (personal) | Yes |
| Extra auth layer | Cloudflare Access (browser only) | None for visitors | Basic Auth / fail2ban |
| Best for | Production / multi-user | Personal / family | Advanced users |
Setting Up Your Vaultwarden Client for External Access
Once your server is externally accessible, configuring clients takes seconds.
Desktop browsers (Chrome, Firefox, Safari)
- Install the Bitwarden extension from your browser’s extension store
- On the login screen, open the Logging in on menu and choose Self-hosted
- In Server URL, enter your domain with
https://(e.g.,https://vaultwarden.yourdomain.com) and select Save - Log in with your master password
Mobile (iOS and Android)
- Download Bitwarden from the App Store or Play Store
- On the login screen, open the Logging in on menu and choose Self-hosted
- Enter your server URL with
https://and select Save - Log in normally
The Bitwarden desktop app has the same option under the Accessing menu on its login screen.
Vaultwarden works with the official Bitwarden apps, but set its DOMAIN setting to the new public address, for example DOMAIN=https://vaultwarden.yourdomain.com. Vaultwarden’s config template warns that attachment downloads, email links and U2F might not work without it.
Security Checklist for Public-Facing Vaultwarden

- Use a strong master password of 14 or more random characters that you don’t use anywhere else. Bitwarden’s password generator can make one.
- Turn on two-step login. Vaultwarden supports authenticator apps (TOTP), email codes, FIDO2 WebAuthn, YubiKey and Duo. Don’t skip this on an instance anyone can reach.
- Keep Vaultwarden updated. New versions patch security issues, so watch the GitHub releases page or set a monthly reminder.
- Keep the built-in login rate limit. Vaultwarden limits login requests per IP address, by default to one every 60 seconds on average with bursts of up to 10 (
LOGIN_RATELIMIT_SECONDSandLOGIN_RATELIMIT_MAX_BURST). - Add fail2ban. Vaultwarden logs every failed login with the client’s IP, and its wiki has a Fail2Ban setup that bans repeat offenders. The wiki also asks for care when Vaultwarden sits behind several reverse proxies, such as Cloudflare.
- Back up regularly. Vaultwarden keeps its data in SQLite by default, or in MySQL/MariaDB or PostgreSQL. Back it up automatically to a separate location.
FAQ
Is it safe to expose Vaultwarden to the internet?
Yes, if you keep it patched and set it up with care. Vaultwarden’s wiki calls fail2ban “particularly important if your instance is publicly available”. With HTTPS, two-step login, the login rate limit and fail2ban in place, a public Vaultwarden carries the same kind of risk as any other web service you run.
Can I run Vaultwarden without HTTPS?
Not in practice. Vaultwarden’s wiki says HTTPS is “pretty much required”, because the web vault uses browser crypto APIs that most browsers only allow on HTTPS pages. All three methods here give you HTTPS: Cloudflare and Tailscale issue the certificate for you, and Caddy or Certbot gets one from Let’s Encrypt.
What’s the difference between Vaultwarden and Bitwarden hosted?
Vaultwarden is an unofficial server that implements the Bitwarden client API in Rust. It works with the official Bitwarden apps, and its README describes it as “perfect for self-hosted deployment where running the official resource-heavy service might not be ideal”. It isn’t associated with Bitwarden, Inc. You can move a vault between the two with the export and import in the Bitwarden apps.
Can I use a dynamic DNS (DDNS) service instead of a static domain?
Yes, but it is more fragile. Cloudflare Tunnel and Tailscale handle the DNS routing automatically. If you want to use DuckDNS or no-ip, you will need to either configure DDNS updates on your router or run a ddns-client script. Cloudflare Tunnel is still easier and more reliable.
Does this work behind a CG-NAT or carrier-grade NAT?
Yes. Cloudflare Tunnel and Tailscale both connect out from your server, so they need no inbound port. That’s why they work behind CG-NAT, mobile hotspots and restrictive firewalls, where port forwarding can’t.
How do I update Vaultwarden?
# Docker Compose
docker compose pull
docker compose up -dVaultwarden doesn’t publish standalone binaries. For a native systemd install, its wiki has you extract the new vaultwarden binary and web-vault folder from the official Alpine Docker image, then restart the service.
Conclusion
You do not need a VPN to access your self-hosted password manager from anywhere. Cloudflare Tunnel is the best fit for most people: it needs no inbound ports, costs nothing and runs on Cloudflare’s network. Tailscale Funnel is the fastest to set up for personal use. A reverse proxy with Let’s Encrypt remains a solid choice for advanced users who want full control. With any of the three, the vault data stays on your own server.
Still choosing a password manager? Read our Bitwarden vs KeePassXC comparison. For the server itself, see how to build a home server.





Comments
No comments yet.
Report