@extends('layouts.app') @section('content')

Security Attack Monitor

Fail2Ban jail activity, SSH brute-force sources, and recent security log events.
Detected Jails
{{ count($fail2ban) }}
Top SSH Attackers
{{ count($topAttackers) }}
Fail2Ban Log Lines
{{ count($fail2banLog) }}
Fail2Ban Current Bans {{ count($fail2ban) }} jails
@if (empty($fail2ban))
No Fail2Ban jails detected or fail2ban-client is not accessible to the app context.
@else
@foreach ($fail2ban as $jailName => $data)

@if (!empty($data['bannedIps']))
@foreach ($data['bannedIps'] as $ip) {{ $ip }} @endforeach
@else
No currently banned IPs in this jail.
@endif
@endforeach
@endif
Top SSH Attackers
@if (empty($topAttackers))
No recent failed SSH attempts found, or /var/log/auth.log is not readable.
@else
@foreach ($topAttackers as $row) @endforeach
IP Address Failed Attempts
{{ $row['ip'] }} {{ $row['count'] }}
@endif
Raw Fail2Ban Log
@if (empty($fail2banLog))
No /var/log/fail2ban.log entries found, or the log is not readable.
@else
@foreach ($fail2banLog as $line)
{{ $line }}
@endforeach
@endif
@endsection