Commit Graph
18 Commits
Author SHA1 Message Date
midefos 03a52925d4 feat: migrate ban_ip/unban_ip to ipset
- New ipset.rs module wrapping ipset binary (hash:ip backend)
- ban_ip() and unban_ip() use ipset.add/del instead of per-IP iptables rules
- get_banned_ips() parses ipset list -json
- Optional timeout via BAN_DURATION_SECS (default 3600s = 1h)
- Auto-installs single iptables rule: -m set --match-set banned src -j DROP
- New CLI subcommands: ban-ip, unban-ip (with --timeout)
- 13 unit tests for ipset module + integration test script using netns
- Update Woodpecker CI to install ipset
2026-08-31 00:08:21 +02:00
midefos b736875510 removing ban service (moving to another project) 2024-12-31 13:17:58 +01:00
midefos 20f1038ff8 WIP moving code into lib 2024-12-31 03:57:40 +01:00
midefos 41abf04a63 some lib upgrade for martillo-maldito 2024-11-28 13:34:08 +01:00
midefos 19a69a2af1 removing log, dep, and upgrading 2024-09-22 04:05:35 +02:00
midefos 7978ad4122 upgrading 2024-09-17 01:58:21 +02:00
midefos 0593a2bfea upgrading, and improving ban server 2024-08-30 12:27:32 +02:00
midefos dffa6b7ed7 upgrade 2024-08-21 04:05:15 +02:00
midefos 9c22f2203d some upgrades 2024-08-09 16:07:47 +02:00
midefos 31768af600 print true/false depending of result 2024-07-23 22:56:03 +02:00
midefos d6b1502759 improving martillo-maldito to server to protect also nodes (port, ip, etc..) 2024-07-23 21:14:51 +02:00
midefos 78c0af4d04 WIP list banned ips 2024-07-21 13:01:23 +02:00
midefos d02c0b7c66 upgrade v 2024-06-09 15:29:00 +02:00
midefos bf4602375d adding argument to check if port is secured 2024-06-09 15:17:36 +02:00
midefos d53ca8a33a moving code from command server into cli 2024-05-28 16:03:32 +02:00
midefos 6a54d6edf2 iptables-save every minute 2024-05-12 14:54:47 +02:00
midefos f4a3062663 some quick update 2024-05-12 13:46:35 +02:00
midefos d856596e05 first commit with test logic 2024-05-12 13:46:11 +02:00