<%# Opennet Firmware Copyright 2010 Rene Ejury Copyright 2014 Lars Kruse Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 -%> <% require("luci.model.opennet.funcs") local sorting = on_function("get_service_sorting") local parallel_processes = 3 -- Geraete mit weniger als 32 MB zeigen sonst gelegentlich ein out-of-memory-Verhalten if tonumber(on_function("get_memory_size")) <= 32 then parallel_processes = 1 end local gateway_log = get_custom_log_reversed("mig-openvpn-connections", 30) %> <%+header%> <%# Ein paar Infos zu Gateways im Allgemeinen %>

<%:Opennet OpenVPN Gateways%>

<%= html_display_error_list(on_errors) %>

<%:Here you can configure the IP-Addresses of your choosen Gateways.%>

<% if show_more_info then %>

<%:Take a look at the Opennet wiki, if you would like to know more about the Gateway system. Usually the first found Gateway in your list is the one you are going to use. The Gateway will be changed automatically, if the current Gateway does not work for approximately 120 seconds.%>

<%:Your router periodically tries to connect to all available Gateways in the Opennet network. The results of these tests are indicated in the "Status" column below.%>

<%:The "distance" column indicates the routing distance to this Gateway. The selection of your preferred gateway is based on this value.%>

<%:Additionally you may choose to rank specific gateways higher or lower than their routing distance would indicate. Please be careful with this manual intervention since it could force your connection through an inefficient path. Usually you should just keep the default values.%>

<%:If you notice a severe slow-down of your connection, you should try to remove your manual priorities first. Use the small "clear" icon in the "offset/distance" column for this purpose.%>

<% else %>
<% end %>
<% if not on_bool_function("has_mig_openvpn_credentials") then %>

<%:The required certificate and key for your internet access via Opennet seems to be missing%> (<%:see%> "><%:Certificate management%>).

<% end %>
<%# Dynamisch erzeugte Gateway-Liste, sowie Eingabe manueller Gateways %>
<%:Gateway-List%>
<%=luci.i18n.translatef('You can change the sorting mechanism of gateways in the Service Settings section.', luci.dispatcher.build_url("opennet", "opennet_1", "dienste"))%>
<%:active%> <%:IP-Address%> <% if sorting ~= "manual" then %> <%# es gibt keinen Offset im manual Modus %> Offset / <% end %> <% if sorting == "hop" then %> <%:Distance%> <% else %> <%# im manual und etx Modus zeigen wir den ETX-Wert an %> <%:ETX%> <% end %> <%:Speed%> <%:VPN-Status%> <%:Actions%>
<%= get_html_loading_spinner('gateway-list-spinner', 'vertical-align:middle;') %>
<%# Manuelles Hinzufügen weiterer Gateways %>
" />
<%# Protokoll von Gateway-Wechseln %> <% if gateway_log ~= "" then %>

<%:Connection log%>

<% end %> <%+footer%>