Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-ssh-block-ip-bruteforce

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!!!

Using

Rename config.yml.example and load parameters.

You can use Redis.io to get access a free database.

Then do:

go run main.go

Feat:

  • 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.

TODO:

  • Unban IPs
  • Metrics?? Prometheus?
  • A lot of refactoring.
  • Better documentation :p
  • ..etc

About

Simple SSH brute force IP blocker. Like Fail2ban but in Golang.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages