Send a message to telegram when a client is connected or disconnected from wireguard tunnel
- Clone this repo into your server with wireguard installed
- Rename .config.example to .config and edit the file with your telegram chat id and bot token
- Open the terminal and type:
sudo -s
chmod +x /path/to/wireguard-client-connection-notification/wg-clients-guardian
sudo crontab -e
* * * * * cd /path/to/wireguard-client-connection-notification && /path/to/wireguard-client-connection-notification/wg-clients-guardian /path/to/wireguard-client-connection-notification/.config > /dev/null 2>&1