array ( 'srcid' => '172.27.0.0/16', 'dstid' => '172.21.2.0/24', 'dir' => 'in' , 'proto' => 'esp', 'dst' => '184.57.8.247', 'src' => '208.123.73.7', 'reqid' => 'nique:1' ), 1 => array ( 'srcid' => '172.21.2.0/24', 'dstid' => '172.27.0.0/16', 'dir' => 'out', 'proto' => 'esp', 'dst' => '208.123.73.7', 'src' => '184.57.8.247', 'reqid' => 'nique:1' ) ); } else $spd = ipsec_dump_spd(); $tab_array = array(); $tab_array[0] = array(gettext("Overview"), false, "diag_ipsec.php"); $tab_array[1] = array(gettext("Leases"), false, "diag_ipsec_leases.php"); $tab_array[2] = array(gettext("SAD"), false, "diag_ipsec_sad.php"); $tab_array[3] = array(gettext("SPD"), true, "diag_ipsec_spd.php"); $tab_array[4] = array(gettext("Logs"), false, "diag_logs.php?logfile=ipsec"); display_top_tabs($tab_array); if (count($spd)){ ?>
= gettext("Source"); ?> | = gettext("Destination"); ?> | = gettext("Direction"); ?> | = gettext("Protocol"); ?> | = gettext("Tunnel endpoints"); ?> |
---|---|---|---|---|
=htmlspecialchars($sp['srcid'])?> | =htmlspecialchars($sp['dstid'])?> | =$dirstr ?> | =htmlspecialchars(strtoupper($sp['proto']))?> | =htmlspecialchars($sp['src'])?> -> =htmlspecialchars($sp['dst'])?> |