I ditched Bitwarden’s subscription for this free self-hosted alternative


Vaultwarden is a community-built, open-source server for Bitwarden that you can self-host. It can connect to all official Bitwarden apps and extensions, which means you don’t need to replace any of the Bitwarden apps and extensions you’ve already installed. You can just sign into them with your self-hosted instance of Vaultwarden.

Why you might want to self-host your Bitwarden

Data sovereignty and free perks

A premium Bitwarden subscription gives you the built-in 2FA authenticator feature. Normally, you’d manually copy 2FA codes from an app like Google or Microsoft Authenticator and paste them into the site you’re trying to log into. Bitwarden Premium lets you add those time-based one-time (TOTP) codes alongside login entries. That way, when you autofill your username and password with Bitwarden, it also copies the secret TOTP code to your clipboard. If you find 2FA annoying, this is the most convenient way to set it up.

You’d have to give up your credit card information and pay $10 a year for this feature, but you can get it for free by self-hosting the backend.

You can self-host Vaultwarden to get Bitwarden premium features for free.

Things like vault health reports, file attachments for Bitwarden Send and vault items, the admin panel (to add and manage multiple users), support for hardware 2FA security keys also require a premium subscription. You can get all those features for free if you self-host. Self-hosting your vaults gives you total control over your data and metadata (when you log into Bitwarden and where). It’s more private.

Admittedly, this project isn’t for everyone. That said, if you enjoy tinkering or already have a homelab set up, a self-hosted Bitwarden vault will make an excellent addition.

Personally, I just like the idea of keeping my data local, as much as possible. It gives me some peace of mind. Plus, I really enjoy self-hosting stuff. I have built a tiny ecosystem consisting of a vault, notes, a time tracker, Spotify for my Kindle, a dashboard (with my work tasks, notifications, finances, bookmarks, and productivity stats) all on the same domain. I can access them anywhere with URLs that look like vault.mydomain.com or dashboard.mydomain.com.

The Bitwarden vaults are encrypted by default, so no one can read the contents inside them without your master password. However, you are responsible for backing up the vaults when self-hosting. You can set up an automatic backup system with a tool like rsync.

Everything you need

Three things you need to host a password manager

Vaultwarden is an open-source Rust-based implementation of the Bitwarden server backend. It’s incredibly popular (some 58k stars on the GitHub repo) and the community actively maintains it. It can run as a Docker container, so it’s easy to both run it and remove it.

Logging into my Vaultwarden web portal.

In addition to Docker and Vaultwarden, you’ll need a server to host it. You can use your own hardware or get a VPS (some are free).

Pretty much any computer can be turned into a server. If you’re new to this, just use an old laptop if you have one lying around (it doesn’t even need to have a display or a working keyboard because you will be ssh-ing into it anyway.) Install a Linux server OS on it. Ubuntu Server works fine for most people. If you don’t want a headless, command-line interface, you can install something pretty like umbrelOS or casaOS. And if the computer is a potato, you can install something featherweight like DietPi (it’s what I use for my potato server and I have no complaints).

By default, Docker will serve Vaultwarden over a local HTTP address. Bitwarden clients will refuse to connect to plain HTTP connections because they are not safe. You need a secure HTTPS server address to log in with your official Bitwarden apps and extensions. There are two ways you can do this:

  1. If you already own a domain (or subdomain) or if you can get one, you can use a tool called Caddy (which runs as a Docker container as well).
  2. If you don’t want to get a domain name, you can use Tailscale. Tailscale provides you with a free subdomain and HTTPS security to boot. The catch is that you need to keep Tailscale on when you need to sync vaults with your server. Tailscale is one of the standard ways people access their home servers outside the local network, and the one I’ll be demonstrating.

Setting up Tailscale

Vaultwarden requires HTTPS

You will need to install Tailscale on the server, as well as the devices on which you want to use Bitwarden. To install it on your server, run this command.

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

You should see a link that takes you to the Tailscale website where you can sign up for a new account and get a magic DNS address. This address is where you’ll be able to access your Vaultwarden instance. Copy it or take note of it because we’ll need it in the next step.

MagicDNS provides you an HTTPS Tailnet address.

Make sure MagicDNS and HTTPS Certificates are enabled on the Tailscale admin console.

Setting up Vaultwarden

Spinning up a Vaultwarden instance and serving it over Tailscale

Start by installing Docker on your server, if it’s not already set up. Then we create a new directory to keep Vaultwarden and a new Docker compose file.

mkdir ~/vaultwarden && cd ~/vaultwarden

Use nano or any other text editor of your choice to create the Docker compose file.

nano docker-compose.yaml

Paste this inside the Docker compose file. Replace the “DOMAIN” line with the domain Caddy or Tailscale is configured to use.

services:
vaultwarden:
image: vaultwarden/server:latest
container_name: vaultwarden
restart: unless-stopped
environment:
- DOMAIN=https://yourservername.random-word.ts.net
- SIGNUPS_ALLOWED=true
volumes:
- ./vw-data:/data
ports:
- "127.0.0.1:8080:80"

You can set SIGNUPS_ALLOWED to “false” once you’ve set up a Vaultwarden account.

Press Ctrl+O, then Enter to save and Ctrl+X to exit nano. Run this command to spin up the container.

docker compose up -d

You can verify that it’s running on port 8080 with this command.

docker ps

To server it over your Tailscale setup. Run this.

sudo tailscale serve --bg https+insecure://localhost:8080

You can verify that it’s working with this command.

tailscale serve status

Connecting your devices to the new Vaultwarden server

Official Bitwarden clients and extensions are compatible with Vaultwarden

Since we can only access Vaultwarden through the secure Tailscale address, we need to enable Tailscale on our devices as well. You can install the mobile app on your phone and the desktop clients on PC. On Windows and macOS, you can download the dedicated installers from the Tailscale website. On Linux machines, you can install it with the same command and run it in the background.

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

Login with the same account you already used and connect to the same Tailscale network. Once you’re connected to Tailscale, you can access the new Vaultwarden server.

Try opening the magicDNS address that Tailscale assigned you in your browser. It’ll probably be something random like this.

https://dietpi.orange-bottle.ts.net

If the Vaultwarden web portal opens, congratulations, your server is active and accessible over HTTPS. Create a new account for yourself. You can use any random, made-up email here, by the way. Set your master password here.

If it returns an error, make sure you are, in fact, connected to Tailscale and the Docker container is running.

Now let’s connect our Bitwarden apps and extensions to our personal Vaultwarden server instead of the official Bitwarden servers. You’ll see an “Accessing” button at the bottom of the login page where it lets you pick between Bitwarden’s servers or self-hosted servers. Select “Self-hosted.”

Selecting “self-hosted” should open this settings page. You just need to enter the Tailscale HTTPS address in the Server URL section. It’s the same Tailnet URL you used to log into the Vaultwarden web portal. Then hit “Save.” The login email and master password are the same ones you already set on the Vaultwarden portal.

You don’t need to be constantly connected to the Tailscale network in order to access your vaults because the apps and extensions keep a local cache of your encrypted vault. However, it won’t sync unless you are connected to your private Tailscale network via the Tailscale app.

8/10

Supported Desktop Browsers

Chrome, Edge, Safari, Firefox, Opera, DuckDuckGo, Vivaldi, Brave, Tor

Price

Starting at $10/year

Free trial

Free account available



Your vaults stay on your device

You now have a self-hosted version of Bitwarden that gives you free access to all the premium Bitwarden features. Plus, your sensitive vault data never leaves your private network.



Source link

Leave a Reply

Subscribe to Our Newsletter

Get our latest articles delivered straight to your inbox. No spam, we promise.

Recent Reviews


Netflix is home to a large library of exclusive content: from Netflix Original shows and movies to documentaries, this catalog is available to stream only on this platform. You can find many genres, tropes, and styles within this exclusive library, but how good are the titles?

Platforms like IMDb and Rotten Tomatoes allow you to find the most highly-rated and/or popular shows and movies, and these reviews can also help you shape your watch list. Here are five highly-rated Netflix Original films to watch in April.

The films on this list have been picked based on their IMDb rating, with all films having a rating higher than 7.5 out of 10. All of them are also Netflix Original films.

The Mitchells vs. the Machines

A roadtrip, an apocalypse, and a family with a mission

If you’re an animation fan, you might have come across works by Sony Pictures Animation, which is the studio behind Netflix’s Oscar-winning film KPop Demon Hunters. One of its best films that you don’t want to miss is The Mitchells vs. The Machines, a sci-fi family comedy following the dysfunctional Mitchells. As an impending robot apocalypse builds, the Mitchell parents, Rick and Linda, set out to drop their daughter Katie at her film school after Katie and Rick fight.

Their family road trip turns into a nightmare when the world’s electronics gain consciousness and rise to rebel against humans, setting off a chain of events that could end the age of humans. The Mitchells vs. The Machines is one of Netflix’s most-viewed animated works to date, being watched by over 53 million households within 28 days of its release. The movie is emotional yet humorous, with a quirky and fun animation style that keeps you glued to the screen.

The Trial of the Chicago 7

A courtroom drama based on real events

The Trial of the Chicago 7 is a perfect combination of courtroom drama meets political thriller. Based on real events, it follows the infamous 1969 trial of seven defendants charged by the federal government with conspiracy and crossing state lines with the intention of inciting riots during the Democratic National Convention in Chicago. As they are set up against a biased legal system and a judge that can make or break their cases, the defendants face an unfamiliar battleground.

The film features performances from a star-studded ensemble cast, including actors like Eddie Redmayne, Yahya Abdul-Mateen II, Sacha Baron Cohen, Daniel Flaherty, Joseph Gordon-Levitt, Michael Keaton, Frank Langella, and John Carroll Lynch.

Beasts of No Nation

A brutal film that holds the mirror to the reality of war

If you like to stream war movies, Beasts of No Nation is a critically acclaimed film you should add to your watch list. This is one of those films that fall under the category of “films you should watch once and never again” for many viewers. Set in a small, war-torn West African village, the tragic and brutal war drama explores the journey of Agu, a young boy who escapes a village-wide execution in a civil war.

Taken under the wing of a ruthless Commandment (Idris Elba), Agu is quickly exposed to his new reality, transforming from an innocent boy to a war-hardened soldier and killer on the run. As the war worsens, Agu and his army’s lives hang in the balance, with Agu’s state of mind declining due to the brutality of his actions.

Elba’s strong performance in the film earned him several accolades, including a SAG Award.

The Irishman

Don’t skip this if you’re a fan of gangster films

When it comes to epic gangster films, you can’t go wrong with a quintessential one like Martin Scorsese’s The Irishman. This slow-burning crime drama, which is set across multiple decades, from the 1950s onwards, tells the real story of Frank Sheeran, a World War II veteran turned hitman who becomes deeply involved with the Bufalino crime family. As he rises up the ranks, Sheeran forms a close bond with powerful Teamster Jimmy Hoffa. As the story unfolds, Sheeran’s choices and the complex web of organized crime are explored.

The Irishman features an all-star cast, including Robert De Niro, Al Pacino, Joe Pesci, Harvey Keitel, and more. It marks the ninth collaboration between De Niro and Scorsese.

Klaus

May the spirit of Christmas be with you

Even if winter has melted away, a must-watch Christmas film is the animated movie Klaus. This highly rated Netflix film is an alternative origin story of Santa Claus. The animation in this film is incredible, adding to a story that is a perfect holiday-time family watch.

The movie focuses on Jesper, a lazy and privileged postman who is sent by his Royal Postmaster General father to the remote island town of Smeerensburg. Here, he must establish a post office and post 6,000 letters within a year. Desperate to meet this quota and avoid being cut from the family fortune, Jesper teams up with a reclusive toy maker named Klaus. As their unlikely partnership grows, the town is transformed, with children getting delightful toys in exchange for letters. Christmas brings about a demand for more toys, while the town throws obstacles in the way.

The film was nominated for the 92nd Academy Awards in the Best Animated Feature category, making it the first animated film from Netflix to be nominated for an Academy Award.


You can find more Netflix Original content by going through the exclusive library or searching for Only on Netflix or Netflix Original. To filter your titles by genres and tropes, make use of Netflix’s secret codes for easy browsing.

Subscription with ads

Yes, $8/month

Simultaneous streams

Two or four

Stream licensed and original programming with a monthly Netflix subscription.




Source link