<%# 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") %> <%+header%>

<%:Opennet OpenVPN Gateways%>

<%: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 %>

<%:Gateway-List%>

<% if sorting ~= "manual" then %> <% end %>
<%:active%> <%:IP-Address%> Offset / <% if sorting == "hop" then %> <%:Distance%> <% else %> <%:ETX%> <% end %> <%:Speed%> <%:VPN-Status%> <%:Actions%>
<%:Loading%>
<% local gateway_log = luci.sys.exec("on-function get_mig_connection_log | tail -n 30 | tac") %> <% if gateway_log ~= "" then %>

<%:Connection log%>

<% end %> <%+footer%>