Skip to content

Installing SoftEther Server and SoftEther Client on Ubuntu

License

Notifications You must be signed in to change notification settings

mehradi-github/ref-softether

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 

Repository files navigation

Installing SoftEther

Installing SoftEther Server and SoftEther Client on Ubuntu

Installing SoftEther Server

sudo su
apt update && apt upgrade -y

# Download from https://www.softether-download.com/en.aspx?product=softether
wget https://www.softether-download.com/files/softether/v4.41-9787-rtm-2023.03.14-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz
tar xzf softether-vpnserver-v4.41-9787-rtm-2023.03.14-linux-x64-64bit.tar.gz

# Compile vpnserver
apt -y install build-essential wget make curl gcc  wget zlib1g-dev tzdata git ibreadline-dev libncurses-dev libssl-dev 
cd vpnserver
make
cd ..

# Moving vpnserver to /usr/local and change permissions
mv vpnserver /usr/local && cd /usr/local/vpnserver/

chmod 600 *
chmod 700 vpnserver vpncmd


# Starting vpnserver and set password
sudo ./vpnserver start
sudo ./vpncmd
ServerPasswordSet

# Creating vpnserver.service in /lib/systemd/system/
Ctrl+C
sudo cat >> /lib/systemd/system/vpnserver.service << EOF
[Unit]
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
EOF

# Enabling IP forwarding
echo net.ipv4.ip_forward = 1 | ${SUDO} tee -a /etc/sysctl.conf

# Starting vpnserver.service 
systemctl enable vpnserver
systemctl start vpnserver

systemctl status vpnserver

# Opening necessary ports
ufw allow 443
ufw allow 500,4500/udp
ufw allow 1701
ufw allow 1194
ufw allow 5555

About

Installing SoftEther Server and SoftEther Client on Ubuntu

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published