source: apps/routerconsole/jsp/configreseed.jsp @ 3ba46f16

Last change on this file since 3ba46f16 was 3ba46f16, checked in by zzz <zzz@…>, 3 years ago

/configreseed help tweaks

  • Property mode set to 100644
File size: 9.3 KB
Line 
1<%@page contentType="text/html"%>
2<%@page pageEncoding="UTF-8"%>
3<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
5<html><head>
6<%@include file="css.jsi" %>
7<%=intl.title("config reseeding")%>
8<script src="/js/ajax.js" type="text/javascript"></script>
9<%@include file="summaryajax.jsi" %>
10</head><body onload="initAjax()">
11
12<%@include file="summary.jsi" %>
13
14<jsp:useBean class="net.i2p.router.web.ConfigReseedHelper" id="reseedHelper" scope="request" />
15<jsp:setProperty name="reseedHelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
16<h1><%=intl._t("I2P Reseeding Configuration")%></h1>
17<div class="main" id="config_reseed">
18<%@include file="confignav.jsi" %>
19
20<jsp:useBean class="net.i2p.router.web.ConfigReseedHandler" id="formhandler" scope="request" />
21<%@include file="formhandler.jsi" %>
22
23<p class="infohelp">
24<%=intl._t("Reseeding is the bootstrapping process used to find other routers when you first install I2P, or when your router has too few router references remaining.")%>
25<ol><li>
26<%=intl._t("If reseeding has failed, you should first check your network connection.")%>
27</li><li>
28<%=intl._t("If a firewall is blocking your connections to reseed hosts, you may have access to a proxy.")%>
29<ul><li>
30<%=intl._t("The proxy may be a remote public proxy, or may be running on your computer (localhost).")%>
31</li><li>
32<%=intl._t("To use a proxy, configure the type, hostname, and port below.")%>
33</li><li>
34<%=intl._t("If you are running Tor Browser, reseed through it by configuring SOCKS 5, localhost, port 9150.")%>
35</li><li>
36<%=intl._t("If you are running command-line Tor, reseed through it by configuring SOCKS 5, localhost, port 9050.")%>
37</li><li>
38<%=intl._t("Then, click \"{0}\".", intl._t("Save changes and reseed now"))%>
39</li><li>
40<%=intl._t("The default settings will work for most people.")%>
41<%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%>
42</li></ul>
43</li><li>
44<%=intl._t("If you know and trust somebody that runs I2P, ask them to send you a reseed file generated using this page on their router console.")%>
45<%=intl._t("Then, use this page to reseed using file you received.")%>
46<%=intl._t("First, select the file below.")%>
47<%=intl._t("Then, click \"{0}\".", intl._t("Reseed from file"))%>
48</li><li>
49<%=intl._t("If you know and trust somebody that publishes reseed files, ask them for the URL.")%>
50<%=intl._t("Then, use this page to reseed using the URL you received.")%>
51<%=intl._t("First, enter the URL below.")%>
52<%=intl._t("Then, click \"{0}\".", intl._t("Reseed from URL"))%>
53</li><li>
54<%=intl._t("See {0} for instructions on reseeding manually.", "<a href=\"https://geti2p.net/faq#manual_reseed\">" + intl._t("the FAQ") + "</a>")%>
55</li></ol>
56</p>
57<h3 class="tabletitle"><%=intl._t("Manual Reseed")%></h3>
58<table id="manualreseed" class="configtable">
59 <tr>
60  <td class="infohelp" colspan="2">
61<%=intl._t("The su3 format is preferred, as it will be verified as signed by a trusted source.")%>&nbsp;
62<%=intl._t("The zip format is unsigned; use a zip file only from a source that you trust.")%>
63  </td>
64 <tr>
65  <th colspan="2"><%=intl._t("Reseed from URL")%></th>
66 </tr>
67 <tr>
68<form action="" method="POST">
69<input type="hidden" name="nonce" value="<%=pageNonce%>" >
70  <td>
71<b><%=intl._t("Enter zip or su3 URL")%>:</b>
72<input name="url" type="text" size="60" value="" />
73  </td>
74  <td class="optionsave">
75<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from URL")%>" />
76  </td>
77</form>
78 </tr>
79 <tr>
80  <th colspan="2"><%=intl._t("Reseed from File")%></th>
81 </tr>
82 <tr>
83<form action="" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
84<input type="hidden" name="nonce" value="<%=pageNonce%>" >
85  <td>
86<b><%=intl._t("Select zip or su3 file")%>:</b>
87<input name="file" type="file" accept=".zip,.su3" value="" />
88  </td>
89  <td class="optionsave">
90<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from file")%>" />
91  </td>
92</form>
93 </tr>
94 <tr>
95  <th colspan="2">
96<%=intl._t("Create Reseed File")%>
97  </th>
98 </tr>
99 <tr>
100  <td class="infohelp" colspan="2">
101<%=intl._t("Create a new reseed zip file you may share for others to reseed manually.")%>&nbsp;
102<%=intl._t("This file will never contain your own router's identity or IP.")%>
103  </td>
104 </tr>
105 <tr>
106  <td class="optionsave" colspan="2">
107<form action="/createreseed" method="GET">
108<input type="submit" name="action" class="go" value="<%=intl._t("Create reseed file")%>" />
109</form>
110  </td>
111 </tr>
112</table>
113
114<form action="" method="POST">
115<input type="hidden" name="nonce" value="<%=pageNonce%>" >
116<h3 class="tabletitle"><%=intl._t("Reseeding Configuration")%></h3>
117<table id="reseedconfig" class="configtable" border="0" cellspacing="5">
118 <tr>
119  <td class="infohelp" colspan="2">
120<b><%=intl._t("The default settings will work for most people.")%></b>&nbsp;
121<%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%>
122  </td>
123 </tr>
124
125<% if (reseedHelper.shouldShowSelect()) { %>
126<tr><td align="right"><b><%=intl._t("Reseed URL Selection")%>:</b></td>
127<td><label><input type="radio" class="optbox" name="mode" value="0" <%=reseedHelper.modeChecked(0) %> >
128<%=intl._t("Try SSL first then non-SSL")%></label><br>
129<label><input type="radio" class="optbox" name="mode" value="1" <%=reseedHelper.modeChecked(1) %> >
130<%=intl._t("Use SSL only")%></label><br>
131<label><input type="radio" class="optbox" name="mode" value="2" <%=reseedHelper.modeChecked(2) %> >
132<%=intl._t("Use non-SSL only")%></label></td></tr>
133<% } // shouldShowSelect %>
134
135<tr><td align="right"><b><%=intl._t("Reseed URLs")%>:</b></td>
136<td><textarea wrap="off" name="reseedURL" cols="60" rows="7" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea>
137<div class="formaction" id="resetreseed"><input type="submit" name="action" class="reload" value="<%=intl._t("Reset URL list")%>" /></div>
138</td></tr>
139
140<% if (reseedHelper.shouldShowHTTPSProxy()) { %>
141<tr><td align="right"><b><%=intl._t("Reseed Proxy Type")%>:</b></td>
142<td><label><input type="radio" class="optbox" name="pmode" value="" <%=reseedHelper.pmodeChecked(0) %> >
143<%=intl._t("None")%></label><br>
144<label><input type="radio" class="optbox" name="pmode" value="HTTP" <%=reseedHelper.pmodeChecked(1) %> >
145<%=intl._t("HTTPS")%></label><br>
146<label><input type="radio" class="optbox" name="pmode" value="SOCKS4" <%=reseedHelper.pmodeChecked(2) %> >
147<%=intl._t("SOCKS 4/4a")%></label><br>
148<label><input type="radio" class="optbox" name="pmode" value="SOCKS5" <%=reseedHelper.pmodeChecked(3) %> >
149<%=intl._t("SOCKS 5")%></label></td></tr>
150<tr><td align="right"><b><%=intl._t("HTTPS Proxy Host")%>:</b></td>
151<td><input name="shost" type="text" value="<jsp:getProperty name="reseedHelper" property="shost" />" ></td></tr>
152<tr><td align="right"><b><%=intl._t("HTTPS Proxy Port")%>:</b></td>
153<td><input name="sport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="reseedHelper" property="sport" />" ></td></tr>
154
155<!-- not fully implemented, not necessary?
156<tr><td align="right"><b><%=intl._t("Use HTTPS Proxy Authorization?")%></b></td>
157<td><input type="checkbox" class="optbox" name="sauth" value="true" <jsp:getProperty name="reseedHelper" property="sauth" /> ></td></tr>
158<tr><td align="right"><b><%=intl._t("HTTPS Proxy Username")%>:</b></td>
159<td><input name="susername" type="text" value="<jsp:getProperty name="reseedHelper" property="susername" />" ></td></tr>
160<tr><td align="right"><b><%=intl._t("HTTPS Proxy Password")%>:</b></td>
161<td><input name="nofilter_spassword" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_spassword" />" ></td></tr>
162-->
163<% } // shouldShowHTTPSProxy %>
164
165<% if (reseedHelper.shouldShowHTTPProxy()) { %>
166<tr><td align="right"><label for="enableproxy"><b><%=intl._t("Enable HTTP Proxy?")%></b></label></td>
167<td><input type="checkbox" class="optbox" name="enable" id="enableproxy" value="true" <jsp:getProperty name="reseedHelper" property="enable" /> ></td></tr>
168<tr><td align="right"><b><%=intl._t("HTTP Proxy Host")%>:</b></td>
169<td><input name="host" type="text" value="<jsp:getProperty name="reseedHelper" property="host" />" ></td></tr>
170<tr><td align="right"><b><%=intl._t("HTTP Proxy Port")%>:</b></td>
171<td><input name="port" type="text" size="5" maxlength="5" value="<jsp:getProperty name="reseedHelper" property="port" />" ></td></tr>
172
173<tr><td align="right"><label for="useproxyauth"><b><%=intl._t("Use HTTP Proxy Authorization?")%></b></label></td>
174<td><input type="checkbox" class="optbox" name="auth" id="useproxyauth" value="true" <jsp:getProperty name="reseedHelper" property="auth" /> ></td></tr>
175<tr><td align="right"><b><%=intl._t("HTTP Proxy Username")%>:</b></td>
176<td><input name="username" type="text" value="<jsp:getProperty name="reseedHelper" property="username" />" ></td></tr>
177<tr><td align="right"><b><%=intl._t("HTTP Proxy Password")%>:</b></td>
178<td><input name="nofilter_password" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_password" />" ></td></tr>
179<% } // shouldShowHTTPProxy %>
180
181 <tr>
182  <td class="optionsave" colspan="2">
183<input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" />
184<input type="submit" name="action" class="download" value="<%=intl._t("Save changes and reseed now")%>" />
185<input type="submit" name="action" class="accept" value="<%=intl._t("Save changes")%>" />
186  </td>
187 </tr>
188</table>
189</form></div></body></html>
Note: See TracBrowser for help on using the repository browser.