FreedomBox/plinth/templates/port-forwarding-info.html
Sunil Mohan Adapa 495f93af24
firewall: Show port forwarding info in tabular format
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org>
Reviewed-by: Veiko Aasa <veiko17@disroot.org>
2020-09-04 16:32:22 +03:00

37 lines
899 B
HTML

{% comment %}
# SPDX-License-Identifier: AGPL-3.0-or-later
{% endcomment %}
{% load i18n %}
{% if port_forwarding_info %}
<h3>{% trans "Port Forwarding" %}</h3>
<p>
{% blocktrans trimmed %}
If your FreedomBox is behind a router, you will need to set up port
forwarding on your router. You should forward the following ports for
{{ service_name }}:
{% endblocktrans %}
</p>
<table class="table table-condensed">
<thead>
<tr>
<th>{% trans "Protocol" %}</th>
<th>{% trans "From Router/WAN Ports" %}</th>
<th>{% blocktrans %}To {{box_name}} Ports{% endblocktrans %}</th>
</tr>
</thead>
<tbody>
{% for port in port_forwarding_info %}
<tr>
<td>{{ port.0 }}</td>
<td>{{ port.1 }}</td>
<td>{{ port.1 }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endif %}