• Contact
  • About Me
  • Privacy Policy
  • Disclaimer
DefenceDev
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools
No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools
No Result
View All Result
DefenceDev
No Result
View All Result
Home Solutions

Install SoftEther VPN Server on Ubuntu 24.04

neo by neo
November 28, 2025
in Solutions
0
Install SoftEther VPN Server on Ubuntu 24.04

Install SoftEther VPN Server on Ubuntu 24.04

0
SHARES
268
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

neo

Related Posts

Install Portainer on Ubuntu 24.04 Using Docker Compose
Docker

Install Portainer on Ubuntu 24.04 Using Docker Compose

Automatic Windows Service Monitoring and Restart Script
Solutions

Automatic Windows Service Monitoring and Restart Script

Host a Website on Raspberry Pi – Real Benchmark Tests
Solutions

Host a Website on Raspberry Pi – Real Benchmark Tests

My Ultimate Docker Command Cheat Sheet (2025 Edition)
Docker

My Ultimate Docker Commands Cheat Sheet (2025 Edition)

Protect Docker-Hosted Application from HTTP Flood (DDoS) Attacks Using a Bash Script
Docker

Protect Docker-Hosted Application from HTTP Flood (DDoS) Attacks Using a Bash Script

Raspberry Pi Monitoring with Monit: Docker, Temperature, Network & More
Solutions

Raspberry Pi Monitoring with Monit: Docker, Temperature & More

Next Post
MikroTik: Check Your Wireless Password

MikroTik: Check Your Wireless Password

Recommended

Fortinet FortiGate: Network Monitoring with Custom Dashboards

Fortinet FortiGate: Network Monitoring with Custom Dashboards

Image Optimizer – Convert and Resize Photos in Browser (No Upload Required)

Image Optimizer – Convert and Resize Photos in Browser (No Upload Required)

Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

FortiGate Country Address Object Generator – Block or Allow Access by Country

FortiGate Country Address Object Generator – Block or Allow Access by Country

View & Copy Image Metadata Online – Camera & GPS Info

View & Copy Image Metadata Online – Camera & GPS Info

Categories

  • Blog
  • Cloud
    • Private
  • Linux Tutorials
    • Bash Scripting Tutorials
    • Commands
    • Networking
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Solutions
    • Docker
  • Video Tutorials
    • MikroTik Videos
  • 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

Install Portainer on Ubuntu 24.04 Using Docker Compose

Install Portainer on Ubuntu 24.04 Using Docker Compose

FortiGate Country Address Object Generator – Block or Allow Access by Country

FortiGate Country Address Object Generator – Block or Allow Access by Country

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

© 2025 defencedev.com - All rights reserved.

No Result
View All Result
  • Home
  • Blog
  • Linux Tutorials
    • Bash Scripting Lessons
    • Commands
    • Networking
    • Bash Scripts
  • Solutions
    • Docker
  • Network Tutorials
    • FortiGate
    • MikroTik
  • Projects
    • AdGuard
    • Immich
    • Nextcloud
    • WordPress
  • Cloud
  • Video Tutorials
    • YouTube Channel
    • MikroTik Videos
  • Web Tools

© 2025 defencedev.com - All rights reserved.