{% extends "base.html" %} {% block title %}Portal Guard · NEXXVU{% endblock %} {% block content %}

Settings › Security

Portal Guard {{ fresh_tag("settings:portal-guard") }}

Only the addresses on the sign-in allowlist reach this Portal. The MikroTik router in front of it drops port 443 for everyone else, so scanners get no answer at all.

All settings
{% include "_settings_navigation.html" %}

Portal Guard

{% if notice %}
{{ notice }}
{% endif %} {% if error %}{% endif %} {% if not admin %}

Only Portal administrators manage Portal Guard.

{% elif not g %}

Portal Guard is not available on this Portal yet.

{% else %}

What gets through on port 443: the sign-in allowlist, the trusted addresses and the private ranges (your LAN and VPN). Port 80 stays open so the certificate keeps renewing; logs, SNMP and updates are not touched. Only IPv4 is guarded.

{% if g.problem %}

{{ fresh_tag("security:guard-wide") }}{{ g.problem }}

{% elif not g.allowlist_used %}

The sign-in allowlist is not in use (everyone may sign in), so there is nothing to keep out. Fill it under Settings › Security first.

{% elif not g.requester_ok %}

Your current address ({{ g.requester }}) is not on the allowlist or the trusted addresses, so Portal Guard cannot be switched on from here.

{% endif %}
The router's list ({{ g.allowed|length }} entries)

{{ g.allowed|join(', ') or '—' }}

{% for r in g.routers %}{% set st = r.state %}{% else %}{% endfor %}
Router in front of the PortalPortal GuardActions
{{ r.label }} {% if st and st.state == 'on' %}{{ fresh_tag("security:guard-names") }}{{ fresh_tag("security:guard-preview") }}On {% if st.last_ok == 0 and st.last_detail %}
{{ st.last_detail }}{% endif %} {% elif st and st.state == 'pending' %}Waiting for your confirmation {% elif not r.ready %}Not kept up to date {% else %}Off{% endif %}
{% if st and st.state == 'pending' %}
{% elif st %}
Switch off…
{% elif r.ready and r.approved %}
{% endif %}
No MikroTik router is onboarded. A router NEXXVU does not manage (for example a FortiGate) gets the policy below, to add by hand.
{% if plan %}

What changes on {{ plan.router }}{% if plan.identity %} ({{ plan.identity }}, RouterOS {{ plan.version }}){% endif %}

The router sees this Portal at {{ plan.portal }}.

{{ plan.changes|join('\n') }}
{% endif %}
Locked out? Turn it off on the router

From the local network or the router's console (WinBox or SSH), one line turns Portal Guard off; NEXXVU's next check shows it.

/ip firewall filter disable [find comment~"nexxvu-portal-guard"]
{% if g.fortigate %}
A router NEXXVU does not manage (FortiGate): the policy to add by hand

NEXXVU never changes a FortiGate. These lines create the address group; then use it as the source of the policy that lets HTTPS in to the Portal.

{{ g.fortigate }}
{% endif %} {% endif %}
{% endblock %}