Revision 71d61aa5
Added by Jim Pingle over 15 years ago
usr/local/www/vpn_ipsec_phase1.php | ||
---|---|---|
442 | 442 |
$tab_array = array(); |
443 | 443 |
$tab_array[0] = array("Tunnels", true, "vpn_ipsec.php"); |
444 | 444 |
$tab_array[1] = array("Mobile clients", false, "vpn_ipsec_mobile.php"); |
445 |
$tab_array[2] = array("Logs", false, "diag_logs_ipsec.php"); |
|
445 |
$tab_array[2] = array("Pre-shared keys", false, "vpn_ipsec_keys.php"); |
|
446 |
$tab_array[3] = array("Logs", false, "diag_logs_ipsec.php"); |
|
446 | 447 |
display_top_tabs($tab_array); |
447 | 448 |
?> |
448 | 449 |
</td> |
... | ... | |
518 | 519 |
Phase 1 proposal (Authentication) |
519 | 520 |
</td> |
520 | 521 |
</tr> |
522 |
<tr> |
|
523 |
<td width="22%" valign="top" class="vncellreq">Authentication method</td> |
|
524 |
<td width="78%" class="vtable"> |
|
525 |
<select name="authentication_method" class="formselect" onChange="methodsel_change()"> |
|
526 |
<?php |
|
527 |
foreach ($p1_authentication_methods as $method_type => $method_params): |
|
528 |
if (!$pconfig['mobile'] && $method_params['mobile']) |
|
529 |
continue; |
|
530 |
?> |
|
531 |
<option value="<?=$method_type;?>" <?php if ($method_type == $pconfig['authentication_method']) echo "selected"; ?>> |
|
532 |
<?=htmlspecialchars($method_params['name']);?> |
|
533 |
</option> |
|
534 |
<?php endforeach; ?> |
|
535 |
</select> |
|
536 |
<br> |
|
537 |
<span class="vexpl"> |
|
538 |
Must match the setting chosen on the remote side. |
|
539 |
</span> |
|
540 |
</td> |
|
541 |
</tr> |
|
521 | 542 |
<tr> |
522 | 543 |
<td width="22%" valign="top" class="vncellreq">Negotiation mode</td> |
523 | 544 |
<td width="78%" class="vtable"> |
... | ... | |
563 | 584 |
<input name="peerid_data" type="text" class="formfld unknown" id="peerid_data" size="30" value="<?=$pconfig['peerid_data'];?>"> |
564 | 585 |
</td> |
565 | 586 |
</tr> |
587 |
<tr id="opt_psk"> |
|
588 |
<td width="22%" valign="top" class="vncellreq">Pre-Shared Key</td> |
|
589 |
<td width="78%" class="vtable"> |
|
590 |
<?=$mandfldhtml;?> |
|
591 |
<input name="pskey" type="text" class="formfld unknown" id="pskey" size="40" value="<?=htmlspecialchars($pconfig['pskey']);?>"> |
|
592 |
<span class="vexpl"> |
|
593 |
<br> |
|
594 |
Input your pre-shared key string. |
|
595 |
</span> |
|
596 |
</td> |
|
597 |
</tr> |
|
566 | 598 |
<tr> |
567 | 599 |
<td width="22%" valign="top" class="vncellreq">Encryption algorithm</td> |
568 | 600 |
<td width="78%" class="vtable"> |
... | ... | |
623 | 655 |
seconds |
624 | 656 |
</td> |
625 | 657 |
</tr> |
626 |
<tr> |
|
627 |
<td width="22%" valign="top" class="vncellreq">Authentication method</td> |
|
628 |
<td width="78%" class="vtable"> |
|
629 |
<select name="authentication_method" class="formselect" onChange="methodsel_change()"> |
|
630 |
<?php |
|
631 |
foreach ($p1_authentication_methods as $method_type => $method_params): |
|
632 |
if (!$pconfig['mobile'] && $method_params['mobile']) |
|
633 |
continue; |
|
634 |
?> |
|
635 |
<option value="<?=$method_type;?>" <?php if ($method_type == $pconfig['authentication_method']) echo "selected"; ?>> |
|
636 |
<?=htmlspecialchars($method_params['name']);?> |
|
637 |
</option> |
|
638 |
<?php endforeach; ?> |
|
639 |
</select> |
|
640 |
<br> |
|
641 |
<span class="vexpl"> |
|
642 |
Must match the setting chosen on the remote side. |
|
643 |
</span> |
|
644 |
</td> |
|
645 |
</tr> |
|
646 |
<tr id="opt_psk"> |
|
647 |
<td width="22%" valign="top" class="vncellreq">Pre-Shared Key</td> |
|
648 |
<td width="78%" class="vtable"> |
|
649 |
<?=$mandfldhtml;?> |
|
650 |
<input name="pskey" type="text" class="formfld unknown" id="pskey" size="40" value="<?=htmlspecialchars($pconfig['pskey']);?>"> |
|
651 |
<span class="vexpl"> |
|
652 |
<br> |
|
653 |
Input your pre-shared key string. |
|
654 |
</span> |
|
655 |
</td> |
|
656 |
</tr> |
|
657 | 658 |
<tr id="opt_cert"> |
658 | 659 |
<td width="22%" valign="top" class="vncellreq">My Certificate</td> |
659 | 660 |
<td width="78%" class="vtable"> |
Also available in: Unified diff
Reorder Auth. Method and PSK field to a more logical sequence. Part of ticket #108.