I2P Address: [http://git.idk.i2p]

Skip to content
Snippets Groups Projects
  • jrandom's avatar
    77b995f5
    2005-08-10 jrandom · 77b995f5
    jrandom authored and zzz's avatar zzz committed
        * Deployed the peer testing implementation to be run every few minutes on
          each router, as well as any time the user requests a test manually.  The
          tests do not reconfigure the ports at the moment, merely determine under
          what conditions the local router is reachable.  The status shown in the
          top left will be "ERR-SymmetricNAT" if the user's IP and port show up
          differently for different peers, "ERR-Reject" if the router cannot
          receive unsolicited packets or the peer helping test could not find a
          collaborator, "Unknown" if the test has not been run or the test
          participants were unreachable, or "OK" if the router can receive
          unsolicited connections and those connections use the same IP and port.
    77b995f5
    History
    2005-08-10 jrandom
    jrandom authored and zzz's avatar zzz committed
        * Deployed the peer testing implementation to be run every few minutes on
          each router, as well as any time the user requests a test manually.  The
          tests do not reconfigure the ports at the moment, merely determine under
          what conditions the local router is reachable.  The status shown in the
          top left will be "ERR-SymmetricNAT" if the user's IP and port show up
          differently for different peers, "ERR-Reject" if the router cannot
          receive unsolicited packets or the peer helping test could not find a
          collaborator, "Unknown" if the test has not been run or the test
          participants were unreachable, or "OK" if the router can receive
          unsolicited connections and those connections use the same IP and port.
summary.jsp 4.87 KiB
<%@page import="net.i2p.router.web.SummaryHelper" %>
<jsp:useBean class="net.i2p.router.web.SummaryHelper" id="helper" scope="request" />
<jsp:setProperty name="helper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />

<jsp:useBean class="net.i2p.router.web.ReseedHandler" id="reseed" scope="request" />
<jsp:setProperty name="reseed" property="*" />
<jsp:useBean class="net.i2p.router.web.UpdateHandler" id="update" scope="request" />
<jsp:setProperty name="update" property="*" />
<jsp:setProperty name="update" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />

<div class="routersummary">
 <u><b>General</b></u><br />
 <b>Ident:</b> <jsp:getProperty name="helper" property="ident" /><br />
 <b>Version:</b> <jsp:getProperty name="helper" property="version" /><br />
 <b>Uptime:</b> <jsp:getProperty name="helper" property="uptime" /><br />
 <b>Now:</b> <jsp:getProperty name="helper" property="time" /><br />
 <b>Memory:</b> <jsp:getProperty name="helper" property="memory" /><br />
 <b>Status:</b> <a href="config.jsp"><jsp:getProperty name="helper" property="reachability" /></a><br /><%
    if (helper.updateAvailable()) {
        if ("true".equals(System.getProperty("net.i2p.router.web.UpdateHandler.updateInProgress", "false"))) {
            out.print(update.getStatus());
        } else {
            long nonce = new java.util.Random().nextLong();
            String prev = System.getProperty("net.i2p.router.web.UpdateHandler.nonce");
            if (prev != null) System.setProperty("net.i2p.router.web.UpdateHandler.noncePrev", prev);
            System.setProperty("net.i2p.router.web.UpdateHandler.nonce", nonce+"");
            String uri = request.getRequestURI();
            if (uri.indexOf('?') > 0)
                uri = uri + "&updateNonce=" + nonce;
            else
                uri = uri + "?updateNonce=" + nonce;
            out.print(" <a href=\"" + uri + "\">Update available</a>");
        }
    }
 %><hr />
 
 <u><b><a href="peers.jsp">Peers</a></b></u><br />
 <b>Active:</b> <jsp:getProperty name="helper" property="activePeers" />/<jsp:getProperty name="helper" property="activeProfiles" /><br />
 <b>Fast:</b> <jsp:getProperty name="helper" property="fastPeers" /><br />
 <b>High capacity:</b> <jsp:getProperty name="helper" property="highCapacityPeers" /><br />
 <b>Well integrated:</b> <jsp:getProperty name="helper" property="wellIntegratedPeers" /><br />
 <b>Failing:</b> <jsp:getProperty name="helper" property="failingPeers" /><br />
 <b>Shitlisted:</b> <jsp:getProperty name="helper" property="shitlistedPeers" /><br />
 <b>Known:</b> <jsp:getProperty name="helper" property="allPeers" /><br /><%
     if (helper.getActivePeers() <= 0) {
        %><b><a href="config.jsp">check your NAT/firewall</a></b><br /><%
     }
    if (helper.allowReseed()) {
        if ("true".equals(System.getProperty("net.i2p.router.web.ReseedHandler.reseedInProgress", "false"))) {
            out.print(" <i>reseeding</i>");
        } else {
            long nonce = new java.util.Random().nextLong();
            String prev = System.getProperty("net.i2p.router.web.ReseedHandler.nonce");
            if (prev != null) System.setProperty("net.i2p.router.web.ReseedHandler.noncePrev", prev);
            System.setProperty("net.i2p.router.web.ReseedHandler.nonce", nonce+"");
            String uri = request.getRequestURI();
            if (uri.indexOf('?') > 0)
                uri = uri + "&reseedNonce=" + nonce;
            else
                uri = uri + "?reseedNonce=" + nonce;
            out.print(" <a href=\"" + uri + "\">reseed</a>");
        }
    }
 %><hr />
 
 <u><b>Bandwidth in/out</b></u><br />
 <b>1m:</b> <jsp:getProperty name="helper" property="inboundMinuteKBps" />/<jsp:getProperty name="helper" property="outboundMinuteKBps" />KBps<br />
 <b>5m:</b> <jsp:getProperty name="helper" property="inboundFiveMinuteKBps" />/<jsp:getProperty name="helper" property="outboundFiveMinuteKBps" />KBps<br />
 <b>Total:</b> <jsp:getProperty name="helper" property="inboundLifetimeKBps" />/<jsp:getProperty name="helper" property="outboundLifetimeKBps" />KBps<br />
 <b>Used:</b> <jsp:getProperty name="helper" property="inboundTransferred" />/<jsp:getProperty name="helper" property="outboundTransferred" /><br />
 <hr />
 
 <jsp:getProperty name="helper" property="destinations" />
 
 <u><b>Tunnels</b></u><br />
 <b>Inbound:</b> <jsp:getProperty name="helper" property="inboundTunnels" /><br />
 <b>Outbound:</b> <jsp:getProperty name="helper" property="outboundTunnels" /><br />
 <b>Participating:</b> <jsp:getProperty name="helper" property="participatingTunnels" /><br />
 <hr />
 
 <u><b>Congestion</b></u><br />
 <b>Job lag:</b> <jsp:getProperty name="helper" property="jobLag" /><br />
 <b>Message delay:</b> <jsp:getProperty name="helper" property="messageDelay" /><br />
 <b>Tunnel lag:</b> <jsp:getProperty name="helper" property="tunnelLag" /><br />
 <hr />
 
</div>