Readme file
Thank you for wanting to use our SoftetherVPN API tools to see who is connected to witch server.
This script also has the possibility to auto-update (must use cron) and insert the data in a database.
####
This script / API tool requires Ioncube loader (Version 14.0 or greater), PHP8.1 ->, and a active license from livlost.net.
####
######################################################
########## Support and installation service ##########
######################################################
General ticket support is free.
If you need installation service please open a ticket to support. We will generate a invoice for you for the installation service witch must be paid
before we start to install the script.
https://livlost.net / https://sysdrift.no
Please log in to your account and select the license you need support with. If you are not logged in, no support.
######################################################
######################################################
####### Installation steps #######
Step 1: Create a new database and import the "Create table.sql" file to create the table structure.
Step 2: Update SoftetherVPN servers with the correct HUB name and password so that the script can get the data (it will use the same hub name and
password and loop though it and insert the data in the databasel. If you use the realtime.php it will only display the result.
Step 3: Update "config.php" and place your username, password, database and server url's. Important, the HUB password and name must be the same on
all of the servers you want to get data from.
$serverUrls = [
'https://vpn1.domain.com:5555/api/',
'https://vpn2.domain.com:5555/api/',
'https://vpn3.domain.com:5555/api/',
];
Step 4: Upload the files to your server and make sure "ioncube loader" (https://www.ioncube.com/loaders.php) is installed.
##### IMPORTANT ######
Step 5: Secure your folder by using .htaccess / .htpasswd files!
######################
Step 6: open http://domain.com/check_license.php?action=manage and insert you license, and save. The script will get and verify the license from
our server, once that is complete the script will work.
Step 7: Create a cron job to be run in the interval you want. The data is only updated when the cron.php file is run. So if you only need to update
every 5 minutes, create a cron job to do that. If you want the script to run every minute, do that :)
Example of a cron job:
5 * * * * curl -m 20 --silent https://domain.com/SoftetherVPN/cron.php >/dev/null 2>&1