Simple SSH IP blocker. Like Fail2ban but in Golang.
If a Redis server is available, then the application can distribute blocked IP addresses across servers and perform a massive ban.
For personal learning
WIP!!!
Rename config.yml.example and load parameters.
You can use Redis.io to get access a free database.
Then do:
go run main.go
- Parse some log file for failed access attempts.
- Save IP addresses in memory, counting attempts and last seen.
- Run local firewall command to deny IP addresses.
- Distributed ban IP using Redis.
- Unban IPs
- Metrics?? Prometheus?
- A lot of refactoring.
- Better documentation :p
- ..etc