Each time a client (dis)connects to the OpenVPN server of pfSense a new Telegram notification will be sent.
Under "VPN" > "Servers" > your server > "Advanced Configuration" > "Custom Options" add the following lines.
client-connect /root/openvpn-telegram.sh
client-disconnect /root/openvpn-telegram.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name document.load client injection | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description The Avocent PM1000/2000/3000 PDU runs an old JavaScript interface that relies on the XMLDocument.fetch() function that has been removed. Emulate this. | |
// @description inject the document.load implementation into real page context. | |
// @author Andreas Thienemann <andreas@bawue.net>, based on a script from jnd@chromium.org, based on idea from gurreiro_fabio@yahoo.com.br | |
// @match http://172.16.10.64/* | |
// @match http://172.16.10.65/* | |
// @run-at document-start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<# | |
.SYNOPSIS | |
Tests the connection to the supplied host or IP and reports back on changes to its status. | |
.DESCRIPTION | |
This script will check the connection to the supplied hostname or IP address every 5 second's to | |
monitor its status. If the status changes, a message is recorded, the Eventlog is update (optional), and an email is sent | |
to a supplied email address (optional). | |
If a TCPPort parameter is suppied the script will attempt to connect to this port. Otherwise a simple ICMP Ping is used. |