{% comment %} # SPDX-License-Identifier: AGPL-3.0-or-later {% endcomment %} {% load i18n %} {% if port_forwarding_info.ports %}

{% trans "Port Forwarding" %}

{% url 'networks:index' as networks_url %} {% if port_forwarding_info.network_topology_type != "to_router" %}

{% blocktrans trimmed %} Your FreedomBox is not behind a router. No action is necessary. {% endblocktrans %}

{% elif port_forwarding_info.router_configuration_type == 'dmz' %}

{% blocktrans trimmed %} Your FreedomBox is behind a router and you are using the DMZ feature to forward all ports. No further router configuration is necessary. {% endblocktrans %}

{% else %}

{% blocktrans trimmed %} Your FreedomBox is behind a router and you are not using the DMZ feature. You will need to set up port forwarding on your router. You should forward the following ports for {{ service_name }}: {% endblocktrans %}

{% for port in port_forwarding_info.ports %} {% endfor %}
{% trans "Service Name" %} {% trans "Protocol" %} {% trans "From Router/WAN Ports" %} {% blocktrans %}To {{box_name}} Ports{% endblocktrans %}
{{ port.name }} {{ port.protocol }} {{ port.ports }} {{ port.ports }}
{% endif %} {% endif %}