source: apps/routerconsole/jsp/confignet.jsp @ 5ca319e

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

/confignet: Reorganize (ticket #2217)

  • Property mode set to 100644
File size: 8.2 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 networking")%>
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.helpers.ConfigNetHelper" id="nethelper" scope="request" />
15<jsp:setProperty name="nethelper" property="contextId" value="<%=(String)session.getAttribute(\"i2p.contextId\")%>" />
16<h1><%=intl._t("I2P Network Configuration")%></h1>
17<div class="main" id="config_network">
18 <%@include file="confignav.jsi" %>
19
20 <jsp:useBean class="net.i2p.router.web.helpers.ConfigNetHandler" id="formhandler" scope="request" />
21<%@include file="formhandler.jsi" %>
22 <form action="" method="POST">
23 <input type="hidden" name="nonce" value="<%=pageNonce%>" >
24 <input type="hidden" name="action" value="blah" >
25 <h3 id="iptransport" class="tabletitle"><%=intl._t("IP and Transport Configuration")%>&nbsp;<a title="<%=intl._t("Help with router configuration")%>" href="/help#configurationhelp">[<%=intl._t("Configuration Help")%>]</a></h3>
26 <table id="netconfig" class="configtable">
27 <tr>
28  <td class="infohelp">
29 <b><%=intl._t("The default settings will work for most people.")%>
30 <%=intl._t("Changing these settings will restart your router.")%></b>
31  </td>
32 </tr>
33 <tr>
34  <td class="infohelp">
35   <b><%=intl._t("Do not reveal your port numbers to anyone, as they can be used to discover your IP address.")%></b>
36  </td>
37 </tr>
38 <tr>
39  <th id="upnpconfig"><%=intl._t("UPnP Configuration")%>&nbsp;<a href="peers#upnp">[<%=intl._t("UPnP Status")%>]</a></th>
40 </tr>
41 <tr>
42  <td>
43    <label><input type="checkbox" class="optbox" name="upnp" value="true" <jsp:getProperty name="nethelper" property="upnpChecked" /> >
44    <%=intl._t("Enable UPnP to open firewall ports")%></label>
45  </td>
46 </tr>
47 <tr>
48  <th id="ipconfig"><%=intl._t("IP Configuration")%></th>
49 </tr>
50 <tr>
51  <td>
52 <b class="suboption"><%=intl._t("Externally reachable hostname or IP address")%>:</b><br>
53    <label><input type="radio" class="optbox" name="udpAutoIP" value="local,upnp,ssu" <%=nethelper.getUdpAutoIPChecked(3) %> >
54    <%=intl._t("Use all auto-detect methods")%></label><br>
55    <label><input type="radio" class="optbox" name="udpAutoIP" value="local,ssu" <%=nethelper.getUdpAutoIPChecked(4) %> >
56    <%=intl._t("Disable UPnP IP address detection")%></label><br>
57    <label><input type="radio" class="optbox" name="udpAutoIP" value="upnp,ssu" <%=nethelper.getUdpAutoIPChecked(5) %> >
58    <%=intl._t("Ignore local interface IP address")%></label><br>
59    <label><input type="radio" class="optbox" name="udpAutoIP" value="ssu" <%=nethelper.getUdpAutoIPChecked(0) %> >
60    <%=intl._t("Use SSU IP address detection only")%></label><br>
61    <label><input type="radio" class="optbox" name="udpAutoIP" value="hidden" <%=nethelper.getUdpAutoIPChecked(2) %> >
62    <%=intl._t("Hidden mode - do not publish IP")%> <i><%=intl._t("(prevents participating traffic)")%></i></label><br>
63    <label><input type="radio" class="optbox" name="udpAutoIP" value="fixed" <%=nethelper.getUdpAutoIPChecked(1) %> >
64    <%=intl._t("Specify hostname or IP")%>:</label>
65    <%=nethelper.getAddressSelector() %>
66  </td>
67 </tr>
68 <tr>
69  <td>
70 <b class="suboption"><%=intl._t("IPv4 Configuration")%>:</b><br>
71    <label><input type="checkbox" class="optbox" name="IPv4Firewalled" value="true" <jsp:getProperty name="nethelper" property="IPv4FirewalledChecked" /> >
72    <%=intl._t("Disable inbound (Firewalled by Carrier-grade NAT or DS-Lite)")%></label>
73  </td>
74 </tr>
75 <tr>
76  <td>
77 <b class="suboption"><%=intl._t("IPv6 Configuration")%>:</b><br>
78    <label><input type="radio" class="optbox" name="ipv6" value="preferIPv4" <%=nethelper.getIPv6Checked("preferIPv4") %> >
79    <%=intl._t("Prefer IPv4 over IPv6")%></label><br>
80    <label><input type="radio" class="optbox" name="ipv6" value="preferIPv6" <%=nethelper.getIPv6Checked("preferIPv6") %> >
81    <%=intl._t("Prefer IPv6 over IPv4")%></label><br>
82    <label><input type="radio" class="optbox" name="ipv6" value="enable" <%=nethelper.getIPv6Checked("enable") %> >
83    <%=intl._t("Enable IPv6")%></label><br>
84    <label><input type="radio" class="optbox" name="ipv6" value="false" <%=nethelper.getIPv6Checked("false") %> >
85    <%=intl._t("Disable IPv6")%></label><br>
86    <label><input type="radio" class="optbox" name="ipv6" value="only" <%=nethelper.getIPv6Checked("only") %> >
87    <%=intl._t("Use IPv6 only (disable IPv4)")%>
88    <i>(<%=intl._t("Experimental")%>)</i></label><br>
89    <label><input type="checkbox" class="optbox" name="IPv6Firewalled" value="true" <jsp:getProperty name="nethelper" property="IPv6FirewalledChecked" /> >
90    <%=intl._t("Disable inbound (Firewalled by Carrier-grade NAT or DS-Lite)")%></label>
91  </td>
92 </tr>
93 <tr>
94  <td>
95 <b class="suboption"><%=intl._t("Action when IP changes")%>:</b><br>
96    <label><input type="checkbox" class="optbox" name="laptop" value="true" <jsp:getProperty name="nethelper" property="laptopChecked" /> >
97    <%=intl._t("Laptop mode - Change router identity and UDP port when IP changes for enhanced anonymity")%>
98    <i>(<%=intl._t("Experimental")%>)</i></label>
99  </td>
100 </tr>
101 <tr>
102  <th id="udpconfig"><%=intl._t("UDP Configuration")%></th>
103 </tr>
104 <tr>
105  <td>
106 <b class="suboption"><%=intl._t("UDP port:")%></b><br>
107 <label><input type="radio" class="optbox" name="disableUDP" value="enabled" <%=nethelper.getUdpEnabledChecked() %> >
108 <%=intl._t("Specify Port")%>:</label>
109 <input name ="udpPort" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="configuredUdpPort" />" ><br>
110 <label><input type="radio" class="optbox" name="disableUDP" value="disabled" <%=nethelper.getUdpDisabledChecked() %> >
111 <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that blocks outbound UDP)")%></i></label>
112  </td>
113 </tr>
114 <tr>
115  <th id="tcpconfig"><%=intl._t("TCP Configuration")%></th>
116 </tr>
117 <tr>
118  <td>
119 <b class="suboption"><%=intl._t("Externally reachable TCP port")%>:</b><br>
120    <label><input type="radio" class="optbox" name="ntcpAutoPort" value="1" <%=nethelper.getTcpAutoPortChecked(1) %> >
121    <%=intl._t("Specify Port")%>:</label>
122    <input name ="ntcpport" type="text" size="5" maxlength="5" value="<jsp:getProperty name="nethelper" property="ntcpport" />" ><br>
123    <label><input type="radio" class="optbox" name="ntcpAutoPort" value="2" <%=nethelper.getTcpAutoPortChecked(2) %> >
124    <%=intl._t("Use the same port configured for UDP")%>
125    <i>(<%=intl._t("currently")%> <jsp:getProperty name="nethelper" property="udpPort" />)</i></label>
126  </td>
127 </tr>
128 <tr>
129  <td>
130 <b class="suboption"><%=intl._t("Externally reachable hostname or IP address")%>:</b><br>
131    <label><input type="radio" class="optbox" name="ntcpAutoIP" value="true" <%=nethelper.getTcpAutoIPChecked(2) %> >
132    <%=intl._t("Use auto-detected IP address")%>
133    <i>(<%=intl._t("currently")%> <jsp:getProperty name="nethelper" property="udpIP" />)</i>
134    <%=intl._t("if we are not firewalled")%></label><br>
135    <label><input type="radio" class="optbox" name="ntcpAutoIP" value="always" <%=nethelper.getTcpAutoIPChecked(3) %> >
136    <%=intl._t("Always use auto-detected IP address (Not firewalled)")%></label><br>
137    <label><input type="radio" class="optbox" name="ntcpAutoIP" value="false" <%=nethelper.getTcpAutoIPChecked(0) %> >
138    <%=intl._t("Disable inbound (Firewalled)")%></label><br>
139    <label><input type="radio" class="optbox" name="ntcpAutoIP" value="disabled" <%=nethelper.getTcpAutoIPChecked(4) %> >
140    <%=intl._t("Completely disable")%> <i><%=intl._t("(select only if behind a firewall that throttles or blocks outbound TCP)")%></i></label><br>
141    <label><input type="radio" class="optbox" name="ntcpAutoIP" value="false" <%=nethelper.getTcpAutoIPChecked(1) %> >
142    <%=intl._t("Specify hostname or IP")%>:</label>
143    <input name ="ntcphost" type="text" size="16" value="<jsp:getProperty name="nethelper" property="ntcphostname" />" >
144  </td>
145 </tr>
146 <tr>
147  <td class="optionsave">
148<input type="reset" class="cancel" value="<%=intl._t("Cancel")%>" >
149<input type="submit" class="accept" name="save" value="<%=intl._t("Save changes")%>" >
150  </td>
151 </tr>
152</table>
153</form></div></body></html>
Note: See TracBrowser for help on using the repository browser.