-
-
- |
-
- |
-
-
- |
-
- =empty($ph1ent['protocol']) || $ph1ent['protocol'] == "inet" ? "IPv4" : "IPv6"; ?>
- 'IKE', 'ikev2' => 'IKEv2', 'ike' => 'auto'); ?>
- =!empty($ph1ent['iketype']) && isset($ph1ent_type[$ph1ent['iketype']]) ? $ph1ent_type[$ph1ent['iketype']] :"" ;?>
- |
-
- $carpip) {
- $iflabels[$cif] = $carpip." (".get_vip_descr($carpip).")";
- }
-
- $aliaslist = get_configured_ip_aliases_list();
- foreach ($aliaslist as $aliasip => $aliasif) {
- $iflabels[$aliasip] = $aliasip." (".get_vip_descr($aliasip).")";
- }
- $if = $iflabels[$ph1ent['interface']];
- } else {
- $if = "WAN";
- }?>
- =htmlspecialchars($if);?>
- =!isset($ph1ent['mobile'])?
- $ph1ent['remote-gateway']
- :
- "" . gettext("Mobile Client") . "";
- ?>
- |
-
- =htmlspecialchars($ph1ent['mode']);?>
- |
-
- =$p1_ealgos[$ph1ent['encryption-algorithm']['name']]['name'];?>
- +
-
- =strtoupper($ph1ent['hash-algorithm']);?>
-
- + =gettext("DH Group"); ?> = $ph1ent['dhgroup'] ?>
-
- |
-
- = html_safe($p1_authentication_methods[$ph1ent['authentication_method']]['name']) ?>
- |
-
- = $ph1ent['descr'] ?>
- |
-
- " class="btn btn-primary btn-xs"
- title="=gettext("add phase 2 entry"); ?>" data-toggle="tooltip">
-
-
-
-
-
-
-
-
-
-
-
-
- |
-
-
- $ph2ent) :
- if ($ph2ent['ikeid'] != $ph1ent['ikeid']) {
- continue;
- }?>
-
- |
-
- |
-
-
- |
-
- =$p2_protos[$ph2ent['protocol']];?>
- =isset($ph2ent['mode']) ? array_search($ph2ent['mode'], array("IPv4 tunnel" => "tunnel", "IPv6 tunnel" => "tunnel6", "transport" => "transport", "Route-based" => "route-based")) : ""; ?>
- |
-
-
- =ipsec_idinfo_to_text($ph2ent['localid']); ?>
- |
-
- =ipsec_idinfo_to_text($ph2ent['remoteid']); ?>
- |
-
- =$ph2ent['tunnel_local'];?> |
- =$ph2ent['tunnel_remote'];?> |
-
- |
- |
-
-
- $ph2ea) {
- if ($k > 0) {
- echo ", ";
- }
- echo $p2_ealgos[$ph2ea['name']]['name'];
- if (!empty($ph2ea['keylen'])) {
- if ($ph2ea['keylen']=="auto") {
- echo " (" . gettext("auto") . ")";
- } else {
- echo " ({$ph2ea['keylen']} " . gettext("bits") . ")";
- }
- }
- }
- }?>
- +
- $ph2ha) {
- if ($k) {
- echo ", ";
- }
- echo $p2_halgos[$ph2ha];
- }
- }?>
- +
- =isset($ph2ent['pfsgroup']) ? $dhgroups[$ph2ent['pfsgroup']] : gettext("off"); ?>
- |
-
- |
-
- =$ph2ent['descr'];?>
- |
-
-
-
-
-
-
-
-
-
- |
-
-
-
- |
- |
-
- " data-toggle="tooltip"
- class="btn btn-primary btn-xs">
-
-
-
-
- |
-
-
- |
- />
- =gettext("Enable IPsec"); ?>
- |
-
-
- |
-
- |
-
-
-