User Tools

Site Tools


Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:public:openvpn_client_connect_notification [2018/04/30 09:55]
stix created
en:public:openvpn_client_connect_notification [2018/05/01 21:07] (current)
stix script update
Line 19: Line 19:
 #!/bin/bash #!/bin/bash
 time=$(echo $(date +"​%c"​)) time=$(echo $(date +"​%c"​))
-message=$(echo "​Client has connected to OpenVPN: \n\nConnected ​Since: $time \nRemote IP: $untrusted_ip\nVirtual IP: $ifconfig_pool_remote_ip\nClient name: $common_name"​)+message=$(echo "​Client has connected to OpenVPN: \n\nConnected ​since: $time \nRemote IP: $untrusted_ip\nVirtual IP: $ifconfig_pool_remote_ip\nClient name: $common_name"​)
 /​usr/​bin/​create_notification -s news "​$message"​ /​usr/​bin/​create_notification -s news "​$message"​
 +/​usr/​bin/​notifier
 </​file>​ </​file>​
  
Line 27: Line 28:
 #!/bin/bash #!/bin/bash
 time=$(echo $(date +"​%c"​)) time=$(echo $(date +"​%c"​))
-message=$(echo "​Client has disconnected from OpenVPN: \n\nConnected Since: $time \nRemote IP: $untrusted_ip\nVirtual IP: $ifconfig_pool_remote_ip\nClient name: $common_name"​)+message=$(echo "​Client has disconnected from OpenVPN: \n\nDisconnected time: $time \nRemote IP: $untrusted_ip\nVirtual IP: $ifconfig_pool_remote_ip\nClient name: $common_name"​)
 /​usr/​bin/​create_notification -s news "​$message"​ /​usr/​bin/​create_notification -s news "​$message"​
 +/​usr/​bin/​notifier
 </​file>​ </​file>​