LoginNotifier

command module
v0.0.0-...-cbd4b7b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2020 License: GPL-3.0 Imports: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

LoginNotifier Build Status

This program notifies you of successful SSH login attempts. It parses the /var/log/auth.log file and sends you an alert via the supported platforms containing the user and source IP address.

Installation

You can use the packages (deb/rpm) or the precompiled binary from the releases section.

Configuration

The configuration file is by default located in /etc/loginnotifier/config.json. To specify a different location use the --config parameter. In case the file doesn't exist it will be created during startup.

Alerts

Currently supported platforms:

  • Slack
  • Discord

To enable alerts for a specific platform set the config option alerts.<platform>.enabled to true.

Slack

To use Slack alerts you have to specify the Webhook URL, the channel name, the username for the alerts and an icon emoji. You can find more information about Slack Webhooks here.

Discord

To use Discord alerts you have to specify the Webhook URL, the username for the alerts and an avatar url. You can find more information about Discord Webhooks here.

Log file

By default this program uses the /var/log/auth.log file to detect new sessions. You can specify a different file with the config option source_log.

License

GNU General Public License 3.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL