Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| softether_vpn_server [27 May 2025 / 18:50:13] – kadek | softether_vpn_server [29 May 2025 / 21:10:00] (current) – kadek | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== SoftEther | + | ===== SoftEther |
| - | * Run the following command to download the latest stable version of SoftEther VPN server: | + | * [[SoftEther VPN Server Installation]] |
| - | + | * [[SoftEther VPN Server Configuration]] | |
| - | wget https:// | + | * [[Install Bind DNS Server]] |
| - | + | * [[Obtain Let’s Encrypt Trusted TLS Certificate]] | |
| - | * Extract the archive: | + | |
| - | + | ||
| - | | + | |
| - | + | ||
| - | * Change to the vpnserver directory. | + | |
| - | + | ||
| - | cd vpnserver/ | + | |
| - | + | ||
| - | * Install the following dependency packages on the server: | + | |
| - | + | ||
| - | sudo apt install gcc binutils gzip libreadline-dev libssl-dev libncurses5-dev libncursesw5-dev libpthread-stubs0-dev | + | |
| - | + | ||
| - | * Then run the following command to start the build process: | + | |
| - | + | ||
| - | make | + | |
| - | + | ||
| - | * ' | + | |
| - | - vpnserver: The server binary. | + | |
| - | - vpncmd: | + | |
| - | + | ||
| - | * move the vpnserver directory to /opt/ (standardize): | + | |
| - | + | ||
| - | cd .. | + | |
| - | sudo mv vpnserver / | + | |
| - | + | ||
| - | * The VPN server can be started with: | + | |
| - | + | ||
| - | sudo / | + | |
| - | + | ||
| - | * Stop it with: | + | |
| - | + | ||
| - | sudo / | + | |
| - | + | ||
| - | * To make SoftEther VPN server automatically start at boot time, create a systemd service unit: | + | |
| - | + | ||
| - | sudo nano / | + | |
| - | + | ||
| - | * Add the following lines to this file: | + | |
| - | + | ||
| - | | + | |
| - | Description=SoftEther VPN server | + | |
| - | After=network-online.target | + | |
| - | After=dbus.service | + | |
| - | | + | |
| - | Type=forking | + | |
| - | ExecStart=/ | + | |
| - | ExecReload=/ | + | |
| - | [Install] | + | |
| - | WantedBy=multi-user.target | + | |
| - | + | ||
| - | * Save and close the file. Then start the VPN server: | + | |
| - | + | ||
| - | sudo systemctl start softether-vpnserver | + | |
| - | + | ||
| - | * Enable auto-start at boot time: | + | |
| - | + | ||
| - | sudo systemctl enable softether-vpnserver | + | |
| - | + | ||
| - | * You can check its status with: | + | |
| - | + | ||
| - | systemctl status softether-vpnserver | + | |
| - | + | ||
| - | + | ||
| - | * If it’s not running, check the journal to find out what’s wrong: | + | |
| - | + | ||
| - | sudo journalctl -eu softether-vpnserver | + | |
| - | + | ||
| - | * Check the listening ports: | + | |
| - | + | ||
| - | sudo ss -lnptu | grep vpnserver | + | |
| - | | + | |
