How to install SoftEther on nixOS Latest

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.

Step 1: Update your System

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

Step 2: Install Required Packages

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

Step 3: Download and Extract SoftEther

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

Step 4: Build and Install SoftEther

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/

Step 5: Create Systemd Service for SoftEther

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

Conclusion

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!