How to Set up a VPN Server Using SoftEther

Setup SoftEther VPN Server

Preparing Your Server

yum -y update
yum -y groupinstall "Development Tools" && yum -y install wget nano

Configuring Firewall Rules

20 – FTP
21 – FTP
22 – SSH
25 – SMTP/EMAIL
26 – SMTP
53 – BIND/DNS
80 – HTTP / Apache Web server
110 – POP3/EMAIL
143 – IMAP
443 – HTTPS / Apache Web server SSL
465 – SMTP/EMAIL SSL/TLS
873 – RSYNC
993 – IMAP/EMAIL SSL
995 – POP3/EMAIL SSL
3306 – MYSQL

Download and Install the SoftEther VPN Server

lscpu
http://www.softether-download.com/files/softether/v4.29-9680-rtm-2019.02.28-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.29-9680-rtm-2019.02.28-linux-x64-64bit.tar.gz
cd /usr/local
wget "YOUR_DOWNLOAD_LINK" -O softether-vpnserver-linux.tar.gz
tar -xvf softether-vpnserver-linux.tar.gz
rm -f softether-vpnserver-linux.tar.gz
cd /usr/local/vpnserver
make
nano /etc/init.d/vpnserver
#!/bin/sh
# chkconfig: 2345 99 01
# description: SoftEther VPN Server
# description: SoftEther VPN Server
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
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0
chmod 755 /etc/init.d/vpnserver
/etc/init.d/vpnserver start
chkconfig --add vpnserver
/etc/init.d/vpnserver stop

Configuring SoftEther VPN Server

/usr/local/vpnserver/vpncmd
check
/usr/local/vpnserver/vpncmd
ServerPasswordSet

What is VPN Server Manager for Windows and MacOS

Creating a Virtual Hub

HubCreate testVHub

Controlling the Virtual Hub

Hub testVHub

Connect the Virtual Hub to the Network

SecureNatEnable

Create and Manage Users

UserCreate testuser
UserPasswordSet testuser

Activating the VPN Protocols

Activating L2TP Over IPSec

IPsecEnable

Activating SSTP and OpenVPN

ServerCertRegenerate <YOUR SERVER IP or FQDN>
ServerCertGet ~/cert.cer
SstpEnable yes
OpenVpnEnable yes /PORTS:1194
OpenVpnMakeConfig ~/openvpn-config.zip

Original Source

--

--

--

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

We are on VS Code Store!

Tableau Hands-On

Toit: Containers on Microcontrollers

“We’ll do that later”: how to improve your HTTP response cycle

Flip String to Monotone Increasing in O(n) time

Why SSDs Matter for Application Development

Monitor all input data flowing into your ML models with a single AWS Lambda

The problem with your Code, is the Code.

Visualization of “Whiskers” meeting.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Alibaba Cloud

Alibaba Cloud

Follow me to keep abreast with the latest technology news, industry insights, and developer trends. Alibaba Cloud website:https://www.alibabacloud.com

More from Medium

How to setup third party domain name with AWS Route 53 (2022) ?

Create secured connection via ssh to AWS Lightsail instance

AWS Elastic Network Interface

DigitalOcean vs. Google Cloud vs. AWS vs. Linode vs. Vultr: Which Is Best for WordPress Hosting?