• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Linux
    • Bash Scripting
      • Bash Scripting Lessons
    • Commands&Tips
    • Monitoring
  • Networking
    • FortiGate
    • MikroTik
  • Projects & Case Studies
  • Self-Hosted
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Virtualization
    • Proxmox
    • VMware
  • Tools
No Result
View All Result
  • Home
  • Linux
    • Bash Scripting
      • Bash Scripting Lessons
    • Commands&Tips
    • Monitoring
  • Networking
    • FortiGate
    • MikroTik
  • Projects & Case Studies
  • Self-Hosted
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Virtualization
    • Proxmox
    • VMware
  • Tools
No Result
View All Result
DefenceDev
No Result
View All Result
Home Self-Hosted

Install SoftEther VPN Server on Ubuntu 24.04

by neo
September 3, 2026
in Self-Hosted
0
Install SoftEther VPN Server on Ubuntu 24.04

Install SoftEther VPN Server on Ubuntu 24.04

0
SHARES
503
VIEWS
Share on FacebookShare on LinkedIn
Table of Contents
  • About SoftEther VPN Server
  • Prerequisites
  • SoftEther Installation Process
    • Step 1: Install Required Packages
    • Step 2: Download SoftEther VPN Server
    • Step 3: Extract the Archive
    • Step 4: Compile SoftEther
    • Step 5: Move and Set Permissions
    • Step 6: Test the Installation
    • Step 7: Create an Init Script
    • Step 8: Make the Script Executable and Enable It
    • Step 9: Enable the Service with systemctl
    • Step 10: Start the VPN Server and Verify the Process
    • Step 11: Check Service Status
    • Step 12: Install and Configure SoftEther VPN Server with SoftEther VPN Server Manager

About SoftEther VPN Server

In this post you will learn how to install SoftEther VPN Server on Ubuntu 22.04 Server. SoftEther VPN (Software Ethernet) is an open-source, cross-platform, multi-protocol VPN solution developed at the University of Tsukuba in Japan. It supports a wide range of VPN protocols including:

  • SSL-VPN (SoftEther protocol)
  • L2TP/IPsec
  • OpenVPN
  • Microsoft SSTP
  • EtherIP / L2TPv3

What makes SoftEther stand out is its flexibility and performance. It can be used as:

  • A VPN server for remote access
  • A VPN bridge for site-to-site connections
  • A VPN client for secure tunneling

SoftEther is also known for its strong encryption, NAT traversal capabilities, and ease of management using the SoftEther VPN Command Line (vpncmd) or GUI-based administration tools.

Prerequisites

Before you install SoftEther VPN Server on Ubuntu 24.04, make sure the following requirements are met:

  • A server running Ubuntu 24.04 (64-bit)
  • Access to the system as a sudo or root user
  • Essential development packages:
    • build-essential (for compiling the source code)
  • A working internet connection to download source files
  • Firewall rules and open ports if you’re planning to accept VPN connections (e.g., TCP 443, UDP 500/4500 for IPsec)

You can install the necessary build tools with:

sudo apt update
sudo apt install -y build-essential

SoftEther Installation Process

Step 1: Install Required Packages


Update your system and install required build tools:

sudo apt update
sudo apt install -y build-essential

Step 2: Download SoftEther VPN Server

Download the latest stable release of SoftEther VPN:

wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.44-9807-rtm/softether-vpnserver-v4.44-9807-rtm-2025.04.16-linux-x64-64bit.tar.gz

Check the latest version on the SoftEther Official Page and replace it in the command.

Step 3: Extract the Archive

To extract downloaded file use the following command:

tar xzvf softether-vpnserver-v4.44-9807-rtm-2025.04.16-linux-x64-64bit.tar.gz

Step 4: Compile SoftEther

Navigate into the extracted directory and compile the source:

cd vpnserver/
make

Accept the license agreement (if asked) during the compilation process.

Step 5: Move and Set Permissions

cd ..
sudo mv vpnserver /usr/local/
cd /usr/local/vpnserver
sudo chmod 600 *
sudo chmod 700 vpnserver vpncmd

Step 6: Test the Installation

Run the command-line utility to verify everything is working:

cd /usr/local/vpnserver
./vpncmd

check

Select option 3 (Use of VPN Tools) to confirm installation success.

Step 7: Create an Init Script

Create a startup script at /etc/init.d/vpnserver:

sudo nano /etc/init.d/vpnserver

Paste the following content:

#!/bin/sh
### BEGIN INIT INFO
# Provides:          vpnserver
# Required-Start:    $network $local_fs $remote_fs
# Required-Stop:     $network $local_fs $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: SoftEther VPN Server
### END INIT INFO

DAEMON=/usr/local/vpnserver/vpnserver
LOCK=/var/lock/subsys/vpnserver

test -x $DAEMON || exit 0

case "$1" in
  start)
    $DAEMON start
    touch $LOCK
    ;;
  stop)
    $DAEMON stop
    rm $LOCK
    ;;
  restart)
    $DAEMON stop
    sleep 3
    $DAEMON start
    ;;
esac

exit 0

Step 8: Make the Script Executable and Enable It

sudo chmod +x /etc/init.d/vpnserver
sudo update-rc.d vpnserver defaults

Step 9: Enable the Service with systemctl

This ensures the service starts on boot execute the following command:

sudo systemctl enable vpnserver

Step 10: Start the VPN Server and Verify the Process

sudo /etc/init.d/vpnserver start

Use ps to check if the VPN server is running:

ps aux | grep vpnserver

Step 11: Check Service Status

Make sure the status is active (running).

sudo systemctl status vpnserver
SoftEther Service Status
SoftEther Service Status

Step 12: Install and Configure SoftEther VPN Server with SoftEther VPN Server Manager

One of the easiest ways to configure SoftEther VPN Server is by using the SoftEther VPN Server Manager, a graphical interface available for Windows. It allows you to remotely manage your VPN server through a user-friendly GUI instead of using the command line.

1. Download SoftEther VPN Server Manager for Windows

Go to the official release page.

Download the SoftEther VPN Server Manager for Windows (usually bundled with the Windows version of SoftEther).

2. Install the Server Manager

  • Run the installer on your Windows PC.
  • Choose “SoftEther VPN Server Manager” when prompted.
  • Follow the installation wizard.

3. Connect to Your Ubuntu VPN Server

  1. Open SoftEther VPN Server Manager on Windows.
  2. Click “New Setting”.
  3. Enter the public IP address or hostname of your Ubuntu server.
  4. Leave the port as 443 (default) or change if you configured a custom port.
  5. Click OK, then Connect.
SoftEther VPN Server Manager for Windows Configuration
SoftEther VPN Server Manager for Windows Configuration

4. Configure Your VPN Server

Once connected, you can:

  • Create Virtual Hubs
  • Add VPN users
  • Enable L2TP/IPsec or OpenVPN protocols
  • Set encryption and security policies
  • Manage logs and server settings

This graphical approach is ideal for users who prefer not to work in the terminal or need to quickly manage multiple settings.

Please check my other article related to the remote access solution with MikroTik Router.

Previous Post

Timeshift on Linux: How to Create and Restore System Snapshots

Next Post

MikroTik: Check Your Wireless Password

neo

Related Posts

Briefly unavailable for scheduled maintenance. Check back in a minute.
WordPress

WordPress Stuck in Maintenance Mode After Plugin Update

Maximizing Network Efficiency with AdGuard: My 7-Day Results
AdGuard

Maximizing Network Efficiency with AdGuard: My 7-Day Results

Install Portainer on Ubuntu 24.04 Using Docker Compose
Self-Hosted

Install Portainer on Ubuntu 24.04 Using Docker Compose

Host a Website on Raspberry Pi – Real Benchmark Tests
WordPress

Host a Website on Raspberry Pi – Real Benchmark Tests

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)
Nextcloud

Nextcloud Access with Multiple Domains – Redirect and SSL Issues (Proxy Manager & Direct Port Forwarding)

Self-Hosted Nextcloud Hub 10 on Ubuntu – My Top 5 Apps
Nextcloud

Nextcloud: My Top 5 Must-Have Apps

Next Post
MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Recommended

MikroTik: Schedule Automatic Reboot Every 7 Days

MikroTik: Schedule Automatic Reboot Every 7 Days

Timeshift on Linux: How to Create and Restore System Snapshots

Timeshift on Linux: How to Create and Restore System Snapshots

Briefly unavailable for scheduled maintenance. Check back in a minute.

WordPress Stuck in Maintenance Mode After Plugin Update

Promox Telegram Alert Example

Configure Telegram Notifications in Proxmox VE Using Webhooks

Fix Proxmox VM Snapshot “Out of Space” Errors

Fix Proxmox VM Snapshot “Out of Space” Errors

Categories

  • Linux
    • Bash Scripting
    • Commands&Tips
    • Monitoring
  • Networking
    • FortiGate
    • MikroTik
  • Projects & Case Studies
  • Self-Hosted
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Virtualization
    • Proxmox
    • VMware
  • Web Tools

DefenceDev Tutorials

defencedev Logo

Whether you’re just starting or looking to expand your skills, I hope you find useful information and engaging discussions here. Let me take you through my journey and the goals behind this space!

Follow Us

Recent News

Briefly unavailable for scheduled maintenance. Check back in a minute.

WordPress Stuck in Maintenance Mode After Plugin Update

Promox Telegram Alert Example

Configure Telegram Notifications in Proxmox VE Using Webhooks

  • Site Map
  • Privacy Policy
  • Facebook Page
  • GitHub
  • Disclaimer
  • Contact
  • About Me

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Linux
    • Bash Scripting
      • Bash Scripting Lessons
    • Commands&Tips
    • Monitoring
  • Networking
    • FortiGate
    • MikroTik
  • Projects & Case Studies
  • Self-Hosted
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Virtualization
    • Proxmox
    • VMware
  • Tools

© 2025 defencedev.com - All rights reserved.