
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
openvpn-status
Advanced tools
A web-based application to monitor clients connected to an openvpn server.
A web-based application to monitor (multiple) OpenVPN servers.
Features
Find a list of supported browsers here
git clone https://github.com/AuspeXeu/openvpn-status.git
cd openvpn-status
npm install
sudo npm install pm2 -g
Download curl and unpack the curl.exe
in the same folder containing your OpenVPN configuration.
The configuration is handled in the cfg.json
file.
Option | Default | Description |
---|---|---|
port | 3013 | Port on which the server will be listening. |
bind | 127.0.0.1 | Address to which the server will bind to. Change to 0.0.0.0 to make available on all interfaces. |
servers | [{"id": 0, "name": "Server"}] | Array of servers. |
username | admin | User for basic HTTP authentication. Change to '' or false to disable. |
password | admin | Password for basic HTTP authentication. |
Example:
{
"port": 3013,
"bind": "127.0.0.1",
"servers": [
{"id": 0, "name": "Server A"},
{"id": 1, "name": "Server B"}
],
"username": "admin",
"password": "YV3qSTxD"
}
Copy the status.sh
file to the folder containing your OpenVPN configuration, e.g., server.conf
. Add the following lines to your configuration file. This will intall the client-connect
and client-disconnect
hooks to provide the data to the web interface.
script-security 2
client-connect ./status.sh
client-disconnect ./status.sh
Make sure the script is executable by the OpenVPN daemon.
[root@server ~]# chmod +x status.sh
Copy the status.bat
file to the folder containing your OpenVPN configuration, e.g., server.conf
. Add the following lines to your configuration file. This will intall the client-connect
and client-disconnect
hooks to provide the data to the web interface.
script-security 2
client-connect status.bat
client-disconnect status.bat
And adjust the variables inside status.sh/status.bat
to match your configuration.
HOST="127.0.0.1" // Address of the machine running this app,
// 127.0.0.1 if the machine also runs the openvpn server
PORT="3013" // As specified in cfg.json
SERVER="0" // As specified in cfg.json
USERNAME="admin" // As specified in cfg.json
PASSWORD="admin" // As specified in cfg.json
Restart your OpenVPN server.
Before the application is ready to run, the frontend needs to be built. This is done using npm.
npm run build
node server.js
pm2 start pm2.json
pm2 save
This makes the application available on http://127.0.0.1:3013.
In order to integrate the service into your webserver you might want to use nginx as a reverse proxy. The following configuration assumes that the port is set to 3013 as it is by default.
server {
listen 80;
server_name [domain];
location / {
proxy_pass http://127.0.0.1:3013
proxy_set_header X-Forwarded-Proto $scheme;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_read_timeout 86400;
}
}
Maxmind provides all of the IP information used in this project to determine where the VPN connection is connecting from.
GoSquared provides the flag icons for this project. The source for the flag icons can be found here.
FAQs
A web-based application to monitor clients connected to an openvpn server.
The npm package openvpn-status receives a total of 3 weekly downloads. As such, openvpn-status popularity was classified as not popular.
We found that openvpn-status demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.