curl -O https://raw.githubusercontent.com/ExtremeDot/golden_one/master/build_se_fromsource.sh
chmod +x build_se_fromsource.sh
./build_se_fromsource.sh
sudo apt -y install cmake gcc g++ make pkgconf libncurses5-dev libssl-dev libsodium-dev libreadline-dev zlib1g-dev
git clone https://github.com/SoftEtherVPN/SoftEtherVPN.git
cd SoftEtherVPN
git submodule init && git submodule update
./configure && make -C build
صبر میکنیم تا کامپایل بشه،،، حدود 10 الی 15 دقیقه طول میکشه که کامپایل بشه
make -C build install
vpnserver start
USER="b04545as85ad96f8"
PASSWORD="7c454s5aa9628e"
SHARED_KEY=24340744
SERVER_IP=231.194.235.138
SOFT_VPNCMD="/usr/local/bin/vpncmd"
HUB="VPN"
SERVER_PASSWORD=${PASSWORD}
HUB_PASSWORD=${SERVER_PASSWORD}
USER_PASSWORD=${SERVER_PASSWORD}
/usr/local/bin/vpncmd
- /usr/local/bin/vpnserver
${SOFT_VPNCMD} localhost /SERVER /CMD ServerPasswordSet ${SERVER_PASSWORD}
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /CMD HubCreate ${HUB} /PASSWORD:${HUB_PASSWORD}
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /HUB:${HUB} /CMD UserCreate ${USER} /GROUP:none /REALNAME:none /NOTE:none
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /HUB:${HUB} /CMD UserPasswordSet ${USER} /PASSWORD:${USER_PASSWORD}
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /CMD IPsecEnable /L2TP:yes /L2TPRAW:yes /ETHERIP:yes /PSK:${SHARED_KEY} /DEFAULTHUB:${HUB}
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /CMD BridgeCreate ${HUB} /DEVICE:soft /TAP:yes
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /CMD ServerCipherSet AES128-SHA256
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /CMD ServerCertRegenerate ${SERVER_IP}
${SOFT_VPNCMD} localhost /SERVER /PASSWORD:${SERVER_PASSWORD} /CMD VpnOverIcmpDnsEnable /ICMP:yes /DNS:yes
# CRONTAB
crontab -l | { cat; echo "@reboot /etc/init.d/vpnserver start" ; } | crontab -
crontab -l | { cat; echo "@reboot sleep 15 && service dnsmasq restart" ; } | crontab -
https://www.softether-download.com/files/softether/v4.43-9799-beta-2023.08.31-tree/Windows/SoftEther_VPN_Server_and_VPN_Bridge/softether-vpnserver_vpnbridge-v4.43-9799-beta-2023.08.31-windows-x86_x64-intel.exe