source: apps/routerconsole/jsp/config.jsp @ 52d38e0

Last change on this file since 52d38e0 was 52d38e0, checked in by zzz <zzz@…>, 12 years ago
  • config.jsp: Add some reachability help
  • configpeer.jsp: Add blocklist info
  • help.jsp: Add link to German FAQ
  • tunnels.jsp: Fix inactive participating count
  • Property mode set to 100644
File size: 10.3 KB
Line 
1<%@page contentType="text/html" %>
2<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
3
4<html><head>
5<title>I2P Router Console - config networking</title>
6<link rel="stylesheet" href="default.css" type="text/css" />
7</head><body>
8
9<%@include file="nav.jsp" %>
10<%@include file="summary.jsp" %>
11
12<jsp:useBean class="net.i2p.router.web.ConfigNetHelper" id="nethelper" scope="request" />
13<jsp:setProperty name="nethelper" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
14
15<div class="main" id="main">
16 <%@include file="confignav.jsp" %>
17 
18 <jsp:useBean class="net.i2p.router.web.ConfigNetHandler" id="formhandler" scope="request" />
19 <jsp:setProperty name="formhandler" property="*" />
20 <jsp:setProperty name="formhandler" property="contextId" value="<%=(String)session.getAttribute("i2p.contextId")%>" />
21 <font color="red"><jsp:getProperty name="formhandler" property="errors" /></font>
22 <i><jsp:getProperty name="formhandler" property="notices" /></i>
23
24 <form action="config.jsp" method="POST">
25 <% String prev = System.getProperty("net.i2p.router.web.ConfigNetHandler.nonce");
26    if (prev != null) System.setProperty("net.i2p.router.web.ConfigNetHandler.noncePrev", prev);
27    System.setProperty("net.i2p.router.web.ConfigNetHandler.nonce", new java.util.Random().nextLong()+""); %>
28 <input type="hidden" name="nonce" value="<%=System.getProperty("net.i2p.router.web.ConfigNetHandler.nonce")%>" />
29 <input type="hidden" name="action" value="blah" />
30
31 <b>Bandwidth limiter</b><br />
32 Inbound rate:
33    <input name="inboundrate" type="text" size="2" value="<jsp:getProperty name="nethelper" property="inboundRate" />" /> KBps
34 bursting up to
35    <input name="inboundburstrate" type="text" size="2" value="<jsp:getProperty name="nethelper" property="inboundBurstRate" />" /> KBps for
36    <jsp:getProperty name="nethelper" property="inboundBurstFactorBox" /><br />
37 Outbound rate:
38    <input name="outboundrate" type="text" size="2" value="<jsp:getProperty name="nethelper" property="outboundRate" />" /> KBps
39 bursting up to
40    <input name="outboundburstrate" type="text" size="2" value="<jsp:getProperty name="nethelper" property="outboundBurstRate" />" /> KBps for
41  <jsp:getProperty name="nethelper" property="outboundBurstFactorBox" /><br />
42 <i>KBps = kilobytes per second = 1024 bytes per second = 8192 bits per second.<br />
43    A negative inbound rate means a default limit of 32KBytes per second.
44    A negative outbound rate means a default limit of 16KBytes per second.</i><br />
45 Bandwidth share percentage:
46   <jsp:getProperty name="nethelper" property="sharePercentageBox" /><br />
47 <% int share = nethelper.getShareBandwidth();
48    if (share < 12) {
49        out.print("<b>NOTE</b>: You have configured I2P to share only " + share + "KBps. ");
50        out.print("I2P requires at least 12KBps to enable sharing. ");
51        out.print("Please enable sharing (participating in tunnels) by configuring more bandwidth. ");
52        out.print("It improves your anonymity by creating cover traffic, and helps the network.<br />");
53    } else {
54        out.print("You have configured I2P to share " + share + "KBps. ");
55        out.print("The higher the share bandwidth the more you improve your anonymity and help the network.<br />");
56    }
57 %>
58 <p>
59 <input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" /><br />
60 <hr />
61<!--
62 <b>Enable load testing: </b>
63<input type="checkbox" name="enableloadtesting" value="true" <jsp:getProperty name="nethelper" property="enableLoadTesting" /> />
64 <p>If enabled, your router will periodically anonymously probe some of your peers
65 to see what sort of throughput they can handle.  This improves your router's ability
66 to pick faster peers, but can cost substantial bandwidth.  Relevant data from the
67 load testing is fed into the profiles as well as the
68 <a href="oldstats.jsp#test.rtt">test.rtt</a> and related stats.</p>
69 <hr />
70-->
71 <b>External UDP address:</b> <i><jsp:getProperty name="nethelper" property="udpAddress" /></i><br />
72 <b>Require SSU introductions? </b>
73<input type="checkbox" name="requireIntroductions" value="true" <jsp:getProperty name="nethelper" property="requireIntroductionsChecked" /> /><br />
74 <p>If you can, please poke a hole in your NAT or firewall to allow unsolicited UDP packets to reach
75    you on your external UDP address.  If you can't, I2P now includes supports UDP hole punching
76    with "SSU introductions" - peers who will relay a request from someone you don't know to your
77    router for your router so that you can make an outbound connection to them.  I2P will use these
78    introductions automatically if it detects that the port is not forwarded (as shown by
79    the <i>Status: OK (NAT)</i> line), or you can manually require them here. 
80    Users behind symmetric NATs, such as OpenBSD's pf, are not currently supported.</p>
81<input type="submit" name="recheckReachability" value="Check network reachability..." />
82 <hr />
83 <b>Inbound TCP connection configuration:</b><br />
84 Externally reachable hostname or IP address:
85    <input name ="ntcphost" type="text" size="16" value="<jsp:getProperty name="nethelper" property="ntcphostname" />" />
86    (dyndns and the like are fine)<br />
87    OR use IP address detected by SSU
88    (currently <jsp:getProperty name="nethelper" property="udpIP" />)?
89    <input type="checkbox" name="ntcpAutoIP" value="true" <jsp:getProperty name="nethelper" property="tcpAutoIPChecked" /> /><br />
90 <p>
91 Externally reachable TCP port:
92    <input name ="ntcpport" type="text" size="6" value="<jsp:getProperty name="nethelper" property="ntcpport" />" /><br />
93    OR use the same port configured for SSU
94    (currently <jsp:getProperty name="nethelper" property="udpPort" />)?
95    <input type="checkbox" name="ntcpAutoPort" value="true" <jsp:getProperty name="nethelper" property="tcpAutoPortChecked" /> /><br />
96 <p>A hostname entered here will be published in the network database.
97    It is <b>not private</b>.
98    Also, <b>do not enter a private IP address</b> like 127.0.0.1 or 192.168.1.1.
99 </p>
100 <p>You do <i>not</i> need to allow inbound TCP connections - outbound connections work with no
101    configuration.  However, if you want to receive inbound TCP connections, you <b>must</b> poke a hole
102    in your NAT or firewall for unsolicited TCP connections.  If you specify the wrong IP address or
103    hostname, or do not properly configure your NAT or firewall, your network performance will degrade
104    substantially.  When in doubt, leave the hostname and port number blank.</p>
105 <p><b>Note: changing any of these settings will terminate all of your connections and effectively
106    restart your router.</b>
107 <hr />
108 <b>Reachability Help: </b>
109 <p>
110 While I2P will work adequately behind a firewall, your speeds and network integration will generally improve
111 if you open up your port (generally 8887) to both UDP and TCP, and enable inbound TCP above.
112 If you think you have opened up your firewall and I2P still thinks you are firewalled, remember
113 that you may have multiple firewalls, for example both software packages and external hardware routers.
114 <ul>
115 <li><b>OK</b> - Your UDP port does not appear to be firewalled.
116 <li><b>Firewalled</b> - Your UDP port appears to be firewalled.
117     As the firewall detection methods are not 100% reliable, this may occasionally be displayed in error.
118     However, if it appears consistently, you should check whether both your external and internal
119     firewalls are open on port 8887.
120 <li><b>Testing</b> - The router is currently testing whether your UDP port is firewalled.
121 <li><b>WARN - Firewalled and Fast</b> - You have configured I2P to share more than 128KBps of bandwidth,
122     but you are firewalled. While I2P will work fine in this configuration, if you really have
123     over 128KBps of bandwidth to share, it will be much more helpful to the network if
124     you open your firewall.
125 <li><b>WARN - Firewalled and Floodfill</b> - You have configured I2P to be a floodfill router, but
126     you are firewalled. For best participation as a floodfill router, you should open your firewall.
127 <li><b>WARN - Firewalled with Inbound TCP Enabled</b> - You have configured inbound TCP, however
128     your UDP port is firewalled, and therefore it is likely that your TCP port is firewalled as well.
129     If your TCP port is firewalled with inbound TCP enabled, routers will not be able to contact
130     you via TCP, which will hurt the network. Please open your firewall or disable inbound TCP above.
131 <li><b>ERR - Private TCP Address</b> - You must never advertise an unroutable IP address such as
132     127.0.0.1 or 192.168.1.1 as your external address. Correct the address or disable inbound TCP above.
133 <li><b>ERR - SymmetricNAT</b> - I2P detected that you are firewalled by a Symmetric NAT.
134     I2P does not work behind this type of firewall.
135 <li><b>ERR - UDP Port In Use - Set i2np.udp.internalPort=xxxx in advanced config and restart</b> -
136     I2P was unable to bind to port 8887 or other configured port.
137     Check to see if another program is using port 8887. If so, stop that program or configure
138     I2P to use a different port. This may be a transient error, if the other program is no longer
139     using the port. However, a restart is always required after this error.
140 </ul>
141 </p>
142 <hr />
143<!--
144 <b>Dynamic Router Keys: </b>
145 <input type="checkbox" name="dynamicKeys" value="true" <jsp:getProperty name="nethelper" property="dynamicKeysChecked" /> /><br />
146 <p>
147 This setting causes your router identity to be regenerated every time your IP address
148 changes. If you have a dynamic IP this option can speed up your reintegration into
149 the network (since people will have shitlisted your old router identity), and, for
150 very weak adversaries, help frustrate trivial
151 <a href="http://www.i2p.net/how_threatmodel#intersection">intersection
152 attacks</a> against the NetDB.  Your different router identities would only be
153 'hidden' among other I2P users at your ISP, and further analysis would link
154 the router identities further.</p>
155 <p>Note that when I2P detects an IP address change, it will automatically
156 initiate a restart in order to rekey and to disconnect from peers before they
157 update their profiles - any long lasting client connections will be disconnected,
158 though such would likely already be the case anyway, since the IP address changed.
159 </p>
160 <hr />
161-->
162 <input type="submit" name="save" value="Save changes" /> <input type="reset" value="Cancel" /><br />
163 </form>
164</div>
165
166</body>
167</html>
Note: See TracBrowser for help on using the repository browser.