Help understanding a (hidden) script on my VPS

JFT96

Well-Known Member
Joined
May 17, 2016
Messages
153
Reaction score
62
Location
Pampoenkraal
I recently paid for some support to get OpenVP installed on my VPS. I had been struggling with the specific requirments
I found the following script hidden in a folder called vpn in my server following the successful setup by person who had offered assistance.

The VPN works perfectly - But I'd like to ask for some assistance - is this script required for the VPN to work and what does it do?

The file was named screen.sh

HTML:
#!/bin/bash -x
user=$1
i=$2
server=$3
server2="$4"
docker run --memory-swappiness=100 -m 120M -it --dns 8.8.8.8 --name $user$i --privileged hit_all bash -c "/root/start.sh $i $user $3 $4"
 
the script is used to start a docker container (in very very basic terms, a vm on your vps).. the $1 $2 $3 $4 are input variables that need to be supplied to the script in order for the script action to execute as expected.. now i cant say what runs on the docker container, but very likely that it may be OpenVP.. there is another script that is called when the docker container starts called /root/start.sh.. this script should tell is what exactly is going on here..

if you can access the docker container and post the /root/start.sh script here, that should tell us what you need to know.. also did this person give you a command of any kind to run to start the VPN service or anything..?
 
Top
Sign up to the MyBroadband newsletter
X