{% load i18n %}

{% translate "Firewall (nftables)" %}

{% if not gateway.firewall_mode %}

{% translate "The Rivet gateway has not reported its firewall yet (from version 0.1.0~dev.11)." %}

{% else %}
{% translate "Mode" %}
{% if gateway.firewall_mode == "kernel" %}{% translate "kernel (nftables)" %}{% elif gateway.firewall_mode == "userspace" %}{% translate "userspace (without nftables)" %}{% else %}{% translate "off" %}{% endif %}
{% translate "Applied" %}
{{ gateway.firewall_applied_at|date:"SHORT_DATETIME_FORMAT"|default:"–" }}
{% if gateway.firewall_error %}
{% translate "Error" %}
{{ gateway.firewall_error }}
{% endif %}
{% translate "Table ip rivet" %}
{{ gateway.firewall_table }}
{% endif %}