{% extends "base.html" %} {% load i18n %} {% load static %} {% load bootstrap_icons %} {% block title %}{% trans "Network filter" %} - {{ name }}{% endblock %} {% block page_heading %}{{ compute.name }} - {% trans "Network filter" %}: {{ name }}{% endblock page_heading %} {% block content %} {% include "computes/host_nav.html" with section="nwfilters" detail=True %} {% if uuid %}
{% trans "Filter" %}
{% trans "References" %} {% if ref_choices %}
{% csrf_token %}
{% endif %}
{% if refs %}
{% for ref in refs %} {% endfor %}
{% trans "Filter" %} {% trans "Parameters" %} {% trans "Actions" %}
{% if ref.filter in filter_names %}{{ ref.filter }} {% else %}{{ ref.filter }} {% trans "Missing" %}{% endif %} {% for param, value in ref.parameters %}
{{ param }}={{ value }}
{% empty %}–{% endfor %}
{% csrf_token %}
{% else %}
{% trans "It references no other filter." %}
{% endif %}
{% trans "Rules" %}
{% if rules %}
{% for rule in rules %} {% endfor %}
# {% trans "Action" %} {% trans "Direction" %} {% trans "Priority" %} {% trans "Matches" %} {% trans "Actions" %}
{{ forloop.counter }} {% if rule.action == "accept" %}{% trans "Accept" %} {% elif rule.action == "drop" or rule.action == "reject" %}{{ rule.action|capfirst }} {% else %}{{ rule.action|capfirst }}{% endif %} {% if rule.direction == "in" %}{% trans "To the VM" %}{% elif rule.direction == "out" %}{% trans "From the VM" %}{% elif rule.direction == "inout" %}{% trans "Both ways" %}{% else %}{{ rule.direction }}{% endif %} {% if rule.priority is not None %}{{ rule.priority }}{% else %}500{% endif %} {% for protocol in rule.protocols %}
{{ protocol.name }}{% for attribute, value in protocol.attributes %} {{ attribute }}={{ value }}{% endfor %}
{% empty %} {% trans "Any traffic of the chain" %} {% endfor %} {% if rule.statematch == "false" or rule.statematch == "0" %}
{% trans "Without connection tracking" %}
{% endif %}
{% csrf_token %}
{% else %}
{% trans "The filter has no rules of its own." %}
{% endif %}

{% csrf_token %}

{% trans "A change applies at once, also to the running VMs that use the filter; it keeps the filter's name and UUID." %}

{% endif %} {% endblock %} {% block script %} {% if uuid %} {% endif %} {% endblock %}