SoftEther is a cross-platform VPN software that supports SSL-VPN, L2TP/IPsec, OpenVPN, and more. This tutorial will guide you through the process of installing SoftEther on nixOS latest.
Before the installation process, make sure your system is up-to-date. You can update your system by running the following command:
sudo nixos-rebuild switch
SoftEther requires some packages to be installed before you can compile and install it. In the nix shell, run the following command to install the required packages:
nix-shell -p asciidoc readline zlib ncurses openssl iptables
Now you need to download the SoftEther package from the official website. Navigate to the directory where you want to save the package and run the following command:
wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.36-9745-beta/softether-vpnserver-v4.36-9745-beta-2021.01.09-linux-x64-64bit.tar.gz
Extract the package by running:
tar -xvzf softether-vpnserver-v4.36-9745-beta-2021.01.09-linux-x64-64bit.tar.gz
Navigate to the extracted directory and build SoftEther by running the following command:
cd vpnserver && make
After the build process, install SoftEther by running:
sudo mkdir /usr/local/vpnserver && sudo cp * /usr/local/vpnserver/
Create a systemd service file in /etc/systemd/system/vpnserver.service
using the following command:
sudo nano /etc/systemd/system/vpnserver.service
Add the following content in the file:
[Unit]
Description=SoftEther VPN Server
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/vpnserver/vpnserver start
ExecStop=/usr/local/vpnserver/vpnserver stop
[Install]
WantedBy=multi-user.target
Save the file, and reload systemd by running:
sudo systemctl daemon-reload
Now start the SoftEther server by running:
sudo systemctl start vpnserver
You can check the service status by running:
sudo systemctl status vpnserver
Now you have successfully installed SoftEther on nixOS latest. You can configure the SoftEther VPN server as per your requirement. Enjoy!
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!