{% extends 'core/base.html' %} {% block title %}IP Control | Killian{% endblock %} {% block content %}

IP Control

Manage IPv4 and IPv6 allow and block rules for Killian access.

Back
Your current source IP: {{ current_ip|default:'Unknown' }}

{% if editing_rule %} Edit Rule {% else %} New Rule {% endif %}

Allow rules override matching block rules.
{% csrf_token %} {% if editing_rule %} {% endif %} {% if form.non_field_errors %}
{{ form.non_field_errors }}
{% endif %}
{{ form.rule_type }} {{ form.rule_type.errors }}
{{ form.network }} {{ form.network.help_text }} {{ form.network.errors }}
{{ form.expires_at }} {{ form.expires_at.help_text }} {{ form.expires_at.errors }}
{{ form.reason }} {{ form.reason.errors }}
{{ form.confirm_self_block.errors }}
{% if editing_rule %} Cancel {% endif %}

Rules

{{ rules|length }} configured rule{{ rules|length|pluralize }}
Actions
{% for rule in rules %}
{{ rule.get_rule_type_display }} {{ rule.network }} {% if not rule.enabled %} Disabled {% elif rule.expires_at and rule.expires_at <= now %} Expired {% else %} Active {% endif %} {% if rule.expires_at %} {{ rule.expires_at|date:'Y-m-d H:i' }} {% else %} Never {% endif %} {{ rule.match_count }} {% if rule.last_matched_at %} {{ rule.last_matched_at|date:'Y-m-d H:i:s' }} {% else %} — {% endif %} {{ rule.created_by|default:'System' }} {{ rule.reason|default:'—'|truncatewords:8 }} Edit
{% csrf_token %}
Delete
{% empty %}

No IP Control rules

Add a Block or Allow rule to begin controlling access.

{% endfor %}
{% endblock %}