Revision 108f16bf
Added by Carlos Eduardo Ramos almost 15 years ago
usr/local/www/vpn_ipsec.php | ||
---|---|---|
117 | 117 |
} |
118 | 118 |
} |
119 | 119 |
|
120 |
$pgtitle = array("VPN","IPsec");
|
|
120 |
$pgtitle = array(gettext("VPN"),gettext("IPsec"));
|
|
121 | 121 |
$statusurl = "diag_ipsec.php"; |
122 | 122 |
$logurl = "diag_logs_ipsec.php"; |
123 | 123 |
|
... | ... | |
132 | 132 |
if ($savemsg) |
133 | 133 |
print_info_box($savemsg); |
134 | 134 |
if ($pconfig['enable'] && is_subsystem_dirty('ipsec')) |
135 |
print_info_box_np("The IPsec tunnel configuration has been changed.<br>You must apply the changes in order for them to take effect.");
|
|
135 |
print_info_box_np(gettext("The IPsec tunnel configuration has been changed") . ".<br>" . gettext("You must apply the changes in order for them to take effect."));
|
|
136 | 136 |
?> |
137 | 137 |
<table width="100%" border="0" cellpadding="0" cellspacing="0"> |
138 | 138 |
<tr> |
139 | 139 |
<td class="tabnavtbl"> |
140 | 140 |
<?php |
141 | 141 |
$tab_array = array(); |
142 |
$tab_array[0] = array("Tunnels", true, "vpn_ipsec.php");
|
|
143 |
$tab_array[1] = array("Mobile clients", false, "vpn_ipsec_mobile.php");
|
|
144 |
$tab_array[2] = array("Pre-shared keys", false, "vpn_ipsec_keys.php");
|
|
142 |
$tab_array[0] = array(gettext("Tunnels"), true, "vpn_ipsec.php");
|
|
143 |
$tab_array[1] = array(gettext("Mobile clients"), false, "vpn_ipsec_mobile.php");
|
|
144 |
$tab_array[2] = array(gettext("Pre-shared keys"), false, "vpn_ipsec_keys.php");
|
|
145 | 145 |
display_top_tabs($tab_array); |
146 | 146 |
?> |
147 | 147 |
</td> |
... | ... | |
158 | 158 |
<input name="enable" type="checkbox" id="enable" value="yes" <?php if ($pconfig['enable']) echo "checked";?>> |
159 | 159 |
</td> |
160 | 160 |
<td> |
161 |
<strong>Enable IPsec</strong>
|
|
161 |
<strong><?=gettext("Enable IPsec"); ?></strong>
|
|
162 | 162 |
</td> |
163 | 163 |
</tr> |
164 | 164 |
</table> |
... | ... | |
166 | 166 |
</tr> |
167 | 167 |
<tr> |
168 | 168 |
<td> |
169 |
<input name="submit" type="submit" class="formbtn" value="Save">
|
|
169 |
<input name="submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>">
|
|
170 | 170 |
</td> |
171 | 171 |
</tr> |
172 | 172 |
</table> |
... | ... | |
201 | 201 |
if (!isset($ph1ent['mobile'])) |
202 | 202 |
echo $if."<br>".$ph1ent['remote-gateway']; |
203 | 203 |
else |
204 |
echo $if."<br><strong>Mobile Client</strong>";
|
|
204 |
echo $if."<br><strong>" . gettext("Mobile Client") . "</strong>";
|
|
205 | 205 |
?> |
206 | 206 |
<?=$spane;?> |
207 | 207 |
</td> |
... | ... | |
216 | 216 |
<?php |
217 | 217 |
if ($ph1ent['encryption-algorithm']['keylen']) { |
218 | 218 |
if ($ph1ent['encryption-algorithm']['keylen']=="auto") |
219 |
echo " (auto)";
|
|
219 |
echo " (" . gettext("auto") . ")";
|
|
220 | 220 |
else |
221 |
echo " ({$ph1ent['encryption-algorithm']['keylen']} bits)";
|
|
221 |
echo " ({$ph1ent['encryption-algorithm']['keylen']} " . gettext("bits") . ")";
|
|
222 | 222 |
} |
223 | 223 |
?> |
224 | 224 |
<?=$spane;?> |
... | ... | |
238 | 238 |
<tr> |
239 | 239 |
<td> |
240 | 240 |
<a href="vpn_ipsec_phase1.php?p1index=<?=$i;?>"> |
241 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="edit phase1 entry" width="17" height="17" border="0">
|
|
241 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit phase1 entry"); ?>" width="17" height="17" border="0">
|
|
242 | 242 |
</a> |
243 | 243 |
</td> |
244 | 244 |
<td> |
245 |
<a href="vpn_ipsec.php?act=delph1&p1index=<?=$i;?>" onclick="return confirm('Do you really want to delete this phase1 and all associated phase2 entries?')">
|
|
246 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="delete phase1 entry" width="17" height="17" border="0">
|
|
245 |
<a href="vpn_ipsec.php?act=delph1&p1index=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this phase1 and all associated phase2 entries?"); ?>')">
|
|
246 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete phase1 entry"); ?>" width="17" height="17" border="0">
|
|
247 | 247 |
</a> |
248 | 248 |
</td> |
249 | 249 |
</tr> |
... | ... | |
253 | 253 |
</td> |
254 | 254 |
<td> |
255 | 255 |
<a href="vpn_ipsec_phase1.php?dup=<?=$i;?>"> |
256 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="copy phase1 entry" width="17" height="17" border="0">
|
|
256 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("copy phase1 entry"); ?>" width="17" height="17" border="0">
|
|
257 | 257 |
</a> |
258 | 258 |
</td> |
259 | 259 |
</tr> |
... | ... | |
274 | 274 |
$phase2count++; |
275 | 275 |
} |
276 | 276 |
?> |
277 |
<input type="button" onClick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+"></input> - Show <?=$phase2count?> Phase-2 entries</a>
|
|
277 |
<input type="button" onClick="show_phase2('tdph2-<?=$i?>','shph2but-<?=$i?>')" value="+"></input> - <?php printf(gettext("Show %s Phase-2 entries"), $phase2count); ?></a>
|
|
278 | 278 |
</div> |
279 | 279 |
<table class="tabcont" width="100%" height="100%" border="0" cellspacing="0" cellpadding="0" id="tdph2-<?=$i?>" style="display:none"> |
280 | 280 |
<tr> |
281 |
<td class="listhdrr">Mode</td>
|
|
281 |
<td class="listhdrr"><?=gettext("Mode"); ?></td>
|
|
282 | 282 |
<?php if($ph2ent['mode'] == "tunnel"): ?> |
283 |
<td class="listhdrr">Local Subnet</td>
|
|
284 |
<td class="listhdrr">Remote Subnet</td>
|
|
283 |
<td class="listhdrr"><?=gettext("Local Subnet"); ?></td>
|
|
284 |
<td class="listhdrr"><?=gettext("Remote Subnet"); ?></td>
|
|
285 | 285 |
<?php endif; ?> |
286 |
<td class="listhdrr">P2 Protocol</td>
|
|
287 |
<td class="listhdrr">P2 Transforms</td>
|
|
288 |
<td class="listhdrr">P2 Auth Methods</td>
|
|
286 |
<td class="listhdrr"><?=gettext("P2 Protocol"); ?></td>
|
|
287 |
<td class="listhdrr"><?=gettext("P2 Transforms"); ?></td>
|
|
288 |
<td class="listhdrr"><?=gettext("P2 Auth Methods"); ?></td>
|
|
289 | 289 |
<td class ="list"> |
290 | 290 |
<a href="vpn_ipsec_phase2.php?ikeid=<?=$ph1ent['ikeid'];?><?php if (isset($ph1ent['mobile'])) echo "&mobile=true";?>"> |
291 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add phase2 entry" width="17" height="17" border="0">
|
|
291 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add phase2 entry"); ?>" width="17" height="17" border="0">
|
|
292 | 292 |
</a> |
293 | 293 |
</td> |
294 | 294 |
</tr> |
... | ... | |
346 | 346 |
echo $p2_ealgos[$ph2ea['name']]['name']; |
347 | 347 |
if ($ph2ea['keylen']) { |
348 | 348 |
if ($ph2ea['keylen']=="auto") |
349 |
echo " (auto)";
|
|
349 |
echo " (" . gettext("auto") . ")";
|
|
350 | 350 |
else |
351 |
echo " ({$ph2ea['keylen']} bits)";
|
|
351 |
echo " ({$ph2ea['keylen']} " . gettext("bits") . ")";
|
|
352 | 352 |
} |
353 | 353 |
} |
354 | 354 |
?> |
... | ... | |
368 | 368 |
</td> |
369 | 369 |
<td nowrap class="list"> |
370 | 370 |
<a href="vpn_ipsec_phase2.php?p2index=<?=$j;?>"> |
371 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="edit phase2 entry" width="17" height="17" border="0">
|
|
371 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" title="<?=gettext("edit phase2 entry"); ?>" width="17" height="17" border="0">
|
|
372 | 372 |
</a> |
373 |
<a href="vpn_ipsec.php?act=delph2&p2index=<?=$j;?>" onclick="return confirm('Do you really want to delete this phase2 entry?')">
|
|
374 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="delete phase2 entry" width="17" height="17" border="0">
|
|
373 |
<a href="vpn_ipsec.php?act=delph2&p2index=<?=$j;?>" onclick="return confirm('<?=gettext("Do you really want to delete this phase2 entry?"); ?>')">
|
|
374 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" title="<?=gettext("delete phase2 entry"); ?>" width="17" height="17" border="0">
|
|
375 | 375 |
</a> |
376 | 376 |
</td> |
377 | 377 |
</tr> |
... | ... | |
402 | 402 |
<td width="17"></td> |
403 | 403 |
<td> |
404 | 404 |
<a href="vpn_ipsec_phase1.php"> |
405 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="add phase1 entry" width="17" height="17" border="0">
|
|
405 |
<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" title="<?=gettext("add phase1 entry"); ?>" width="17" height="17" border="0">
|
|
406 | 406 |
</a> |
407 | 407 |
</td> |
408 | 408 |
</tr> |
... | ... | |
414 | 414 |
<p> |
415 | 415 |
<span class="vexpl"> |
416 | 416 |
<span class="red"> |
417 |
<strong>Note:<br></strong>
|
|
417 |
<strong><?=gettext("Note"); ?>:<br></strong>
|
|
418 | 418 |
</span> |
419 |
You can check your IPsec status at <a href="diag_ipsec.php">Status:IPsec</a>.
|
|
419 |
<?=gettext("You can check your IPsec status at"); ?> <a href="diag_ipsec.php"><?=gettext("Status:IPsec"); ?></a>.
|
|
420 | 420 |
</span> |
421 | 421 |
</p> |
422 | 422 |
</td> |
... | ... | |
446 | 446 |
$mobile = "&mobile=true"; |
447 | 447 |
echo <<<EOF |
448 | 448 |
<tr> |
449 |
<td class="listhdrr">Remote Gateway</td>
|
|
450 |
<td class="listhdrr">Mode</td>
|
|
451 |
<td class="listhdrr">P1 Protocol</td>
|
|
452 |
<td class="listhdrr">P1 Transforms</td>
|
|
453 |
<td class="listhdrr">P1 Description</td>
|
|
449 |
<td class="listhdrr"><?=gettext("Remote Gateway"); ?></td>
|
|
450 |
<td class="listhdrr"><?=gettext("Mode"); ?></td>
|
|
451 |
<td class="listhdrr"><?=gettext("P1 Protocol"); ?></td>
|
|
452 |
<td class="listhdrr"><?=gettext("P1 Transforms"); ?></td>
|
|
453 |
<td class="listhdrr"><?=gettext("P1 Description"); ?></td>
|
|
454 | 454 |
<td class ="list"> |
455 | 455 |
</td> |
456 | 456 |
</tr> |
Also available in: Unified diff
Implement gettext() calls on vpn_ipsec.php