From d63a4e5b3c34ce13fe4388d575028e2b362b933c Mon Sep 17 00:00:00 2001 From: James Valleroy Date: Fri, 10 May 2019 21:04:55 -0400 Subject: [PATCH] openvpn: Show port forwarding info Signed-off-by: James Valleroy Reviewed-by: Sunil Mohan Adapa --- plinth/modules/openvpn/templates/openvpn.html | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/plinth/modules/openvpn/templates/openvpn.html b/plinth/modules/openvpn/templates/openvpn.html index f929a8f06..69736f4e8 100644 --- a/plinth/modules/openvpn/templates/openvpn.html +++ b/plinth/modules/openvpn/templates/openvpn.html @@ -118,6 +118,24 @@ {% include "diagnostics_button.html" with module="openvpn" enabled=status.enabled %} + {% if port_forwarding_info %} +

{% trans "Port Forwarding" %}

+ +

+ {% 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 + OpenVPN: + {% endblocktrans %} +

+ +
    + {% for port in port_forwarding_info %} +
  • {{ port.0 }} {{ port.1 }}
  • + {% endfor %} +
+ {% endif %} +

{% trans "Configuration" %}