Skip to content

A tool designed to keep your server safe from VPN connections by automatically blacklisting them on connect.

Notifications You must be signed in to change notification settings

G4-eksamen/VPNMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

VPN Monitor - developed by devon (https://www.github.com/Kerbz-dev) See https://github.com/MBII/VPNMonitor for a MBII version of this program, configured by Spaghetti

----------- Installation ----------

1: cd to your jka/gamedata directory (not base folder)

2: make sure you enable 'set developer 1' in your JKA server's launch script (./linuxjampded +exec server.cfg +set developer 1) and your server is logging console output to a .txt file named log.txt (see bottom for an example)

3: import from github: git clone

4: Edit file 'vpnmonitor' with required input

5: chmod a+x vpnmonitor, chmod a+x installvpndb, chmod a+x startvpnmonitor

6: run installvpndb (./installvpndb)

7: run startvpnmonitor (./startvpnmonitor)

8: If you run a daily restart script for the server, make sure you add ./startvpnmonitor after your server restart command. Otherwise log will be truncated on server restart.

---------- Example startup script -----------

restart script that logs console output to 'log.txt' -- just start this with a screen command

#!/bin/bash

echo "JKA startup script"

status=1 while [ $status -ne 0 ] do ./linuxjampded +exec "server.cfg +set developer 1" >log.txt 2>&1 status=$?

if [ $status -ne 0 ]
then
        date=`/bin/date`
        echo "Server crashed with status "$status" at "$date
fi

done

echo "Server exited peacefully"

About

A tool designed to keep your server safe from VPN connections by automatically blacklisting them on connect.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages