How to Install and Configure SoftEther VPN on Ubuntu 22.04 | Step by Step Tutorial

ZacsTech
ZacsTech
5.4 هزار بار بازدید - 8 ماه پیش - In this video, we're going
In this video, we're going to walk you through the process of installing and configuring SoftEther VPN on an Ubuntu 22.04 VPS. If you're looking for a reliable and versatile VPN solution, SoftEther is a great option.

Get Kamatera VPS (30 days free trial)
https://zacs-tech.com/go/kamatera-vps/

Get RedHosting VPS
https://zacs-tech.com/go/rosehosting/

Get InterServer VPS
https://zacs-tech.com/go/interserver/

Get Hawk Host VPS
https://zacs-tech.com/go/hawkhost/

Register domain name
https://tinyurl.com/y8hz9seu

Get the training and certification you need! Linux Foundation, IT training
https://tinyurl.com/3pwv3czu

Commands

apt-get install build-essential gnupg2 gcc make -y

apt-get install lynx -y

lynx htt://www.softether-download.com/files/softether/ (add p to http)

cd vpnserver

mv vpnserver /usr/local/

cd /usr/local/vpnserver
chmod 600 *
chmod 700 vpnserver
chmod 700 vpncmd

nano /etc/init.d/vpnserver

#!/bin/sh
BEGIN INIT INFO
Provides: vpnserver
Required-Start:
Required-Stop:
Default-Start: 2 3 4 5
Default-Stop:
Short-Description: SoftEtherVPNServer
END INIT INFO

chkconfig: 2345 99 01
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

-----------------------------------------------------------------------------
mkdir /var/lock/subsys
chmod 755 /etc/init.d/vpnserver
-----------------------------------------------------------------------------

nano /lib/systemd/system/vpnserver.service

-------------------------------------------------------------------------------
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
esac
exit 0

-------------------------------------------------------------------------
/etc/init.d/vpnserver start

update-rc.d vpnserver defaults



ufw allow 443/tcp
ufw allow 5555/tcp
ufw allow 992/tcp
ufw allow 1194/udp
ufw allow 22/tcp

systemctl enable ufw

systemctl status ufw && ufw status verbose


DISCLAIMER: This video and description contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This helps support the channel and allows us to continue to make videos like this. Thank you for your support!
8 ماه پیش در تاریخ 1402/08/17 منتشر شده است.
5,405 بـار بازدید شده
... بیشتر