source: apps/routerconsole/jsp/configreseed.jsp @ 8c7898de

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

Reseed: Add support for reseeding via outproxy or Orchid (ticket #1841)
InternalSocket?: Add support for some methods needed for reseed to work

  • Property mode set to 100644
File size: 9.8 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("If you have some peers but need more, you may try the I2P Outproxy option. Leave the host and port blank.")%>
39<%=intl._t("This will not work for an initial reseed when you have no peers at all.")%>
40</li><li>
41<%=intl._t("Then, click \"{0}\".", intl._t("Save changes and reseed now"))%>
42</li><li>
43<%=intl._t("The default settings will work for most people.")%>
44<%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%>
45</li></ul>
46</li><li>
47<%=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.")%>
48<%=intl._t("Then, use this page to reseed using file you received.")%>
49<%=intl._t("First, select the file below.")%>
50<%=intl._t("Then, click \"{0}\".", intl._t("Reseed from file"))%>
51</li><li>
52<%=intl._t("If you know and trust somebody that publishes reseed files, ask them for the URL.")%>
53<%=intl._t("Then, use this page to reseed using the URL you received.")%>
54<%=intl._t("First, enter the URL below.")%>
55<%=intl._t("Then, click \"{0}\".", intl._t("Reseed from URL"))%>
56</li><li>
57<%=intl._t("See {0} for instructions on reseeding manually.", "<a href=\"https://geti2p.net/faq#manual_reseed\">" + intl._t("the FAQ") + "</a>")%>
58</li></ol>
59</p>
60<h3 class="tabletitle"><%=intl._t("Manual Reseed")%></h3>
61<table id="manualreseed" class="configtable">
62 <tr>
63  <td class="infohelp" colspan="2">
64<%=intl._t("The su3 format is preferred, as it will be verified as signed by a trusted source.")%>&nbsp;
65<%=intl._t("The zip format is unsigned; use a zip file only from a source that you trust.")%>
66  </td>
67 <tr>
68  <th colspan="2"><%=intl._t("Reseed from URL")%></th>
69 </tr>
70 <tr>
71<form action="" method="POST">
72<input type="hidden" name="nonce" value="<%=pageNonce%>" >
73  <td>
74<b><%=intl._t("Enter zip or su3 URL")%>:</b>
75<input name="url" type="text" size="60" value="" />
76  </td>
77  <td class="optionsave">
78<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from URL")%>" />
79  </td>
80</form>
81 </tr>
82 <tr>
83  <th colspan="2"><%=intl._t("Reseed from File")%></th>
84 </tr>
85 <tr>
86<form action="" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
87<input type="hidden" name="nonce" value="<%=pageNonce%>" >
88  <td>
89<b><%=intl._t("Select zip or su3 file")%>:</b>
90<input name="file" type="file" accept=".zip,.su3" value="" />
91  </td>
92  <td class="optionsave">
93<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from file")%>" />
94  </td>
95</form>
96 </tr>
97 <tr>
98  <th colspan="2">
99<%=intl._t("Create Reseed File")%>
100  </th>
101 </tr>
102 <tr>
103  <td class="infohelp" colspan="2">
104<%=intl._t("Create a new reseed zip file you may share for others to reseed manually.")%>&nbsp;
105<%=intl._t("This file will never contain your own router's identity or IP.")%>
106  </td>
107 </tr>
108 <tr>
109  <td class="optionsave" colspan="2">
110<form action="/createreseed" method="GET">
111<input type="submit" name="action" class="go" value="<%=intl._t("Create reseed file")%>" />
112</form>
113  </td>
114 </tr>
115</table>
116
117<form action="" method="POST">
118<input type="hidden" name="nonce" value="<%=pageNonce%>" >
119<h3 class="tabletitle"><%=intl._t("Reseeding Configuration")%></h3>
120<table id="reseedconfig" class="configtable" border="0" cellspacing="5">
121 <tr>
122  <td class="infohelp" colspan="2">
123<b><%=intl._t("The default settings will work for most people.")%></b>&nbsp;
124<%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%>
125  </td>
126 </tr>
127
128<% if (reseedHelper.shouldShowSelect()) { %>
129<tr><td align="right"><b><%=intl._t("Reseed URL Selection")%>:</b></td>
130<td><label><input type="radio" class="optbox" name="mode" value="0" <%=reseedHelper.modeChecked(0) %> >
131<%=intl._t("Try SSL first then non-SSL")%></label><br>
132<label><input type="radio" class="optbox" name="mode" value="1" <%=reseedHelper.modeChecked(1) %> >
133<%=intl._t("Use SSL only")%></label><br>
134<label><input type="radio" class="optbox" name="mode" value="2" <%=reseedHelper.modeChecked(2) %> >
135<%=intl._t("Use non-SSL only")%></label></td></tr>
136<% } // shouldShowSelect %>
137
138<tr><td align="right"><b><%=intl._t("Reseed URLs")%>:</b></td>
139<td><textarea wrap="off" name="reseedURL" cols="60" rows="7" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea>
140<div class="formaction" id="resetreseed"><input type="submit" name="action" class="reload" value="<%=intl._t("Reset URL list")%>" /></div>
141</td></tr>
142
143<% if (reseedHelper.shouldShowHTTPSProxy()) { %>
144<tr><td align="right"><b><%=intl._t("Proxy type for https reseed URLs")%>:</b></td>
145<td><label><input type="radio" class="optbox" name="pmode" value="" <%=reseedHelper.pmodeChecked(0) %> >
146<%=intl._t("None")%></label><br>
147<label><input type="radio" class="optbox" name="pmode" value="HTTP" <%=reseedHelper.pmodeChecked(1) %> >
148<%=intl._t("HTTPS")%></label><br>
149<label><input type="radio" class="optbox" name="pmode" value="SOCKS4" <%=reseedHelper.pmodeChecked(2) %> >
150<%=intl._t("SOCKS 4/4a")%></label><br>
151<label><input type="radio" class="optbox" name="pmode" value="SOCKS5" <%=reseedHelper.pmodeChecked(3) %> >
152<%=intl._t("SOCKS 5")%></label><br>
153<label><input type="radio" class="optbox" name="pmode" value="INTERNAL" <%=reseedHelper.pmodeChecked(4) %> >
154<%=intl._t("I2P Outproxy")%></label>
155(<%=intl._t("Not for initial reseed. Leave host and port blank.")%>)
156</td></tr>
157<tr><td align="right"><b><%=intl._t("HTTPS Proxy Host")%>:</b></td>
158<td><input name="shost" type="text" value="<jsp:getProperty name="reseedHelper" property="shost" />" ></td></tr>
159<tr><td align="right"><b><%=intl._t("HTTPS Proxy Port")%>:</b></td>
160<td><input name="sport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="reseedHelper" property="sport" />" ></td></tr>
161
162<!-- not fully implemented, not necessary?
163<tr><td align="right"><b><%=intl._t("Use HTTPS Proxy Authorization?")%></b></td>
164<td><input type="checkbox" class="optbox" name="sauth" value="true" <jsp:getProperty name="reseedHelper" property="sauth" /> ></td></tr>
165<tr><td align="right"><b><%=intl._t("HTTPS Proxy Username")%>:</b></td>
166<td><input name="susername" type="text" value="<jsp:getProperty name="reseedHelper" property="susername" />" ></td></tr>
167<tr><td align="right"><b><%=intl._t("HTTPS Proxy Password")%>:</b></td>
168<td><input name="nofilter_spassword" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_spassword" />" ></td></tr>
169-->
170<% } // shouldShowHTTPSProxy %>
171
172<% if (reseedHelper.shouldShowHTTPProxy()) { %>
173<tr><td align="right"><label for="enableproxy"><b><%=intl._t("Enable proxy for http reseed URLs?")%></b></label></td>
174<td><input type="checkbox" class="optbox" name="enable" id="enableproxy" value="true" <jsp:getProperty name="reseedHelper" property="enable" /> ></td></tr>
175<tr><td align="right"><b><%=intl._t("HTTP Proxy Host")%>:</b></td>
176<td><input name="host" type="text" value="<jsp:getProperty name="reseedHelper" property="host" />" ></td></tr>
177<tr><td align="right"><b><%=intl._t("HTTP Proxy Port")%>:</b></td>
178<td><input name="port" type="text" size="5" maxlength="5" value="<jsp:getProperty name="reseedHelper" property="port" />" ></td></tr>
179
180<tr><td align="right"><label for="useproxyauth"><b><%=intl._t("Use HTTP Proxy Authorization?")%></b></label></td>
181<td><input type="checkbox" class="optbox" name="auth" id="useproxyauth" value="true" <jsp:getProperty name="reseedHelper" property="auth" /> ></td></tr>
182<tr><td align="right"><b><%=intl._t("HTTP Proxy Username")%>:</b></td>
183<td><input name="username" type="text" value="<jsp:getProperty name="reseedHelper" property="username" />" ></td></tr>
184<tr><td align="right"><b><%=intl._t("HTTP Proxy Password")%>:</b></td>
185<td><input name="nofilter_password" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_password" />" ></td></tr>
186<% } // shouldShowHTTPProxy %>
187
188 <tr>
189  <td class="optionsave" colspan="2">
190<input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" />
191<input type="submit" name="action" class="download" value="<%=intl._t("Save changes and reseed now")%>" />
192<input type="submit" name="action" class="accept" value="<%=intl._t("Save changes")%>" />
193  </td>
194 </tr>
195</table>
196</form></div></body></html>
Note: See TracBrowser for help on using the repository browser.