v0.8.0 #8

Merged
kor-elf merged 15 commits from develop into main 2026-03-09 21:35:22 +05:00
Owner

Русский

  • Теперь можно тонко настроить блокировку портов для IP адреса, который пытается подобрать пароль.
  • Команда kor-elf-shield ban clear была переименованна в kor-elf-shield block clear.
  • Добавлена команда kor-elf-shield block add. Через эту команду можно заблокировать IP адрес. Смотрите подробно в kor-elf-shield block add --help.
  • Добавлена команда kor-elf-shield block delete. Через эту команду можно удалить заблокированный IP адрес. Смотрите подробно в kor-elf-shield block delete --help.

English

  • You can now fine-tune port blocking for the IP address attempting to brute-force a password.
  • The kor-elf-shield ban clear command has been renamed to kor-elf-shield block clear.
  • The kor-elf-shield block add command has been added. This command can be used to block an IP address. See kor-elf-shield block add --help for details.
  • The kor-elf-shield block delete command has been added. This command can be used to delete a blocked IP address. See kor-elf-shield block delete --help for details.

#### Русский * Теперь можно тонко настроить блокировку портов для IP адреса, который пытается подобрать пароль. * В файл настроек analyzer.toml в [[bruteForceProtection.groups]] добавлен новый параметр "block_type". * В файл настроек analyzer.toml в [[bruteForceProtection.groups]] добавлен новый параметр "ports". * В файл настроек analyzer.toml в [[bruteForceProtection.groups.rate_limits]] добавлен новый параметр "block_type". * В файл настроек analyzer.toml в [[bruteForceProtection.groups.rate_limits]] добавлен новый параметр "ports". * Смотрите полный список по ссылке: https://git.kor-elf.net/kor-elf-shield/kor-elf-shield/src/commit/d0a358a445b1dec850d8b84c06e86bd6872796cf/assets/configs/analyzer.toml * Команда `kor-elf-shield ban clear` была переименованна в `kor-elf-shield block clear`. * Добавлена команда `kor-elf-shield block add`. Через эту команду можно заблокировать IP адрес. Смотрите подробно в `kor-elf-shield block add --help`. * Добавлена команда `kor-elf-shield block delete`. Через эту команду можно удалить заблокированный IP адрес. Смотрите подробно в `kor-elf-shield block delete --help`. *** #### English * You can now fine-tune port blocking for the IP address attempting to brute-force a password. * A new "block_type" parameter has been added to the analyzer.toml settings file in [[bruteForceProtection.groups]]. * A new "ports" parameter has been added to the analyzer.toml settings file in [[bruteForceProtection.groups]]. * A new "block_type" parameter has been added to the analyzer.toml settings file in [[bruteForceProtection.groups.rate_limits]]. * A new "ports" parameter has been added to the analyzer.toml settings file in [[bruteForceProtection.groups.rate_limits]]. * See the full list at: https://git.kor-elf.net/kor-elf-shield/kor-elf-shield/src/commit/d0a358a445b1dec850d8b84c06e86bd6872796cf/assets/configs/analyzer.toml * The `kor-elf-shield ban clear` command has been renamed to `kor-elf-shield block clear`. * The `kor-elf-shield block add` command has been added. This command can be used to block an IP address. See `kor-elf-shield block add --help` for details. * The `kor-elf-shield block delete` command has been added. This command can be used to delete a blocked IP address. See `kor-elf-shield block delete --help` for details. ***
kor-elf added 15 commits 2026-03-09 21:35:12 +05:00
- Introduced `types` package with structured definitions (`Protocol`, `Action`, `Direction`, `PolicyDrop`, etc.).
- Replaced primitive types for port-related logic with `L4Port` interface for improved encapsulation.
- Updated firewall methods to use `L4Port`, enhancing readability and reducing direct type handling.
- Adjusted validation and configuration logic to leverage new `types`.
- Introduced `Block` interface to handle IP and port blocking configurations.
- Added `BlockIPWithPorts` functionality for enhanced blocking with ports.
- Enhanced brute force protection to support IP and port-based rules.
- Updated `Blocking` entity and repository for port-specific blocking.
- Added internationalization for port-based brute force notifications.
- Refactored the analyzer to accommodate new block configurations.
- Added support for specifying `block_type` and `ports` in brute force protection groups.
- Enhanced rate limit configuration to override `block_type` and define specific ports for blocking.
- Updated documentation in `analyzer.toml` with examples for new settings.
- Introduced `SendCommand` for sending commands with arguments over sockets.
- Updated socket communication to encode/decode commands as JSON.
- Refactored daemon handlers to process commands with arguments.
- Added `Message` struct and `parseCommand` function for improved command handling.
- Introduced `block delete` command to remove IPs from the block list.
- Added `UnblockIP` method to support IP removal in the firewall.
- Updated internationalization files for delete command descriptions.
- Enhanced repository with `DeleteByIP` for targeted IP removal.
kor-elf merged commit f5ff0c1afd into main 2026-03-09 21:35:22 +05:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: kor-elf-shield/kor-elf-shield#8