2010-12-29 12:56:48 +00:00
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head>
<%@include file="css.jsi" %>
<%=intl.title("config reseeding")%>
2012-07-17 00:47:08 +00:00
<%@include file="summaryajax.jsi" %>
2019-12-25 12:18:00 +00:00
</head><body>
2010-12-29 12:56:48 +00:00
<%@include file="summary.jsi" %>
2017-12-01 14:07:29 +00:00
<jsp:useBean class="net.i2p.router.web.helpers.ConfigReseedHelper" id="reseedHelper" scope="request" />
2018-07-28 19:03:01 +00:00
<jsp:setProperty name="reseedHelper" property="contextId" value="<%=i2pcontextId%>" />
2015-09-25 19:55:36 +00:00
<h1><%=intl._t("I2P Reseeding Configuration")%></h1>
2016-05-23 05:41:24 +00:00
<div class="main" id="config_reseed">
2010-12-29 12:56:48 +00:00
<%@include file="confignav.jsi" %>
2017-12-01 14:07:29 +00:00
<jsp:useBean class="net.i2p.router.web.helpers.ConfigReseedHandler" id="formhandler" scope="request" />
2012-10-20 20:52:45 +00:00
<%@include file="formhandler.jsi" %>
2015-03-19 23:17:18 +00:00
2016-04-18 12:11:05 +00:00
<p class="infohelp">
<%=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.")%>
2020-05-13 11:40:01 +00:00
</p>
2017-11-18 18:47:50 +00:00
<ol><li>
2015-09-25 19:55:36 +00:00
<%=intl._t("If reseeding has failed, you should first check your network connection.")%>
2017-11-18 18:47:50 +00:00
</li><li>
<%=intl._t("If a firewall is blocking your connections to reseed hosts, you may have access to a proxy.")%>
<ul><li>
<%=intl._t("The proxy may be a remote public proxy, or may be running on your computer (localhost).")%>
</li><li>
2017-11-19 00:41:42 +00:00
<%=intl._t("To use a proxy, configure the type, hostname, and port below.")%>
2017-11-18 18:47:50 +00:00
</li><li>
2017-11-19 00:41:42 +00:00
<%=intl._t("If you are running Tor Browser, reseed through it by configuring SOCKS 5, localhost, port 9150.")%>
2017-11-18 18:47:50 +00:00
</li><li>
2017-11-19 00:41:42 +00:00
<%=intl._t("If you are running command-line Tor, reseed through it by configuring SOCKS 5, localhost, port 9050.")%>
2017-11-18 18:47:50 +00:00
</li><li>
2017-11-21 01:29:31 +00:00
<%=intl._t("If you have some peers but need more, you may try the I2P Outproxy option. Leave the host and port blank.")%>
<%=intl._t("This will not work for an initial reseed when you have no peers at all.")%>
</li><li>
2017-11-19 00:41:42 +00:00
<%=intl._t("Then, click \"{0}\".", intl._t("Save changes and reseed now"))%>
2017-11-18 18:47:50 +00:00
</li><li>
<%=intl._t("The default settings will work for most people.")%>
<%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%>
</li></ul>
</li><li>
<%=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.")%>
2018-01-18 09:06:34 +00:00
<%=intl._t("Then, use this page to reseed with the file you received.")%>
2017-11-19 00:41:42 +00:00
<%=intl._t("First, select the file below.")%>
<%=intl._t("Then, click \"{0}\".", intl._t("Reseed from file"))%>
2017-11-18 18:47:50 +00:00
</li><li>
<%=intl._t("If you know and trust somebody that publishes reseed files, ask them for the URL.")%>
2018-01-18 09:06:34 +00:00
<%=intl._t("Then, use this page to reseed with the URL you received.")%>
2017-11-19 00:41:42 +00:00
<%=intl._t("First, enter the URL below.")%>
<%=intl._t("Then, click \"{0}\".", intl._t("Reseed from URL"))%>
2017-11-18 18:47:50 +00:00
</li><li>
2015-09-25 19:55:36 +00:00
<%=intl._t("See {0} for instructions on reseeding manually.", "<a href=\"https://geti2p.net/faq#manual_reseed\">" + intl._t("the FAQ") + "</a>")%>
2017-11-18 18:47:50 +00:00
</li></ol>
2016-04-18 12:11:05 +00:00
<h3 class="tabletitle"><%=intl._t("Manual Reseed")%></h3>
2020-05-13 11:40:01 +00:00
<form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
2016-04-18 12:11:05 +00:00
<table id="manualreseed" class="configtable">
<tr>
<td class="infohelp" colspan="2">
<%=intl._t("The su3 format is preferred, as it will be verified as signed by a trusted source.")%>
2015-09-25 19:55:36 +00:00
<%=intl._t("The zip format is unsigned; use a zip file only from a source that you trust.")%>
2016-04-18 12:11:05 +00:00
</td>
2020-05-13 11:40:01 +00:00
<tr id="url">
2016-04-18 12:11:05 +00:00
<th colspan="2"><%=intl._t("Reseed from URL")%></th>
</tr>
<tr>
<td>
2017-05-14 05:30:13 +00:00
<b><%=intl._t("Enter zip or su3 URL")%>:</b>
2020-05-13 11:40:01 +00:00
<%
String url = request.getParameter("url");
2020-08-19 14:50:58 +00:00
String value = url != null ? "value=\"" + net.i2p.data.DataHelper.escapeHTML(url) + '"' : "";
2020-05-13 11:40:01 +00:00
%>
<input name="url" type="text" size="60" <%=value%> />
2016-04-18 12:11:05 +00:00
</td>
<td class="optionsave">
2015-09-25 19:55:36 +00:00
<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from URL")%>" />
2016-04-18 12:11:05 +00:00
</td>
</tr>
2020-05-13 11:40:01 +00:00
</table></form>
<form action="" method="POST" enctype="multipart/form-data" accept-charset="UTF-8">
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
<table id="manualreseed2" class="configtable">
<tr id="file">
2016-04-18 12:11:05 +00:00
<th colspan="2"><%=intl._t("Reseed from File")%></th>
</tr>
<tr>
<td>
2017-05-14 05:30:13 +00:00
<b><%=intl._t("Select zip or su3 file")%>:</b>
2020-05-13 11:40:01 +00:00
<%
String file = request.getParameter("file");
2020-05-14 12:57:24 +00:00
if (file != null && file.length() > 0) {
2020-05-13 11:40:01 +00:00
%>
2020-08-19 14:50:58 +00:00
<input type="text" size="60" name="file" value="<%=net.i2p.data.DataHelper.escapeHTML(file)%>">
2020-05-13 11:40:01 +00:00
<%
} else {
%>
2016-05-23 11:29:10 +00:00
<input name="file" type="file" accept=".zip,.su3" value="" />
2020-05-13 11:40:01 +00:00
<%
}
%>
2016-04-18 12:11:05 +00:00
</td>
<td class="optionsave">
2015-09-25 19:55:36 +00:00
<input type="submit" name="action" class="download" value="<%=intl._t("Reseed from file")%>" />
2016-04-18 12:11:05 +00:00
</td>
</tr>
2020-06-09 17:09:36 +00:00
</table></form>
<form action="/createreseed" method="GET">
<table id="manualreseed3" class="configtable">
2020-05-13 11:40:01 +00:00
<tr id="create">
2016-04-18 12:11:05 +00:00
<th colspan="2">
<%=intl._t("Create Reseed File")%>
</th>
</tr>
<tr>
<td class="infohelp" colspan="2">
<%=intl._t("Create a new reseed zip file you may share for others to reseed manually.")%>
2015-09-25 19:55:36 +00:00
<%=intl._t("This file will never contain your own router's identity or IP.")%>
2016-04-18 12:11:05 +00:00
</td>
</tr>
<tr>
<td class="optionsave" colspan="2">
2015-09-25 19:55:36 +00:00
<input type="submit" name="action" class="go" value="<%=intl._t("Create reseed file")%>" />
2016-04-18 12:11:05 +00:00
</td>
</tr>
2020-05-13 11:40:01 +00:00
</table></form>
2015-03-19 23:17:18 +00:00
<form action="" method="POST">
<input type="hidden" name="nonce" value="<%=pageNonce%>" >
2016-04-18 12:11:05 +00:00
<h3 class="tabletitle"><%=intl._t("Reseeding Configuration")%></h3>
<table id="reseedconfig" class="configtable" border="0" cellspacing="5">
<tr>
<td class="infohelp" colspan="2">
<b><%=intl._t("The default settings will work for most people.")%></b>
2015-09-25 19:55:36 +00:00
<%=intl._t("Change these only if HTTPS is blocked by a restrictive firewall and reseed has failed.")%>
2016-04-18 12:11:05 +00:00
</td>
</tr>
2017-11-16 16:17:03 +00:00
<% if (reseedHelper.shouldShowSelect()) { %>
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("Reseed URL Selection")%>:</b></td>
<td><label><input type="radio" class="optbox" name="mode" value="0" <%=reseedHelper.modeChecked(0) %> >
<%=intl._t("Try SSL first then non-SSL")%></label><br>
<label><input type="radio" class="optbox" name="mode" value="1" <%=reseedHelper.modeChecked(1) %> >
<%=intl._t("Use SSL only")%></label><br>
<label><input type="radio" class="optbox" name="mode" value="2" <%=reseedHelper.modeChecked(2) %> >
<%=intl._t("Use non-SSL only")%></label></td></tr>
2017-11-16 16:17:03 +00:00
<% } // shouldShowSelect %>
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("Reseed URLs")%>:</b></td>
2015-09-20 19:28:11 +00:00
<td><textarea wrap="off" name="reseedURL" cols="60" rows="7" spellcheck="false"><jsp:getProperty name="reseedHelper" property="reseedURL" /></textarea>
2016-04-18 04:12:15 +00:00
<div class="formaction" id="resetreseed"><input type="submit" name="action" class="reload" value="<%=intl._t("Reset URL list")%>" /></div>
2015-09-20 19:28:11 +00:00
</td></tr>
2011-09-16 14:45:02 +00:00
2017-11-16 16:17:03 +00:00
<% if (reseedHelper.shouldShowHTTPSProxy()) { %>
2018-01-18 09:06:34 +00:00
<tr><td align="right"><b><%=intl._t("Proxy type for HTTPS reseed URLs")%>:</b></td>
2017-11-17 23:46:45 +00:00
<td><label><input type="radio" class="optbox" name="pmode" value="" <%=reseedHelper.pmodeChecked(0) %> >
<%=intl._t("None")%></label><br>
<label><input type="radio" class="optbox" name="pmode" value="HTTP" <%=reseedHelper.pmodeChecked(1) %> >
<%=intl._t("HTTPS")%></label><br>
<label><input type="radio" class="optbox" name="pmode" value="SOCKS4" <%=reseedHelper.pmodeChecked(2) %> >
<%=intl._t("SOCKS 4/4a")%></label><br>
<label><input type="radio" class="optbox" name="pmode" value="SOCKS5" <%=reseedHelper.pmodeChecked(3) %> >
2017-11-21 01:29:31 +00:00
<%=intl._t("SOCKS 5")%></label><br>
<label><input type="radio" class="optbox" name="pmode" value="INTERNAL" <%=reseedHelper.pmodeChecked(4) %> >
<%=intl._t("I2P Outproxy")%></label>
(<%=intl._t("Not for initial reseed. Leave host and port blank.")%>)
</td></tr>
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("HTTPS Proxy Host")%>:</b></td>
2011-09-16 14:45:02 +00:00
<td><input name="shost" type="text" value="<jsp:getProperty name="reseedHelper" property="shost" />" ></td></tr>
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("HTTPS Proxy Port")%>:</b></td>
2011-09-16 14:45:02 +00:00
<td><input name="sport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="reseedHelper" property="sport" />" ></td></tr>
2017-11-17 13:33:46 +00:00
<!-- not fully implemented, not necessary?
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("Use HTTPS Proxy Authorization?")%></b></td>
2011-09-16 14:45:02 +00:00
<td><input type="checkbox" class="optbox" name="sauth" value="true" <jsp:getProperty name="reseedHelper" property="sauth" /> ></td></tr>
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("HTTPS Proxy Username")%>:</b></td>
2011-09-16 14:45:02 +00:00
<td><input name="susername" type="text" value="<jsp:getProperty name="reseedHelper" property="susername" />" ></td></tr>
2017-05-14 05:30:13 +00:00
<tr><td align="right"><b><%=intl._t("HTTPS Proxy Password")%>:</b></td>
2014-08-03 13:58:51 +00:00
<td><input name="nofilter_spassword" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_spassword" />" ></td></tr>
2011-09-16 14:45:02 +00:00
-->
2017-11-17 13:33:46 +00:00
<% } // shouldShowHTTPSProxy %>
2011-09-16 14:45:02 +00:00
2017-11-17 23:46:45 +00:00
<% if (reseedHelper.shouldShowHTTPProxy()) { %>
2018-01-18 09:06:34 +00:00
<tr><td align="right"><label for="enableproxy"><b><%=intl._t("Enable proxy for HTTP reseed URLs?")%></b></label></td>
2017-11-17 23:46:45 +00:00
<td><input type="checkbox" class="optbox" name="enable" id="enableproxy" value="true" <jsp:getProperty name="reseedHelper" property="enable" /> ></td></tr>
<tr><td align="right"><b><%=intl._t("HTTP Proxy Host")%>:</b></td>
<td><input name="host" type="text" value="<jsp:getProperty name="reseedHelper" property="host" />" ></td></tr>
<tr><td align="right"><b><%=intl._t("HTTP Proxy Port")%>:</b></td>
<td><input name="port" type="text" size="5" maxlength="5" value="<jsp:getProperty name="reseedHelper" property="port" />" ></td></tr>
<tr><td align="right"><label for="useproxyauth"><b><%=intl._t("Use HTTP Proxy Authorization?")%></b></label></td>
<td><input type="checkbox" class="optbox" name="auth" id="useproxyauth" value="true" <jsp:getProperty name="reseedHelper" property="auth" /> ></td></tr>
<tr><td align="right"><b><%=intl._t("HTTP Proxy Username")%>:</b></td>
<td><input name="username" type="text" value="<jsp:getProperty name="reseedHelper" property="username" />" ></td></tr>
<tr><td align="right"><b><%=intl._t("HTTP Proxy Password")%>:</b></td>
<td><input name="nofilter_password" type="password" value="<jsp:getProperty name="reseedHelper" property="nofilter_password" />" ></td></tr>
<% } // shouldShowHTTPProxy %>
2016-04-18 12:11:05 +00:00
<tr>
<td class="optionsave" colspan="2">
2015-09-25 19:55:36 +00:00
<input type="submit" class="cancel" name="foo" value="<%=intl._t("Cancel")%>" />
<input type="submit" name="action" class="download" value="<%=intl._t("Save changes and reseed now")%>" />
<input type="submit" name="action" class="accept" value="<%=intl._t("Save changes")%>" />
2016-04-18 12:11:05 +00:00
</td>
</tr>
</table>
</form></div></body></html>