Révision 0e7aad67
Ajouté par Ermal il y a plus de 9 ans
usr/local/www/vpn_ipsec_phase1.php | ||
---|---|---|
107 | 107 |
$pconfig['descr'] = $a_phase1[$p1index]['descr']; |
108 | 108 |
$pconfig['nat_traversal'] = $a_phase1[$p1index]['nat_traversal']; |
109 | 109 |
|
110 |
if (isset($a_phase1[$p1index]['reauth_enable'])) |
|
111 |
$pconfig['reauth_enable'] = true; |
|
112 |
if (isset($a_phase1[$p1index]['rekey_enable'])) |
|
113 |
$pconfig['rekey_enable'] = true; |
|
114 |
|
|
110 | 115 |
if ($a_phase1[$p1index]['dpd_delay'] && $a_phase1[$p1index]['dpd_maxfail']) { |
111 | 116 |
$pconfig['dpd_enable'] = true; |
112 | 117 |
$pconfig['dpd_delay'] = $a_phase1[$p1index]['dpd_delay']; |
... | ... | |
128 | 133 |
$pconfig['lifetime'] = "28800"; |
129 | 134 |
$pconfig['nat_traversal'] = "on"; |
130 | 135 |
$pconfig['dpd_enable'] = true; |
136 |
$pconfig['rekey_enable'] = true; |
|
137 |
$pconfig['reauth_enable'] = true; |
|
131 | 138 |
$pconfig['iketype'] = "ikev1"; |
132 | 139 |
|
133 | 140 |
/* mobile client */ |
... | ... | |
352 | 359 |
$ph1ent['descr'] = $pconfig['descr']; |
353 | 360 |
$ph1ent['nat_traversal'] = $pconfig['nat_traversal']; |
354 | 361 |
|
362 |
if (isset($pconfig['reauth_enable'])) |
|
363 |
$ph1ent['reauth_enable'] = true; |
|
364 |
if (isset($pconfig['rekey_enable'])) |
|
365 |
$ph1ent['rekey_enable'] = true; |
|
366 |
|
|
355 | 367 |
if (isset($pconfig['dpd_enable'])) { |
356 | 368 |
$ph1ent['dpd_delay'] = $pconfig['dpd_delay']; |
357 | 369 |
$ph1ent['dpd_maxfail'] = $pconfig['dpd_maxfail']; |
... | ... | |
832 | 844 |
<tr> |
833 | 845 |
<td colspan="2" valign="top" class="listtopic"><?=gettext("Advanced Options"); ?></td> |
834 | 846 |
</tr> |
847 |
<tr> |
|
848 |
<td width="22%" valign="top" class="vncell"><?=gettext("Rekey");?></td> |
|
849 |
<td width="78%" class="vtable"> |
|
850 |
<input name="rekey_enable" type="checkbox" id="rekey_enable" value="yes" <?php if (isset($pconfig['rekey_enable'])) echo "checked=\"checked\""; ?> /> |
|
851 |
<?=gettext("Whether a connection should be renegotiated when it is about to expire."); ?><br /> |
|
852 |
</td> |
|
853 |
</tr> |
|
854 |
<tr> |
|
855 |
<td width="22%" valign="top" class="vncell"><?=gettext("Reauth");?></td> |
|
856 |
<td width="78%" class="vtable"> |
|
857 |
<input name="reauth_enable" type="checkbox" id="reauth_enable" value="yes" <?php if (isset($pconfig['reauth_enable'])) echo "checked=\"checked\""; ?> /> |
|
858 |
<?=gettext("whether rekeying of an IKE_SA should also reauthenticate the peer. In IKEv1, reauthentication is always don.."); ?><br /> |
|
859 |
</td> |
|
860 |
</tr> |
|
835 | 861 |
<tr> |
836 | 862 |
<td width="22%" valign="top" class="vncell"><?=gettext("NAT Traversal"); ?></td> |
837 | 863 |
<td width="78%" class="vtable"> |
Formats disponibles : Unified diff
Provide Advanced Options for controlling rekey and reauth, might be usable with iOS devices