Pritunl is a free and open-source VPN server that enables you to access the internet securely and privately. Pritunl is easy to deploy and can be used on Linux, Windows, and macOS. This tutorial will guide you through the process of installing Pritunl on NixOS Latest.
Before proceeding with this tutorial, you'll need:
To install Pritunl, you need to add the package to your NixOS configuration. Here's how to do it:
/etc/nixos/configuration.nix
.sudo nano /etc/nixos/configuration.nix
environment.systemPackages
definition:environment.systemPackages = with pkgs; [ pritunl ];
Save and close the file.
Now that we've added the Pritunl package to the NixOS configuration, let's configure it:
sudo systemctl start pritunl
sudo systemctl enable pritunl
systemctl status pritunl
sudo firewall-cmd --zone=public --add-port=443/tcp --permanent
sudo firewall-cmd --reload
Now that we've installed and configured Pritunl on our NixOS Latest machine, we can access it through a web browser:
Open your browser and navigate to https://<your_server_ip>
.
Log in with the default credentials: pritunl
for the username and password.
Follow the on-screen instructions to set up your Pritunl account and start using the service.
Congratulations! You've successfully installed and configured Pritunl on your NixOS Latest machine. You can now use Pritunl to access the internet securely and privately.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!