403Webshell
Server IP : 104.129.129.72  /  Your IP : 216.73.216.229
Web Server : LiteSpeed
System : Linux 123answers 5.15.0-143-generic #153-Ubuntu SMP Fri Jun 13 19:10:45 UTC 2025 x86_64
User : answe8064 ( 1002)
PHP Version : 8.2.28
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /opt/installer/apps/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /opt/installer/apps/openvpn-2.8-offibin
#!/bin/bash

if [ -f "include/startup.sh" ]; then
    . include/startup.sh
elif [ -f "../include/startup.sh" ]; then
    . ../include/startup.sh
fi

checkTagExist ntpd.success
checkTagExist cwm-settimezone.success

appVersion=2.8.2
appPackage=openvpn-as-latest-ubuntu18.amd_64.deb
rootDir=$(rootDir)

echo "Downloading binary" | log
cd $rootDir/temp
installPackage ca-certificates net-tools
waitOrStop 0 "Failed apt install: ca-certificates net-tools"
curlDownload  https://openvpn.net/downloads/openvpn-as-bundled-clients-latest.deb
waitOrStop 0 "File not downloaded from official source (1/2)"
curlDownload  https://openvpn.net/downloads/$appPackage
waitOrStop 0 "File not downloaded from official source (2/2)"

echo "Installing application" | log
dpkg -i openvpn-as-bundled-clients-latest.deb | log
rm -f openvpn-as-bundled-clients-latest.deb

dpkg -i $appPackage | log
rm -f $appPackage

apt -y --fix-broken install

echo "Configuring first user" | log
echo "openvpn:$ADMINPASSWORD" | chpasswd

echo "Configuring certifications" | log
service openvpnas stop
ln -s -f /etc/letsencrypt/live/${CWM_DISPLAYED_ADDRESS}/cert.pem /usr/local/openvpn_as/etc/web-ssl/server.crt
ln -s -f /etc/letsencrypt/live/${CWM_DISPLAYED_ADDRESS}/privkey.pem /usr/local/openvpn_as/etc/web-ssl/server.key
service openvpnas start

echo "Adding descriptions" | log
descriptionAppend "OpenVPN Management Web UI:  https://${CWM_DISPLAYED_ADDRESS}:943/admin"
descriptionAppend "OpenVPN Username: openvpn"
descriptionAppend "OpenVPN Password: $ADMINPASSWORD"
descriptionAppend " "
descriptionAppend "OpenVPN Client Web UI: https://${CWM_DISPLAYED_ADDRESS}:943/"
descriptionAppend " "
descriptionAppend "OpenVPN Install location: /usr/local/openvpn_as/"
descriptionAppend "OpenVPN Command-line tools: /usr/local/openvpn_as/scripts"
descriptionAppend " "

tagScript success

exit 0

Youez - 2016 - github.com/yon3zu
LinuXploit