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
- Host: GitHub
- URL: https://github.com/horgh/sshrecordips
- Owner: horgh
- License: gpl-3.0
- Created: 2016-09-21T23:45:53.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-04-01T21:00:36.000Z (about 8 years ago)
- Last Synced: 2025-01-24T22:34:44.492Z (5 months ago)
- Topics: firewall, go, iptables, logs, ssh, tail
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
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.