https://github.com/kaplanmaxe/slack-openvpn
Monitor your OpenVPN activity via Slack notifications.
https://github.com/kaplanmaxe/slack-openvpn
Last synced: about 1 year ago
JSON representation
Monitor your OpenVPN activity via Slack notifications.
- Host: GitHub
- URL: https://github.com/kaplanmaxe/slack-openvpn
- Owner: kaplanmaxe
- Created: 2017-10-03T04:39:11.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2022-06-30T06:21:56.000Z (almost 4 years ago)
- Last Synced: 2025-03-18T13:55:54.321Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 74.2 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slack-openvpn
### Installation
```
npm install -g slack-openvpn
```
### Slack Setup
In order to configure `slack-openvpn` you will need to set up an incoming webhook into your Slack team. To do this, you will need to install the `Incoming WebHooks` app. Once installed, copy the value inside `Webhook URL`. We will need to set this in the next step.
### OpenVPN config
In your OpenVPN config on your server add the following lines to your config:
```
client-connect "/usr/bin/env slack-openvpn --webhookUrl YOUR_WEBHOOK_URL --action connect"
client-disconnect "/usr/bin/env slack-openvpn --webhookUrl YOUR_WEBHOOK_URL --action disconnect"
```
Restart OpenVPN
```
sudo service openvpn restart
```
Now connect to your vpn. You now have slack notifications configured with OpenVPN!