Skip to content

0x1911/ovpn_watchdog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OVPN Watchdog

Description:

This blob of code is intended to ping a given OVPN server host. If failing to respond after a given number x of pings it attempts to reconnect via the OpenVPN-Gui client given a *.ovpn config file. For more details check the code itself or use the implemted command help via "python main.py -h". Please keep in mind: This code was chunked together by a noob python dev in an three hour night shift.. You should see it more like a cheat sheet || inspiration.

console help output screenshot

Requirements:

  • OpenVPN-Gui client
  • Python 2.x or 3.x
  • Check How to's for your target system

Windows OS How To:

  • OpenVPN config file in ../config/ with added credentials || keys
  • Create a *.bat file
  • pseudo batch code example:
python Path\To\File\main.py -c SecureMoonVPN -t 13.37.0.1
  • add to Win OS autostart through your method of choice
  • hopefully never end up with a disconnected client over a longer period of time

Linux OS How To:

python3 main.py -b /usr/sbin/openvpn -c /home/0x1911/Testerino -t 13.37.0.1

Tested on:

  • Windows 10
  • Linux Mint

ToDo:

  • more performant check if we (re)connected succesfully without ghetto sleep usage
  • check for running OVPN instances and kill "our" old disconnected instances

Releases

No releases published

Packages

No packages published

Languages