Made with ratatui
Overcomplicated way to tail -f your SSH logs.
Only made for myself to learn Rust, use at own discretion.
Issues / Todos:
- Stopping of watchers does not work without Ctrl+C after shutdown !!!
- Some colors may default to default terminal colors which breaks the theme
- Actions need refactor badly
- Configuration of fail2ban log path and Hotkeys
- Refactor for testing
- Text wrapping
-
cargo run
-
Press Tab to skip Startup menu
-
Start fail2ban and/or journalctl watcher
-
Watch
I once had trouble setting up fail2ban so I had to spent some time looking at logs, so I thought why not spent some more time looking at logs? I then build a similar app in Python, which was much more limited and limiting. After deciding to learn Rust I thought this was a good opportunity to spent even more time looking at logs. So here we are.
succeed2Ban-tui monitors journalctl and fail2ban SSH logs. It fetches geodata for incoming IPs from ip-api.com. Stores geodata in a SQLite file in order to keep necessary requests to a minimum and to review log statistics.
Allows for blocking based on:
- Country
- Region
- City
- ISP
But in the end this is more of an overinflated cMatrix with tail -f on top. So enjoy your CPU cycles :)