Skip to content

Commit 1e35c25

Browse files
committed
Add jail details, time remaining, and ban tools
1 parent 4280004 commit 1e35c25

4 files changed

Lines changed: 1159 additions & 72 deletions

File tree

Cargo.lock

Lines changed: 211 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
[package]
22
name = "f2bs"
3-
version = "0.1.0"
3+
version = "0.1.1"
44
edition = "2024"
55
license = "MIT OR Apache-2.0"
66

77
[dependencies]
88
anyhow = "1.0"
9+
chrono = "0.4"
910
crossterm = "0.28"
1011
ratatui = "0.28"
12+
13+
[profile.release]
14+
opt-level = "z"
15+
lto = "fat"
16+
codegen-units = 1
17+
panic = "abort"

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ A focused, terminal UI for scanning Fail2Ban jails and unbanning IPs.
77
## Features
88

99
- Two-panel TUI (jails on the left, banned IPs on the right)
10+
- Remaining time shown next to banned IPs (when supported by fail2ban)
11+
- Jail detail panel with bantime/findtime/maxretry
12+
- Filter + sort for IP list
13+
- Auto-refresh toggle
14+
- Unban all with double confirmation
1015
- Keyboard and mouse support
1116
- Confirm prompt before unbanning
1217
- Works directly with `fail2ban-client`
@@ -27,8 +32,14 @@ curl -fsSL https://raw.githubusercontent.com/hexajohnny/f2bs/main/install.sh | s
2732

2833
- `q`: quit
2934
- `r`: refresh
35+
- `t`: toggle auto-refresh
36+
- `/`: filter IP list (type, then `enter` to apply, `esc` to cancel)
37+
- `x`: clear filter
38+
- `s`: toggle sort (IP or time left)
39+
- `b`: ban an IP in the selected jail
3040
- `tab`: switch panels
3141
- `enter`: unban selected IP
42+
- `A`: unban all in selected jail (double confirm)
3243
- `y/n`: confirm/cancel unban
3344
- mouse click: select jail or IP, click Confirm/Cancel in modal
3445

0 commit comments

Comments
 (0)