This program checks remote logins on a machine. It sends a notification when a logged in user or his remote address is not set as allowed in the configuration file. You can set an interval the program checks for logins. It will pause notifications for a detected user within the configured gracetime.
The programm will use config.yml
in the execution path, you can also set a custom configuration
file by providing the configuration file via commandline argument.
If you leave the mail or slack key empty, no notification will be sent in this channel. There will always be an output to stdout of the programm. When you want to enable mail or slack notification be sure to set all configuration params described below. The basic configuration params have to be set in any way.
Set allowed addresses and hostnames which are allowed
Set allowed users which are allowed to connect to this machine
Interval in seconds to check for logins
Interval in seconds to resend notification for already detected users
Mail from address in email notification header
Mail from name in email notification header
Mail subject in email notification, current hostname will be appended
Mail recipients who should get the notifications
Slack webhook URL for incoming webhook
Channel to send the notification to
Displayed author of notification
Slack message subject, current hostname will be appended
Displayed username of notification
Slack emoji icon of notification