1 | <%@page contentType="text/html" import="net.i2p.i2ptunnel.web.EditBean"%><?xml version="1.0" encoding="UTF-8"?> |
---|
2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
---|
3 | <jsp:useBean class="net.i2p.i2ptunnel.web.EditBean" id="editBean" scope="request" /> |
---|
4 | <% String tun = request.getParameter("tunnel"); |
---|
5 | int curTunnel = -1; |
---|
6 | if (tun != null) { |
---|
7 | try { |
---|
8 | curTunnel = Integer.parseInt(tun); |
---|
9 | } catch (NumberFormatException nfe) { |
---|
10 | curTunnel = -1; |
---|
11 | } |
---|
12 | } |
---|
13 | %> |
---|
14 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
---|
15 | <head> |
---|
16 | <title>I2PTunnel Webmanager - Edit</title> |
---|
17 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
---|
18 | <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8" /> |
---|
19 | |
---|
20 | <% if (editBean.allowCSS()) { |
---|
21 | %><link href="/themes/console/images/favicon.ico" type="image/x-icon" rel="shortcut icon" /> |
---|
22 | <link href="<%=editBean.getTheme()%>default.css" rel="stylesheet" type="text/css" /> |
---|
23 | <link href="<%=editBean.getTheme()%>i2ptunnel.css" rel="stylesheet" type="text/css" /> |
---|
24 | <% } |
---|
25 | %> |
---|
26 | </head> |
---|
27 | <body id="tunnelEditPage"> |
---|
28 | <div id="pageHeader"> |
---|
29 | </div> |
---|
30 | |
---|
31 | <form method="post" action="index.jsp"> |
---|
32 | |
---|
33 | <div id="tunnelEditPanel" class="panel"> |
---|
34 | <div class="header"> |
---|
35 | <% |
---|
36 | String tunnelTypeName = ""; |
---|
37 | String tunnelType = ""; |
---|
38 | if (curTunnel >= 0) { |
---|
39 | tunnelTypeName = editBean.getTunnelType(curTunnel); |
---|
40 | tunnelType = editBean.getInternalType(curTunnel); |
---|
41 | %><h4>Edit proxy settings</h4><% |
---|
42 | } else { |
---|
43 | tunnelTypeName = editBean.getTypeName(request.getParameter("type")); |
---|
44 | tunnelType = request.getParameter("type"); |
---|
45 | %><h4>New proxy settings</h4><% |
---|
46 | } %> |
---|
47 | <input type="hidden" name="tunnel" value="<%=request.getParameter("tunnel")%>" /> |
---|
48 | <input type="hidden" name="nonce" value="<%=editBean.getNextNonce()%>" /> |
---|
49 | <input type="hidden" name="type" value="<%=tunnelType%>" /> |
---|
50 | </div> |
---|
51 | |
---|
52 | <div class="separator"> |
---|
53 | <hr> |
---|
54 | </div> |
---|
55 | |
---|
56 | <div id="nameField" class="rowItem"> |
---|
57 | <label for="name" accesskey="N"> |
---|
58 | <span class="accessKey">N</span>ame: |
---|
59 | </label> |
---|
60 | <input type="text" size="30" maxlength="50" name="name" id="name" title="Tunnel Name" value="<%=editBean.getTunnelName(curTunnel)%>" class="freetext" /> |
---|
61 | </div> |
---|
62 | <div id="typeField" class="rowItem"> |
---|
63 | <label>Type:</label> |
---|
64 | <span class="text"><%=tunnelTypeName%></span> |
---|
65 | </div> |
---|
66 | <div id="descriptionField" class="rowItem"> |
---|
67 | <label for="description" accesskey="e"> |
---|
68 | D<span class="accessKey">e</span>scription: |
---|
69 | </label> |
---|
70 | <input type="text" size="60" maxlength="80" name="description" id="description" title="Tunnel Description" value="<%=editBean.getTunnelDescription(curTunnel)%>" class="freetext" /> |
---|
71 | </div> |
---|
72 | |
---|
73 | <div class="subdivider"> |
---|
74 | <hr> |
---|
75 | </div> |
---|
76 | |
---|
77 | <div id="accessField" class="rowItem"> |
---|
78 | <% if ("streamrclient".equals(tunnelType)) { %> |
---|
79 | <label>Target:</label> |
---|
80 | <% } else { %> |
---|
81 | <label>Access Point:</label> |
---|
82 | <% } %> |
---|
83 | </div> |
---|
84 | <div id="portField" class="rowItem"> |
---|
85 | <label for="port" accesskey="P"> |
---|
86 | <span class="accessKey">P</span>ort: |
---|
87 | <% String value = editBean.getClientPort(curTunnel); |
---|
88 | if (value == null || "".equals(value.trim())) |
---|
89 | out.write(" <font color=\"red\">(required)</font>"); |
---|
90 | %> |
---|
91 | </label> |
---|
92 | <input type="text" size="6" maxlength="5" id="port" name="port" title="Access Port Number" value="<%=editBean.getClientPort(curTunnel)%>" class="freetext" /> |
---|
93 | </div> |
---|
94 | <% String otherInterface = ""; |
---|
95 | String clientInterface = editBean.getClientInterface(curTunnel); |
---|
96 | if ("streamrclient".equals(tunnelType)) { |
---|
97 | otherInterface = clientInterface; |
---|
98 | } else { %> |
---|
99 | <div id="reachField" class="rowItem"> |
---|
100 | <label for="reachableBy" accesskey="r"> |
---|
101 | <span class="accessKey">R</span>eachable by: |
---|
102 | </label> |
---|
103 | <select id="reachableBy" name="reachableBy" title="Valid IP for Client Access" class="selectbox"> |
---|
104 | <% if (!("127.0.0.1".equals(clientInterface)) && |
---|
105 | !("0.0.0.0".equals(clientInterface)) && |
---|
106 | (clientInterface != null) && |
---|
107 | (clientInterface.trim().length() > 0)) { |
---|
108 | otherInterface = clientInterface; |
---|
109 | } |
---|
110 | %><option value="127.0.0.1"<%=("127.0.0.1".equals(clientInterface) ? " selected=\"selected\"" : "")%>>Locally (127.0.0.1)</option> |
---|
111 | <option value="0.0.0.0"<%=("0.0.0.0".equals(clientInterface) ? " selected=\"selected\"" : "")%>>Everyone (0.0.0.0)</option> |
---|
112 | <option value="other"<%=(!("".equals(otherInterface)) ? " selected=\"selected\"" : "")%>>LAN Hosts (Please specify your LAN address)</option> |
---|
113 | </select> |
---|
114 | </div> |
---|
115 | <% } // streamrclient %> |
---|
116 | <div id="otherField" class="rowItem"> |
---|
117 | <label for="reachableByOther" accesskey="O"> |
---|
118 | <% if ("streamrclient".equals(tunnelType)) { %> |
---|
119 | Host: |
---|
120 | <% String vvv = otherInterface; |
---|
121 | if (vvv == null || "".equals(vvv.trim())) |
---|
122 | out.write(" <font color=\"red\">(required)</font>"); |
---|
123 | %> |
---|
124 | <% } else { %> |
---|
125 | <span class="accessKey">O</span>ther: |
---|
126 | <% } %> |
---|
127 | </label> |
---|
128 | <input type="text" size="20" id="reachableByOther" name="reachableByOther" title="Alternative IP for Client Access" value="<%=otherInterface%>" class="freetext" /> |
---|
129 | </div> |
---|
130 | |
---|
131 | <div class="subdivider"> |
---|
132 | <hr> |
---|
133 | </div> |
---|
134 | |
---|
135 | <% if ("httpclient".equals(tunnelType) || "connectclient".equals(tunnelType)) { |
---|
136 | %><div id="destinationField" class="rowItem"> |
---|
137 | <label for="proxyList" accesskey="x"> |
---|
138 | Outpro<span class="accessKey">x</span>ies: |
---|
139 | </label> |
---|
140 | <input type="text" size="30" id="proxyList" name="proxyList" title="List of Outproxy I2P destinations" value="<%=editBean.getClientDestination(curTunnel)%>" class="freetext" /> |
---|
141 | </div> |
---|
142 | <% } else if ("client".equals(tunnelType) || "ircclient".equals(tunnelType) || "streamrclient".equals(tunnelType)) { |
---|
143 | %><div id="destinationField" class="rowItem"> |
---|
144 | <label for="targetDestination" accesskey="T"> |
---|
145 | <span class="accessKey">T</span>unnel Destination: |
---|
146 | <% String value2 = editBean.getClientDestination(curTunnel); |
---|
147 | if (value2 == null || "".equals(value2.trim())) |
---|
148 | out.write(" <font color=\"red\">(required)</font>"); |
---|
149 | %> |
---|
150 | </label> |
---|
151 | <input type="text" size="30" id="targetDestination" name="targetDestination" title="Destination of the Tunnel" value="<%=editBean.getClientDestination(curTunnel)%>" class="freetext" /> |
---|
152 | <span class="comment">(name or destination)</span> |
---|
153 | </div> |
---|
154 | <% } %> |
---|
155 | <% if (!"streamrclient".equals(tunnelType)) { %> |
---|
156 | <div id="profileField" class="rowItem"> |
---|
157 | <label for="profile" accesskey="f"> |
---|
158 | Pro<span class="accessKey">f</span>ile: |
---|
159 | </label> |
---|
160 | <select id="profile" name="profile" title="Connection Profile" class="selectbox"> |
---|
161 | <% boolean interactiveProfile = editBean.isInteractive(curTunnel); |
---|
162 | %><option <%=(interactiveProfile == true ? "selected=\"selected\" " : "")%>value="interactive">interactive connection </option> |
---|
163 | <option <%=(interactiveProfile == false ? "selected=\"selected\" " : "")%>value="bulk">bulk connection (downloads/websites/BT) </option> |
---|
164 | </select> |
---|
165 | </div> |
---|
166 | <div id="delayConnectField" class="rowItem"> |
---|
167 | <label for="connectDelay" accesskey="y"> |
---|
168 | Dela<span class="accessKey">y</span> Connect: |
---|
169 | </label> |
---|
170 | <input value="1000" type="checkbox" id="connectDelay" name="connectDelay" title="Delay Connection"<%=(editBean.shouldDelay(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
171 | <span class="comment">(for request/response connections)</span> |
---|
172 | </div> |
---|
173 | <div id="sharedtField" class="rowItem"> |
---|
174 | <label for="shared" accesskey="h"> |
---|
175 | S<span class="accessKey">h</span>ared Client: |
---|
176 | </label> |
---|
177 | <input value="true" type="checkbox" id="shared" name="shared" title="Share tunnels with other clients"<%=(editBean.isSharedClient(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
178 | <span class="comment">(Share tunnels with other clients and irc/httpclients? Change requires restart of client proxy)</span> |
---|
179 | </div> |
---|
180 | <% } // !streamrclient %> |
---|
181 | <div id="startupField" class="rowItem"> |
---|
182 | <label for="startOnLoad" accesskey="a"> |
---|
183 | <span class="accessKey">A</span>uto Start: |
---|
184 | </label> |
---|
185 | <input value="1" type="checkbox" id="startOnLoad" name="startOnLoad" title="Start Tunnel Automatically"<%=(editBean.startAutomatically(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
186 | <span class="comment">(Check the Box for 'YES')</span> |
---|
187 | </div> |
---|
188 | |
---|
189 | <div class="footer"> |
---|
190 | </div> |
---|
191 | </div> |
---|
192 | |
---|
193 | <div id="tunnelAdvancedNetworking" class="panel"> |
---|
194 | <div class="header"> |
---|
195 | <h4>Advanced networking options</h4> |
---|
196 | <span class="comment">(NOTE: when this client proxy is configured to share tunnels, then these options are for all the shared proxy clients!)</span> |
---|
197 | </div> |
---|
198 | |
---|
199 | <div class="separator"> |
---|
200 | <hr> |
---|
201 | </div> |
---|
202 | |
---|
203 | <div id="tunnelOptionsField" class="rowItem"> |
---|
204 | <label>Tunnel Options:</label> |
---|
205 | </div> |
---|
206 | <div id="depthField" class="rowItem"> |
---|
207 | <label for="tunnelDepth" accesskey="t"> |
---|
208 | Dep<span class="accessKey">t</span>h: |
---|
209 | </label> |
---|
210 | <select id="tunnelDepth" name="tunnelDepth" title="Depth of each Tunnel" class="selectbox"> |
---|
211 | <% int tunnelDepth = editBean.getTunnelDepth(curTunnel, 2); |
---|
212 | %><option value="0"<%=(tunnelDepth == 0 ? " selected=\"selected\"" : "") %>>0 hop tunnel (low anonymity, low latency)</option> |
---|
213 | <option value="1"<%=(tunnelDepth == 1 ? " selected=\"selected\"" : "") %>>1 hop tunnel (medium anonymity, medium latency)</option> |
---|
214 | <option value="2"<%=(tunnelDepth == 2 ? " selected=\"selected\"" : "") %>>2 hop tunnel (high anonymity, high latency)</option> |
---|
215 | <option value="3"<%=(tunnelDepth == 3 ? " selected=\"selected\"" : "") %>>3 hop tunnel (very high anonymity, poor performance)</option> |
---|
216 | <% if (tunnelDepth > 3) { |
---|
217 | %> <option value="<%=tunnelDepth%>" selected="selected"><%=tunnelDepth%> hop tunnel (very poor performance)</option> |
---|
218 | <% } |
---|
219 | %></select> |
---|
220 | </div> |
---|
221 | <div id="varianceField" class="rowItem"> |
---|
222 | <label for="tunnelVariance" accesskey="v"> |
---|
223 | <span class="accessKey">V</span>ariance: |
---|
224 | </label> |
---|
225 | <select id="tunnelVariance" name="tunnelVariance" title="Level of Randomization for Tunnel Depth" class="selectbox"> |
---|
226 | <% int tunnelVariance = editBean.getTunnelVariance(curTunnel, 0); |
---|
227 | %><option value="0"<%=(tunnelVariance == 0 ? " selected=\"selected\"" : "") %>>0 hop variance (no randomisation, consistant performance)</option> |
---|
228 | <option value="1"<%=(tunnelVariance == 1 ? " selected=\"selected\"" : "") %>>+ 0-1 hop variance (medium additive randomisation, subtractive performance)</option> |
---|
229 | <option value="2"<%=(tunnelVariance == 2 ? " selected=\"selected\"" : "") %>>+ 0-2 hop variance (high additive randomisation, subtractive performance)</option> |
---|
230 | <option value="-1"<%=(tunnelVariance == -1 ? " selected=\"selected\"" : "") %>>+/- 0-1 hop variance (standard randomisation, standard performance)</option> |
---|
231 | <option value="-2"<%=(tunnelVariance == -2 ? " selected=\"selected\"" : "") %>>+/- 0-2 hop variance (not recommended)</option> |
---|
232 | <% if (tunnelVariance > 2 || tunnelVariance < -2) { |
---|
233 | %> <option value="<%=tunnelVariance%>" selected="selected"><%= (tunnelVariance > 2 ? "+ " : "+/- ") %>0-<%=tunnelVariance%> hop variance</option> |
---|
234 | <% } |
---|
235 | %></select> |
---|
236 | </div> |
---|
237 | <div id="countField" class="rowItem"> |
---|
238 | <label for="tunnelQuantity" accesskey="C"> |
---|
239 | <span class="accessKey">C</span>ount: |
---|
240 | </label> |
---|
241 | <select id="tunnelQuantity" name="tunnelQuantity" title="Number of Tunnels in Group" class="selectbox"> |
---|
242 | <% int tunnelQuantity = editBean.getTunnelQuantity(curTunnel, 2); |
---|
243 | %><option value="1"<%=(tunnelQuantity == 1 ? " selected=\"selected\"" : "") %>>1 inbound, 1 outbound tunnel (low bandwidth usage, less reliability)</option> |
---|
244 | <option value="2"<%=(tunnelQuantity == 2 ? " selected=\"selected\"" : "") %>>2 inbound, 2 outbound tunnels (standard bandwidth usage, standard reliability)</option> |
---|
245 | <option value="3"<%=(tunnelQuantity == 3 ? " selected=\"selected\"" : "") %>>3 inbound, 3 outbound tunnels (higher bandwidth usage, higher reliability)</option> |
---|
246 | <% if (tunnelQuantity > 3) { |
---|
247 | %> <option value="<%=tunnelQuantity%>" selected="selected"><%=tunnelQuantity%> tunnels</option> |
---|
248 | <% } |
---|
249 | %></select> |
---|
250 | </div> |
---|
251 | <div id="backupField" class="rowItem"> |
---|
252 | <label for="tunnelBackupQuantity" accesskey="b"> |
---|
253 | <span class="accessKey">B</span>ackup Count: |
---|
254 | </label> |
---|
255 | <select id="tunnelBackupQuantity" name="tunnelBackupQuantity" title="Number of Reserve Tunnels" class="selectbox"> |
---|
256 | <% int tunnelBackupQuantity = editBean.getTunnelBackupQuantity(curTunnel, 0); |
---|
257 | %><option value="0"<%=(tunnelBackupQuantity == 0 ? " selected=\"selected\"" : "") %>>0 backup tunnels (0 redundancy, no added resource usage)</option> |
---|
258 | <option value="1"<%=(tunnelBackupQuantity == 1 ? " selected=\"selected\"" : "") %>>1 backup tunnel each direction (low redundancy, low resource usage)</option> |
---|
259 | <option value="2"<%=(tunnelBackupQuantity == 2 ? " selected=\"selected\"" : "") %>>2 backup tunnels each direction (medium redundancy, medium resource usage)</option> |
---|
260 | <option value="3"<%=(tunnelBackupQuantity == 3 ? " selected=\"selected\"" : "") %>>3 backup tunnels each direction (high redundancy, high resource usage)</option> |
---|
261 | <% if (tunnelBackupQuantity > 3) { |
---|
262 | %> <option value="<%=tunnelBackupQuantity%>" selected="selected"><%=tunnelBackupQuantity%> backup tunnels</option> |
---|
263 | <% } |
---|
264 | %></select> |
---|
265 | </div> |
---|
266 | |
---|
267 | <div class="subdivider"> |
---|
268 | <hr> |
---|
269 | </div> |
---|
270 | |
---|
271 | <div id="optionsField" class="rowItem"> |
---|
272 | <label>I2CP Options:</label> |
---|
273 | </div> |
---|
274 | <div id="optionsHostField" class="rowItem"> |
---|
275 | <label for="clientHost" accesskey="o"> |
---|
276 | H<span class="accessKey">o</span>st: |
---|
277 | </label> |
---|
278 | <input type="text" id="clientHost" name="clientHost" size="20" title="I2CP Hostname or IP" value="<%=editBean.getI2CPHost(curTunnel)%>" class="freetext" /> |
---|
279 | </div> |
---|
280 | <div id="optionsPortField" class="rowItem"> |
---|
281 | <label for="clientPort" accesskey="r"> |
---|
282 | Po<span class="accessKey">r</span>t: |
---|
283 | </label> |
---|
284 | <input type="text" id="clientPort" name="clientport" size="20" title="I2CP Port Number" value="<%=editBean.getI2CPPort(curTunnel)%>" class="freetext" /> |
---|
285 | </div> |
---|
286 | |
---|
287 | <% if (!"streamrclient".equals(tunnelType)) { // streamr client sends pings so it will never be idle %> |
---|
288 | <div class="subdivider"> |
---|
289 | <hr> |
---|
290 | </div> |
---|
291 | |
---|
292 | <div id="optionsField" class="rowItem"> |
---|
293 | <label for="reduce" accesskey="d"> |
---|
294 | Re<span class="accessKey">d</span>uce tunnel quantity when idle: |
---|
295 | </label> |
---|
296 | </div> |
---|
297 | <div id="portField" class="rowItem"> |
---|
298 | <label for="access" accesskey="d"> |
---|
299 | Enable: |
---|
300 | </label> |
---|
301 | <input value="1" type="checkbox" id="startOnLoad" name="reduce" title="Reduce Tunnels"<%=(editBean.getReduce(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
302 | </div> |
---|
303 | <div id="portField" class="rowItem"> |
---|
304 | <label for="reduceCount" accesskey="d"> |
---|
305 | Reduced tunnel count: |
---|
306 | </label> |
---|
307 | <input type="text" id="port" name="reduceCount" size="1" maxlength="1" title="Reduced Tunnel Count" value="<%=editBean.getReduceCount(curTunnel)%>" class="freetext" /> |
---|
308 | </div> |
---|
309 | <div id="portField" class="rowItem"> |
---|
310 | <label for="reduceTime" accesskey="d"> |
---|
311 | Idle minutes: |
---|
312 | </label> |
---|
313 | <input type="text" id="port" name="reduceTime" size="4" maxlength="4" title="Reduced Tunnel Idle Time" value="<%=editBean.getReduceTime(curTunnel)%>" class="freetext" /> |
---|
314 | </div> |
---|
315 | |
---|
316 | <div class="subdivider"> |
---|
317 | <hr> |
---|
318 | </div> |
---|
319 | |
---|
320 | <div id="optionsField" class="rowItem"> |
---|
321 | <label for="reduce" accesskey="c"> |
---|
322 | <span class="accessKey">C</span>lose tunnels when idle: <i>Experimental</i> |
---|
323 | </label> |
---|
324 | </div> |
---|
325 | <div id="portField" class="rowItem"> |
---|
326 | <label for="access" accesskey="c"> |
---|
327 | Enable: |
---|
328 | </label> |
---|
329 | <input value="1" type="checkbox" id="startOnLoad" name="close" title="Close Tunnels"<%=(editBean.getClose(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
330 | </div> |
---|
331 | <div id="portField" class="rowItem"> |
---|
332 | <label for="access" accesskey="c"> |
---|
333 | New Keys on Reopen: |
---|
334 | </label> |
---|
335 | <table border="0"><tr><!-- I give up --> |
---|
336 | <td><input value="1" type="radio" id="startOnLoad" name="newDest" title="New Destination" |
---|
337 | <%=(editBean.getNewDest(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
338 | <td valign="center">Enable |
---|
339 | <td><input value="0" type="radio" id="startOnLoad" name="newDest" title="New Destination" |
---|
340 | <%=(editBean.getNewDest(curTunnel) || editBean.getPersistentClientKey(curTunnel) ? "" : " checked=\"checked\"")%> class="tickbox" /> |
---|
341 | <td valign="center">Disable |
---|
342 | </table> |
---|
343 | </div> |
---|
344 | <div id="portField" class="rowItem"> |
---|
345 | <label for="reduceTime" accesskey="c"> |
---|
346 | Idle minutes: |
---|
347 | </label> |
---|
348 | <input type="text" id="port" name="closeTime" size="4" maxlength="4" title="Close Tunnel Idle Time" value="<%=editBean.getCloseTime(curTunnel)%>" class="freetext" /> |
---|
349 | </div> |
---|
350 | |
---|
351 | <div class="subdivider"> |
---|
352 | <hr> |
---|
353 | </div> |
---|
354 | |
---|
355 | <div id="optionsField" class="rowItem"> |
---|
356 | <label for="reduce" accesskey="c"> |
---|
357 | <span class="accessKey">D</span>elay tunnel open until required: <i>Experimental</i> |
---|
358 | </label> |
---|
359 | </div> |
---|
360 | <div id="portField" class="rowItem"> |
---|
361 | <label for="access" accesskey="c"> |
---|
362 | Enable: |
---|
363 | </label> |
---|
364 | <input value="1" type="checkbox" id="startOnLoad" name="delayOpen" title="Delay Tunnel Open"<%=(editBean.getDelayOpen(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
365 | </div> |
---|
366 | <% } // !streamrclient %> |
---|
367 | |
---|
368 | <div class="subdivider"> |
---|
369 | <hr> |
---|
370 | </div> |
---|
371 | |
---|
372 | <% if ("client".equals(tunnelType) || "ircclient".equals(tunnelType)) { %> |
---|
373 | <div id="optionsField" class="rowItem"> |
---|
374 | <label for="privKeyFile" accesskey="k"> |
---|
375 | Persistent private <span class="accessKey">k</span>ey: |
---|
376 | </label> |
---|
377 | </div> |
---|
378 | <div id="portField" class="rowItem"> |
---|
379 | <label>Enable:</label> |
---|
380 | <input value="2" type="radio" id="startOnLoad" name="newDest" title="New Destination" |
---|
381 | <%=(editBean.getPersistentClientKey(curTunnel) ? " checked=\"checked\"" : "")%> class="tickbox" /> |
---|
382 | </div> |
---|
383 | <div id="reachField" class="rowItem"> |
---|
384 | <label>File:</label> |
---|
385 | <input type="text" size="30" id="clientHost" name="privKeyFile" title="Path to Private Key File" value="<%=editBean.getPrivateKeyFile(curTunnel)%>" class="freetext" /> |
---|
386 | </div> |
---|
387 | <div id="destinationField" class="rowItem"> |
---|
388 | <label for="localDestination" accesskey="L"> |
---|
389 | <span class="accessKey">L</span>ocal destination: |
---|
390 | </label> |
---|
391 | <textarea rows="1" style="height: 3em;" cols="60" readonly="readonly" id="localDestination" title="Read Only: Local Destination (if known)" wrap="off"><%=editBean.getDestinationBase64(curTunnel)%></textarea> |
---|
392 | <span class="comment">(if known)</span> |
---|
393 | </div> |
---|
394 | |
---|
395 | <div class="subdivider"> |
---|
396 | <hr> |
---|
397 | </div> |
---|
398 | <% } %> |
---|
399 | |
---|
400 | <div id="customOptionsField" class="rowItem"> |
---|
401 | <label for="customOptions" accesskey="u"> |
---|
402 | C<span class="accessKey">u</span>stom options: |
---|
403 | </label> |
---|
404 | <input type="text" id="customOptions" name="customOptions" size="60" title="Custom Options" value="<%=editBean.getCustomOptions(curTunnel)%>" class="freetext" /> |
---|
405 | </div> |
---|
406 | |
---|
407 | <div class="footer"> |
---|
408 | </div> |
---|
409 | </div> |
---|
410 | <div id="globalOperationsPanel" class="panel"> |
---|
411 | <div class="header"></div> |
---|
412 | <div class="footer"> |
---|
413 | <div class="toolbox"> |
---|
414 | <span class="comment">NOTE: If tunnel is currently running, most changes will not take effect until tunnel is stopped and restarted</span> |
---|
415 | <input type="hidden" value="true" name="removeConfirm" /> |
---|
416 | <button id="controlSave" accesskey="S" class="control" type="submit" name="action" value="Save changes" title="Save Changes"><span class="accessKey">S</span>ave</button> |
---|
417 | <button id="controlDelete" <%=(editBean.allowJS() ? "onclick=\"if (!confirm('Are you sure you want to delete?')) { return false; }\" " : "")%>accesskey="D" class="control" type="submit" name="action" value="Delete this proxy" title="Delete this Proxy"><span class="accessKey">D</span>elete</button> |
---|
418 | <button id="controlCancel" class="control" type="submit" name="action" value="" title="Cancel">Cancel</button> |
---|
419 | </div> |
---|
420 | </div> |
---|
421 | </div> |
---|
422 | </form> |
---|
423 | <div id="pageFooter"> |
---|
424 | </div> |
---|
425 | </body> |
---|
426 | </html> |
---|