An open API service indexing awesome lists of open source software.

https://github.com/horgh/sshrecordips

Tail SSH logs and record IPs of accepted logins
https://github.com/horgh/sshrecordips

firewall go iptables logs ssh tail

Last synced: 3 months ago
JSON representation

Tail SSH logs and record IPs of accepted logins

Awesome Lists containing this project

README

        

# Summary
Purpose of this program: I firewall off several ports where only whitelisted
IPs may access them. I want to automatically permit IPs that login via SSH.

This program tails the ssh auth log and records IPs as they log in. A separate
program ([iptables-manage](https://github.com/horgh/iptables-manage)) ingests
these IPs and updates the firewall.

It runs as a daemon and tails a log, typically /var/log/auth.log.