{# Security tab (R7.3, Hani #1 2026-10-23): who tries to sign in to this device, read from its logs. #} {% set sec = security %}

Security

Sign-in failures and successes read from this device's log (SSH, the Proxmox web interface, MikroTik's SSH, WinBox, web and API). Locations come from the Portal's own location database; no address leaves the Portal.

{% if not sec %}

Security events are not available on this Portal.

{% else %} {% if not sec.source %}
This device does not send its log to the Portal yet. Set it up under Tools › Logs; sign-ins then show here.
{% endif %} {% set sec_view = 'events' if request.query_params.get('sec') == 'events' else 'signins' %} {% if sec_view == 'events' %}{% include "_device_security_events.html" %}{% else %}
Failed sign-ins

{{ sec.failed }}

Successful sign-ins

{{ sec.accepted }}

Addresses

{{ sec.addresses }}

{{ sec.countries }} countr{{ 'y' if sec.countries == 1 else 'ies' }}
Kept

{{ (sec.levels or {}).get('security_days', '') }} days

Change

Where sign-ins come from

{% set back = '/inventory/assets/' ~ inventory.asset.id ~ '?tab=security&sec=signins&period=' ~ sec.period %} {% if sec.sources %}{% with bar_id='bulk-signins' %}{% include "_address_bulk_bar.html" %}{% endwith %}
{% import "_ai_analysis.html" as ai with context %}{% set AIS = ai_analysis(sec.sources|map(attribute='source_ip')|list) %}{% for r in sec.sources %}{% endfor %}
AddressLocationFailedSucceededAccounts triedViaLastActions
{{ r.source_ip }}{{ ai.inline(AIS.get(r.source_ip), r.source_ip) }}{{ (r.place|country) if r.place else '—' }}{{ r.failed }}{{ r.accepted }}{{ r.users or '—' }}{% if r.nexxvu %} NEXXVU monitoring{% endif %}{{ r.methods or '' }}{{ (r.last_at or '')|replace('T', ' ')|replace('Z', '') }}{% with address=r.source_ip %}{% include "_address_row_actions.html" %}{% endwith %}
{% else %}

No sign-in in this period.

{% endif %} {% if sec.users %}

Accounts

{% for u in sec.users %}{% endfor %}
AccountFailedSucceeded
{{ u.username or '(none)' }}{% if u.nexxvu %} this Portal's monitoring account{% endif %}{{ u.failed }}{{ u.accepted }}
{% endif %}
Latest events {% if sec.recent %}{% with bar_id='bulk-recent' %}{% include "_address_bulk_bar.html" %}{% endwith %}
{% import "_ai_analysis.html" as ai with context %}{% set AIR2 = ai_analysis(sec.recent|map(attribute='source_ip')|list) %}{% for e in sec.recent %}{% endfor %}
Time (UTC)ResultAccountAddressViaActions
{{ e.at|replace('T', ' ')|replace('Z', '') }}{{ 'Failed' if e.outcome == 'failed' else 'Signed in' }}{{ e.username or '' }}{{ e.source_ip }}{{ ai.inline(AIR2.get(e.source_ip), e.source_ip) }}{{ e.method }}{% with address=e.source_ip %}{% include "_address_row_actions.html" %}{% endwith %}
{% else %}

None yet.

{% endif %}
{% include "_address_shared_dialogs.html" %} {% endif %} {% endif %}