This repository has been archived by the owner on Jul 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathUnbound.asp
700 lines (635 loc) · 41.3 KB
/
Unbound.asp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- UnboundUI-by-dave14305 -->
<html xmlns="http://www.w3.org/1999/xhtml">
<html xmlns:v>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta HTTP-EQUIV="Expires" CONTENT="-1">
<link rel="shortcut icon" href="images/favicon.png">
<link rel="icon" href="images/favicon.png">
<title>Unbound</title>
<link rel="stylesheet" type="text/css" href="index_style.css">
<link rel="stylesheet" type="text/css" href="form_style.css">
<script language="JavaScript" type="text/javascript" src="/state.js"></script>
<script language="JavaScript" type="text/javascript" src="/general.js"></script>
<script language="JavaScript" type="text/javascript" src="/popup.js"></script>
<script language="JavaScript" type="text/javascript" src="/help.js"></script>
<script language="JavaScript" type="text/javascript" src="/detect.js"></script>
<script language="JavaScript" type="text/javascript" src="/validator.js"></script>
<script language="JavaScript" type="text/javascript" src="/tmmenu.js"></script>
<script language="JavaScript" type="text/javascript" src="/base64.js"></script>
<script language="JavaScript" type="text/javascript" src="/js/jquery.js"></script>
<script>
var custom_settings = <% get_custom_settings(); %>;
function YazHint(hintid) {
var tag_name = document.getElementsByTagName('a');
for (var i = 0; i < tag_name.length; i++) {
tag_name[i].onmouseout = nd;
}
hinttext = "Help text not yet defined";
if (hintid == 1) hinttext = "Choose which IP protocol Unbound uses for external communication. Prefer IPv6 uses both IPv4 and IPv6 but gives preference to IPv6.";
if (hintid == 2) hinttext = "UDP and TCP port that Unbound will listen on using the loopback interface. Avoid ports that are already in use by other services.";
if (hintid == 3) hinttext = "Choose specific outgoing interfaces, such as VPN client tunnels, to protect outbound DNS queries from snooping.";
if (hintid == 5) hinttext = "Allow these domains to fail DNSSEC validation, e.g. before the clock is synced.";
if (hintid == 7) hinttext = "Select the desination for Unbound log output. If using logging level greater than 1, use a logfile.";
if (hintid == 8) hinttext = "The verbosity number, level 0 means no verbosity, only errors. Level 1 gives operational information. Level 2 gives detailed operational information. Level 3 gives query level information, output per query. Level 4 gives algorithm level information. Level 5 logs client identification for cache misses.";
if (hintid == 9) hinttext = "Enable extra log details for queries (log-tag-queryreply) and upstream failures (log-servfail).";
if (hintid == 10) hinttext = "Write statistics to the chosen log destination every X minutes. Zero to disable. Maximum 1440 (24 hours). 60 is typical.";
if (hintid == 11) hinttext = "Enable more detailed statistics collection, viewable in unbound-control stats.";
if (hintid == 12) hinttext = "Number of bytes size to advertise as the EDNS reassembly buffer size. This is the value put into datagrams over UDP towards peers. Default is 4096 which is RFC recommended. If you have fragmentation reassembly problems, usually seen as timeouts, then a value of 1472 can fix it.";
if (hintid == 13) hinttext = "Size various performance-related resources (e.g. cache sizes, TCP buffers).";
if (hintid == 14) hinttext = "Unbound has many options for recursion: passive - slower until cache fills but kind on CPU load. default - Unbound built-in defaults. aggressive - uses prefetching to handle more requests quickly.";
if (hintid == 15) hinttext = "Time to live minimum for RRsets and messages in the cache. If the minimum kicks in, the data is cached for longer than the domain owner intended, and thus fewer queries are made to lookup the data. Zero makes sure the data in the cache is as the domain owner intended. Higher values, especially more than an hour or so, can lead to trouble as the data in the cache does not match up with the actual data any more.";
if (hintid == 16) hinttext = "Send minimum amount of information to upstream servers to enhance privacy.";
if (hintid == 17) hinttext = "Download and cache the root (.) zone for faster lookups.";
if (hintid == 18) hinttext = "Preserve Unbound's cache during restarts.";
if (hintid == 20) hinttext = "Allow these domains, and all their subdomains to contain private addresses. Give multiple times to allow multiple domain names to contain private addresses.";
if (hintid == 23) hinttext = "Place unbound.conf options to add to the server: clause.";
if (hintid == 24) hinttext = "Place unbound.conf options to add outside the server: clause (e.g. local-zone, stub-zone, remote-control, etc.)";
return overlib(hinttext, HAUTO, VAUTO);
}
function SetCurrentPage() {
document.form.next_page.value = window.location.pathname.substring(1);
document.form.current_page.value = window.location.pathname.substring(1);
}
function showCacheRAM(cacheoption) {
if (cacheoption == "default")
document.getElementById("resourcesize").innerHTML = "RAM: 12 MB";
if (cacheoption == "small")
document.getElementById("resourcesize").innerHTML = "RAM: 4 MB";
if (cacheoption == "medium")
document.getElementById("resourcesize").innerHTML = "RAM: 8 MB";
if (cacheoption == "large")
document.getElementById("resourcesize").innerHTML = "RAM: 16 MB";
if (cacheoption == "xlarge")
document.getElementById("resourcesize").innerHTML = "RAM: 32 MB";
}
function SetOutgoingInterfaceOptions() {
var retval = 0;
if ( "<% nvram_get("vpn_client1_state"); %>" == "2" ) {
add_option(document.form.unbound_outiface, "VPN Client 1", "1", custom_settings.unbound_outiface == "1");
retval = 1;
}
if ( "<% nvram_get("vpn_client2_state"); %>" == "2" ) {
add_option(document.form.unbound_outiface, "VPN Client 2", "2", custom_settings.unbound_outiface == "2");
retval = 1;
}
if ( "<% nvram_get("vpn_client3_state"); %>" == "2" ) {
add_option(document.form.unbound_outiface, "VPN Client 3", "3", custom_settings.unbound_outiface == "3");
retval = 1;
}
if ( "<% nvram_get("vpn_client4_state"); %>" == "2" ) {
add_option(document.form.unbound_outiface, "VPN Client 4", "4", custom_settings.unbound_outiface == "4");
retval = 1;
}
if ( "<% nvram_get("vpn_client5_state"); %>" == "2" ) {
add_option(document.form.unbound_outiface, "VPN Client 5", "5", custom_settings.unbound_outiface == "5");
retval = 1;
}
return retval;
}
function initial() {
show_menu();
SetCurrentPage();
firmwarebuild = (<% nvram_get("buildno"); %>);
unbound_state = (<% sysinfo("pid.unbound"); %> > 0 ? 1 : 0);
dnssecenabled = (<% nvram_get("dnssec_enable"); %>);
dnsrebindenabled = (<% nvram_get("dns_norebind"); %>);
if (unbound_state > 0)
document.getElementById("unbound_status").innerHTML = "Status: Running";
else
document.getElementById("unbound_status").innerHTML = "Status: Stopped";
if (custom_settings.unbound_enable == undefined)
document.form.unbound_enable.value = "1";
else
document.form.unbound_enable.value = custom_settings.unbound_enable;
if (custom_settings.unbound_outiface == undefined)
document.form.unbound_outiface.value = "0";
else
document.form.unbound_outiface.value = custom_settings.unbound_outiface;
if (custom_settings.unbound_logdest == undefined)
document.form.unbound_logdest.value = "syslog";
else
document.form.unbound_logdest.value = custom_settings.unbound_logdest;
if (custom_settings.unbound_logextra == undefined)
document.form.unbound_logextra.value = "0";
else
document.form.unbound_logextra.value = custom_settings.unbound_logextra;
if (custom_settings.unbound_verbosity == undefined)
document.form.unbound_verbosity.value = "1";
else
document.form.unbound_verbosity.value = custom_settings.unbound_verbosity;
if (custom_settings.unbound_extended_stats == undefined)
document.form.unbound_extended_stats.value = "0";
else
document.form.unbound_extended_stats.value = custom_settings.unbound_extended_stats;
if (custom_settings.unbound_edns_size == undefined)
document.getElementById('unbound_edns_size').value = "1232";
else
document.getElementById('unbound_edns_size').value = custom_settings.unbound_edns_size;
if (custom_settings.unbound_listen_port == undefined)
document.getElementById('unbound_listen_port').value = "5653";
else
document.getElementById('unbound_listen_port').value = custom_settings.unbound_listen_port;
if (custom_settings.unbound_resource == undefined)
document.form.unbound_resource.value = "default";
else
document.form.unbound_resource.value = custom_settings.unbound_resource;
if (custom_settings.unbound_recursion == undefined)
document.form.unbound_recursion.value = "default";
else
document.form.unbound_recursion.value = custom_settings.unbound_recursion;
if (custom_settings.unbound_query_minimize == undefined)
document.form.unbound_query_minimize.value = "1";
else
document.form.unbound_query_minimize.value = custom_settings.unbound_query_minimize;
if (custom_settings.unbound_cache_root == undefined)
document.form.unbound_cache_root.value = "0";
else
document.form.unbound_cache_root.value = custom_settings.unbound_cache_root;
if (custom_settings.unbound_save_cache == undefined)
document.form.unbound_save_cache.value = "0"
else
document.form.unbound_save_cache.value = custom_settings.unbound_save_cache;
if (custom_settings.unbound_ttl_min == undefined)
document.getElementById('unbound_ttl_min').value = "0";
else
document.getElementById('unbound_ttl_min').value = custom_settings.unbound_ttl_min;
if (custom_settings.unbound_domain_insecure == undefined)
document.getElementById('unbound_domain_insecure').value = "";
else
document.getElementById('unbound_domain_insecure').value = Base64.decode(custom_settings.unbound_domain_insecure);
if (custom_settings.unbound_domain_rebindok == undefined)
document.getElementById('unbound_domain_rebindok').value = "";
else
document.getElementById('unbound_domain_rebindok').value = Base64.decode(custom_settings.unbound_domain_rebindok);
if (custom_settings.unbound_statslog == undefined)
document.form.unbound_statslog.value = "0";
else
document.form.unbound_statslog.value = custom_settings.unbound_statslog;
if (custom_settings.unbound_custom_server == undefined)
document.getElementById('unbound_custom_server').value = "";
else
document.getElementById('unbound_custom_server').value = Base64.decode(custom_settings.unbound_custom_server);
if (custom_settings.unbound_custom_extend == undefined)
document.getElementById('unbound_custom_extend').value = "";
else
document.getElementById('unbound_custom_extend').value = Base64.decode(custom_settings.unbound_custom_extend);
if (custom_settings.unbound_ui_version == undefined)
document.getElementById('unbound_ui_version').innerText = "N/A";
else
document.getElementById('unbound_ui_version').innerText = 'v' + custom_settings.unbound_ui_version;
var vpnclientsactive = SetOutgoingInterfaceOptions();
hide_outiface(vpnclientsactive);
hide_dnssec(dnssecenabled);
hide_dnsrebind(dnsrebindenabled);
showCacheRAM(document.form.unbound_resource.value);
}
function hide_dnssec(_value) {
showhide("dnssecdom_tr", (_value == "1"));
}
function hide_dnsrebind(_value) {
showhide("dnsrebdom_tr", (_value == "1"));
}
function hide_outiface(_value) {
showhide("outiface_tr", (_value == "1"));
}
function update_status(){
$.ajax({
url: '/ext/unboundui/detect_update.js',
dataType: 'script',
timeout: 3000,
error: function(xhr){
setTimeout('update_status();', 1000);
},
success: function(){
if ( verUpdateStatus == "InProgress" )
setTimeout('update_status();', 1000);
else {
document.getElementById("ver_check").disabled = false;
document.getElementById("ver_update_scan").style.display = "none";
if ( verUpdateStatus == "NoUpdate" ) {
document.getElementById("versionStatus").innerText = " You have the latest version.";
document.getElementById("versionStatus").style.display = "";
}
else if ( verUpdateStatus == "Error" ) {
document.getElementById("versionStatus").innerText = " Error getting remote version.";
document.getElementById("versionStatus").style.display = "";
}
else {
/* version update or hotfix available */
/* toggle update button */
document.getElementById("versionStatus").innerText = " " + verUpdateStatus + " available!";
document.getElementById("versionStatus").style.display = "";
document.getElementById("ver_check").style.display = "none";
document.getElementById("ver_update").style.display = "";
}
}
}
});
}
function checkForUpdate() {
document.getElementById("ver_check").disabled = true;
document.ver_check.action_script.value="start_ubcheckupdate"
document.ver_check.submit();
document.getElementById("versionStatus").style.display = "none";
document.getElementById("ver_update_scan").style.display = "";
setTimeout("update_status();", 2000);
}
function updateSelf() {
document.form.action_script.value = "start_ubupdate";
document.form.submit();
}
function applySettings() {
if ( firmwarebuild == "374.43" )
{
if (!validate_range(document.form.unbound_listen_port, 1, 65535)){
document.form.unbound_listen_port.focus();
return false;
}
if (!validate_range(document.form.unbound_statslog, 0, 1440)){
document.form.unbound_statslog.focus();
return false;
}
if (!validate_range(document.form.unbound_edns_size, 512, 4096)){
document.form.unbound_edns_size.focus();
return false;
}
if (!validate_range(document.form.unbound_ttl_min, 0, 1800)){
document.form.unbound_ttl_min.focus();
return false;
}
}
else
{
if (!validator.numberRange(document.form.unbound_listen_port, 1, 65535) ||
!validator.numberRange(document.form.unbound_statslog, 0, 1440) ||
!validator.numberRange(document.form.unbound_edns_size, 512, 4096) ||
!validator.numberRange(document.form.unbound_ttl_min, 0, 1800))
return false;
}
if (document.form.unbound_listen_port.value == '53') {
alert("Port 53 conflicts with dnsmasq. Choose another port.");
return false;
}
if ( document.form.unbound_enable.value != custom_settings.unbound_enable ||
document.getElementById('unbound_listen_port').value != custom_settings.unbound_listen_port
)
document.form.action_script.value += ";restart_dnsmasq";
/* Retrieve value from input fields, and store non-default values in object */
if (document.form.unbound_enable.value == "1")
delete custom_settings.unbound_enable;
else
custom_settings.unbound_enable = document.form.unbound_enable.value;
if (document.form.unbound_outiface.value == "0")
delete custom_settings.unbound_outiface;
else
custom_settings.unbound_outiface = document.form.unbound_outiface.value;
if (document.form.unbound_logdest.value == "syslog")
delete custom_settings.unbound_logdest;
else
custom_settings.unbound_logdest = document.form.unbound_logdest.value;
if (document.form.unbound_logextra.value == "0")
delete custom_settings.unbound_logextra;
else
custom_settings.unbound_logextra = document.form.unbound_logextra.value;
if (document.form.unbound_verbosity.value == "1")
delete custom_settings.unbound_verbosity;
else
custom_settings.unbound_verbosity = document.form.unbound_verbosity.value;
if (document.form.unbound_extended_stats.value == "0")
delete custom_settings.unbound_extended_stats;
else
custom_settings.unbound_extended_stats = document.form.unbound_extended_stats.value;
if (document.getElementById('unbound_edns_size').value == "1232")
delete custom_settings.unbound_edns_size;
else
custom_settings.unbound_edns_size = document.getElementById('unbound_edns_size').value;
if (document.getElementById('unbound_listen_port').value == "5653")
delete custom_settings.unbound_listen_port;
else
custom_settings.unbound_listen_port = document.getElementById('unbound_listen_port').value;
if (document.form.unbound_resource.value == "default")
delete custom_settings.unbound_resource;
else
custom_settings.unbound_resource = document.form.unbound_resource.value;
if (document.form.unbound_recursion.value == "default")
delete custom_settings.unbound_recursion;
else
custom_settings.unbound_recursion = document.form.unbound_recursion.value;
if (document.form.unbound_query_minimize.value == "1")
delete custom_settings.unbound_query_minimize;
else
custom_settings.unbound_query_minimize = document.form.unbound_query_minimize.value;
if (document.form.unbound_cache_root.value == "0")
delete custom_settings.unbound_cache_root;
else
custom_settings.unbound_cache_root = document.form.unbound_cache_root.value;
if (document.form.unbound_save_cache.value == "0")
delete custom_settings.unbound_save_cache;
else
custom_settings.unbound_save_cache = document.form.unbound_save_cache.value;
if (document.getElementById('unbound_ttl_min').value == "0")
delete custom_settings.unbound_ttl_min;
else
custom_settings.unbound_ttl_min = document.getElementById('unbound_ttl_min').value;
if (document.getElementById('unbound_domain_insecure').value == "")
delete custom_settings.unbound_domain_insecure;
else
custom_settings.unbound_domain_insecure = Base64.encode(document.getElementById('unbound_domain_insecure').value);
if (document.getElementById('unbound_domain_rebindok').value == "")
delete custom_settings.unbound_domain_rebindok;
else
custom_settings.unbound_domain_rebindok = Base64.encode(document.getElementById('unbound_domain_rebindok').value);
if (document.form.unbound_statslog.value == "0")
delete custom_settings.unbound_statslog;
else
custom_settings.unbound_statslog = document.form.unbound_statslog.value;
if (document.getElementById('unbound_custom_server').value == "")
delete custom_settings.unbound_custom_server;
else
custom_settings.unbound_custom_server = Base64.encode(document.getElementById('unbound_custom_server').value);
if (document.getElementById('unbound_custom_extend').value == "")
delete custom_settings.unbound_custom_extend;
else
custom_settings.unbound_custom_extend = Base64.encode(document.getElementById('unbound_custom_extend').value);
/* Store object as a string in the amng_custom hidden input field */
if (JSON.stringify(custom_settings).length < 8192) {
document.getElementById('amng_custom').value = JSON.stringify(custom_settings);
showLoading();
document.form.submit();
}
else
alert("Settings for all addons exceeds 8K limit! Cannot save!");
}
</script>
</head>
<body onload="initial();" class="bg">
<div id="TopBanner"></div>
<div id="Loading" class="popup_bg"></div>
<iframe name="hidden_frame" id="hidden_frame" src="" width="0" height="0" frameborder="0"></iframe>
<form method="post" name="form" action="start_apply.htm" target="hidden_frame">
<input type="hidden" name="current_page" value="">
<input type="hidden" name="next_page" value="">
<input type="hidden" name="group_id" value="">
<input type="hidden" name="modified" value="0">
<input type="hidden" name="action_mode" value="apply">
<input type="hidden" name="action_wait" value="5">
<input type="hidden" name="first_time" value="">
<input type="hidden" name="preferred_lang" id="preferred_lang" value="<% nvram_get(" preferred_lang "); %>">
<input type="hidden" name="firmver" value="<% nvram_get(" firmver "); %>">
<input type="hidden" name="amng_custom" id="amng_custom" value="">
<input type="hidden" name="action_script" value="restart_unbound">
<table class="content" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="17"> </td>
<td valign="top" width="202">
<div id="mainMenu"></div>
<div id="subMenu"></div>
</td>
<td valign="top">
<div id="tabMenu" class="submenuBlock"></div>
<table width="98%" border="0" align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="left" valign="top">
<table width="760px" border="0" cellpadding="5" cellspacing="0" bordercolor="#6b8fa3" class="FormTitle" id="FormTitle">
<tr>
<td bgcolor="#4D595D" colspan="3" valign="top">
<div> </div>
<div class="formfonttitle">Unbound DNS Recursive Resolver</div>
<div style="margin:10px 0 10px 5px;" class="splitLine"></div>
<div class="formfontdesc">Unbound is a validating, recursive, caching DNS resolver. It is designed to be fast and lean and incorporates modern features based on open standards.</div>
<table width="100%" border="1" align="center" cellpadding="4" cellspacing="0" bordercolor="#6b8fa3" class="FormTable">
<thead>
<tr>
<td colspan="2">Basic Configuration</td>
</tr>
</thead>
<tr>
<th>Enable Unbound</th>
<td>
<input type="radio" name="unbound_enable" class="input" value="1">Yes
<input type="radio" name="unbound_enable" class="input" value="0">No
<span id="unbound_status"></span>
</td>
</tr>
<th>Unbound-UI Version</th>
<td>
<span id="unbound_ui_version" style="margin-left:4px; color:#FFFFFF;"></span>
<input type="button" id="ver_check" class="button_gen" style="width:135px;height:24px;" onclick="checkForUpdate();" value="Check">
<input type="button" id="ver_update" class="button_gen" style="display:none;width:135px;height:24px;" onclick="updateSelf();" value="Update">
<img id="ver_update_scan" style="display:none;vertical-align:middle;" src="images/InternetScan.gif">
<span id="versionStatus" style="color:#FC0;display:none;"></span>
</td>
</tr>
<tr id="outiface_tr">
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(3);">WAN Interface</a></th>
<td>
<select name="unbound_outiface" class="input_option">
<option value="0">Any</option>
</select>
<span>Default: Any</span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(2);">Listen Port</a></th>
<td>
<input type="text" maxlength="5" class="input_6_table" id="unbound_listen_port" onKeyPress="return validator.isNumber(this,event);" value="0">
<span>Default: 5653</span>
</td>
</tr>
<thead>
<tr>
<td colspan="2">Log Configuration</td>
</tr>
</thead>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(7);">Log Destination</a></th>
<td>
<select name="unbound_logdest" class="input_option">
<option value="syslog">Syslog</option>
<option value="file">File</option>
</select>
<span>Default: Syslog</span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(8);">Logging Level</a></th>
<td>
<select name="unbound_verbosity" class="input_option">
<option value="0">0-Error</option>
<option value="1">1-Operational</option>
<option value="2">2-Detailed</option>
<option value="3">3-Query</option>
<option value="4">4-Algorithm</option>
<option value="5">5-Client</option>
</select>
<span>Default: 1</span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(9);">Enhanced Logging</a></th>
<td>
<input type="radio" name="unbound_logextra" class="input" value="1">Yes
<input type="radio" name="unbound_logextra" class="input" value="0">No
<span>Default: No</span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(10);">Send Stats to Log every</a></th>
<td>
<input type="text" maxlength="5" class="input_6_table" id="unbound_statslog" onKeyPress="return validator.isNumber(this,event);" value="0"> minute(s)
<span>(Disable : 0)</span>
</td>
</tr>
<tr>
<thead>
<tr>
<td colspan="2">Security Settings</td>
</tr>
</thead>
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,6);">Enable DNSSEC support</a></th>
<td>
<input type="radio" value="1" name="dnssec_enable" <% nvram_match( "dnssec_enable", "1", "checked"); %> disabled />Yes
<input type="radio" value="0" name="dnssec_enable" <% nvram_match( "dnssec_enable", "0", "checked"); %> disabled />No
<span>Click <a style="color:#FC0;text-decoration: underline;" href="Advanced_WAN_Content.asp">here</a> to manage.</span>
</td>
<tr id="dnssecdom_tr">
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(5);">Ignore DNSSEC Domains</a></th>
<td>
<textarea rows="1" class="textarea_ssh_table" style="height:auto" id="unbound_domain_insecure" spellcheck="false" name="unbound_domain_insecure" cols="50" maxlength="2249"></textarea>
</td>
</tr>
<th><a class="hintstyle" href="javascript:void(0);" onClick="openHint(50,9);">Enable DNS Rebind protection</a></th>
<td>
<input type="radio" value="1" name="dns_norebind" <% nvram_match( "dns_norebind", "1", "checked"); %> disabled />Yes
<input type="radio" value="0" name="dns_norebind" <% nvram_match( "dns_norebind", "0", "checked"); %> disabled />No
<span>Click <a style="color:#FC0;text-decoration: underline;" href="Advanced_WAN_Content.asp">here</a> to manage.</span>
</td>
<tr id="dnsrebdom_tr">
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(20);">Whitelisted rebind domains</a></th>
<td>
<textarea rows="1" class="textarea_ssh_table" style="height:auto" id="unbound_domain_rebindok" spellcheck="false" name="unbound_domain_rebindok" cols="50" maxlength="2249"></textarea>
</td>
</tr>
<thead>
<tr>
<td colspan="2">Advanced Settings</td>
</tr>
</thead>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(11);">Extended Statistics</a></th>
<td>
<input type="radio" name="unbound_extended_stats" class="input" value="1">Yes
<input type="radio" name="unbound_extended_stats" class="input" value="0">No
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(12);">EDNS Buffer Size</a></th>
<td>
<input type="text" maxlength="5" class="input_6_table" id="unbound_edns_size" onKeyPress="return validator.isNumber(this,event);" value="0"> bytes
<span>Default: 1232</span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(13);">Cache Sizing</a></th>
<td>
<select name="unbound_resource" class="input_option" onchange="showCacheRAM(this.value);">
<option value="default">Default</option>
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
<option value="xlarge">X-Large</option>
</select>
<span id="resourcesize">RAM: </span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(16);">QNAME Minimization</a></th>
<td>
<input type="radio" name="unbound_query_minimize" class="input" value="1">Yes
<input type="radio" name="unbound_query_minimize" class="input" value="0">No
</td>
</tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(14);">Recursion Style</a></th>
<td>
<select name="unbound_recursion" class="input_option">
<option value="default">Default</option>
<option value="passive">Passive</option>
<option value="aggressive">Aggressive</option>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(15);">Minimum TTL</a></th>
<td>
<input type="text" maxlength="4" class="input_6_table" id="unbound_ttl_min" onKeyPress="return validator.isNumber(this,event);" value="0"> seconds
<span>Default: 0 Max: 1800</span>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(17);">Cache root zone</a></th>
<td>
<input type="radio" name="unbound_cache_root" class="input" value="1">Yes
<input type="radio" name="unbound_cache_root" class="input" value="0">No
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(18);">Save cache on restart</a></th>
<td>
<input type="radio" name="unbound_save_cache" class="input" value="1">Yes
<input type="radio" name="unbound_save_cache" class="input" value="0">No
</td>
</tr>
<thead>
<tr>
<td colspan="2">Custom Configuration</td>
</tr>
</thead>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(23);">Custom server: configuration</a></th>
<td>
<textarea rows="5" class="textarea_ssh_table" style="height:auto" id="unbound_custom_server" spellcheck="false" name="unbound_custom_server" cols="50" maxlength="2249"></textarea>
</td>
</tr>
<tr>
<th><a class="hintstyle" href="javascript:void(0);" onclick="YazHint(24);">Custom extended configuration</a></th>
<td>
<textarea rows="5" class="textarea_ssh_table" style="height:auto" id="unbound_custom_extend" spellcheck="false" name="unbound_custom_extend" cols="50" maxlength="2249"></textarea>
</td>
</tr>
</table>
<div class="apply_gen">
<input name="button" type="button" class="button_gen" onclick="applySettings();" value="Apply" />
</div>
</form>
<div>
<table class="apply_gen">
<tr class="apply_gen" valign="top">
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
<td width="10" align="center" valign="top"></td>
</tr>
</table>
<form method="post" name="ver_check" action="/start_apply.htm" target="hidden_frame">
<input type="hidden" name="productid" value="<% nvram_get("productid"); %>">
<input type="hidden" name="current_page" value="">
<input type="hidden" name="next_page" value="">
<input type="hidden" name="action_mode" value="apply">
<input type="hidden" name="action_script" value="">
<input type="hidden" name="action_wait" value="">
</form>
<div id="footer"></div>
</body>
</html>