Skip to content

Update nftban_init.sh#7

Merged
itcmsgr merged 1 commit intomainfrom
itcmsgr-fail2ban_inst
Sep 5, 2025
Merged

Update nftban_init.sh#7
itcmsgr merged 1 commit intomainfrom
itcmsgr-fail2ban_inst

Conversation

@itcmsgr
Copy link
Copy Markdown
Owner

@itcmsgr itcmsgr commented Sep 5, 2025

Added fail2ban installation

Added fail2ban installation
@itcmsgr itcmsgr merged commit d52db39 into main Sep 5, 2025
itcmsgr added a commit that referenced this pull request Jan 2, 2026
itcmsgr added a commit that referenced this pull request Jan 25, 2026
Phase 3 of v1.6.0 architecture cleanup:

ADDED - Missing metrics to JSON cache (#6):
- memory section: rss_bytes, open_fds, threads
- network section: rx_mbps, tx_mbps, peak values, connections
- Cache now has 44+ metrics (up from 41)

OPTIMIZED - Stats functions (#7):
- nftban_stats_top_sources() now uses cache-first pattern
- Reads from .bans_by_source for all-time stats
- Reads from .bans_by_source_24h for 24h stats
- Fallback to log parsing for custom date ranges

CONFIGURED - Prometheus default OFF (#8):
- NFTBAN_EXPORT_PROMETHEUS="false" confirmed as default
- Added smart auto-detection: enables if node_exporter detected
- Added documentation: "Prometheus is optional adapter, not backend"
- Our backend: stats.json + bans.log (not Prometheus)

UPDATED - Health checks (#17):
- Removed legacy zabbix timer migration warning
- All health checks now reference unified exporter only
- Fresh install will pass health checks

VERIFIED - Zabbix integration (#15):
- export_zabbix() function confirmed working
- Uses zabbix_sender protocol
- Supports TLS/PSK, failover, auto-firewall
- LLD infrastructure in place

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
itcmsgr added a commit that referenced this pull request Mar 20, 2026
…ban steps, feeds version

- Health ERRORS section now shows issues from checks with ERROR status even if
  they didn't add explicit NFTBAN_HEALTH_ERRORS entries (e.g., GUI auth socket)
- Services in status show INACTIVE (optional) instead of bare INACTIVE
- Services report disables ANSI colors when stdout is not a terminal (no garbage
  in logs/pipes/tickets)
- Ban output shows Step 4 (persistent offender check) with result messages
- Feeds header uses actual NFTBAN_VERSION instead of hardcoded v1.0.0

Addresses UX report issues #3, #4, #6, #7, #8.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant