Advertisement
Guest User

Untitled

a guest
May 8th, 2018
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.58 KB | None | 0 0
  1. #!/bin/bash
  2. time="$(date +%c)"
  3. message="$(echo -e "Client has disconnected from: ${HOSTNAME} \\nDisconnected time: ${time} \\nRemote IP: ${untrusted_ip} \\nVirtual IP: ${ifconfig_pool_remote_ip} \\nClient name: ${common_name}")"
  4. /usr/bin/create_notification -s news "${message}"
  5. /usr/bin/notifier
  6.  
  7. #!/bin/bash
  8. time="$(date +%c)"
  9. message="$(echo -e "Client has connected to: ${HOSTNAME} \\nConnected since: ${time} \\nRemote IP: ${untrusted_ip} \\nVirtual IP: ${ifconfig_pool_remote_ip} \\nClient name: ${common_name}")"
  10. /usr/bin/create_notification -s news "${message}"
  11. /usr/bin/notifier
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement