$pconfig['dst'] = "any"; } /* Allow the FloatingRules to work */ $if = $pconfig['interface']; if (isset($_GET['dup']) && is_numericint($_GET['dup'])) { unset($id); } read_altq_config(); /* XXX: */ $qlist =& get_unique_queue_list(); read_dummynet_config(); /* XXX: */ $dnqlist =& get_unique_dnqueue_list(); read_layer7_config(); $l7clist =& get_l7_unique_list(); $a_gatewaygroups = return_gateway_groups_array(); if ($_POST) { unset($input_errors); if (isset($a_filter[$id]['associated-rule-id'])) { $_POST['proto'] = $pconfig['proto']; if ($pconfig['proto'] == "icmp") { $_POST['icmptype'] = $pconfig['icmptype']; } } if ($_POST['ipprotocol'] != "" && $_POST['gateway'] != "") { if (is_array($config['gateways']['gateway_group'])) { foreach ($config['gateways']['gateway_group'] as $gw_group) { if ($gw_group['name'] == $_POST['gateway']) { $family = $a_gatewaygroups[$_POST['gateway']]['ipprotocol']; if ($_POST['ipprotocol'] == $family) { continue;
?> '"> <td class="listlr"> <?php $iflist = get_configured_interface_with_descr(); foreach ($iflist as $if => $ifdesc) { if ($dyndns['interface'] == $if) { if (!isset($dyndns['enable'])) { echo "<span class=\"gray\">{$ifdesc}</span>"; } else { echo "{$ifdesc}"; } break; } } $groupslist = return_gateway_groups_array(); foreach ($groupslist as $if => $group) { if ($dyndns['interface'] == $if) { if (!isset($dyndns['enable'])) { echo "<span class=\"gray\">{$if}</span>"; } else { echo "{$if}"; } break; } } ?> </td> <td class="listr"> <?php $types = explode(",", DYNDNS_PROVIDER_DESCRIPTIONS);
function build_if_list() { $list = array(); $iflist = get_configured_interface_with_descr(); foreach ($iflist as $if => $ifdesc) { $list[$if] = $ifdesc; } unset($iflist); $grouplist = return_gateway_groups_array(); foreach ($grouplist as $name => $group) { $list[$name] = 'GW Group ' . $name; } unset($grouplist); return $list; }
function build_if_list() { $list = array(); $interfaces = get_configured_interface_with_descr(); $carplist = get_configured_carp_interface_list(); foreach ($carplist as $cif => $carpip) { $interfaces[$cif . '|' . $carpip] = $carpip . " (" . get_vip_descr($carpip) . ")"; } $aliaslist = get_configured_ip_aliases_list(); foreach ($aliaslist as $aliasip => $aliasif) { $interfaces[$aliasif . '|' . $aliasip] = $aliasip . " (" . get_vip_descr($aliasip) . ")"; } $grouplist = return_gateway_groups_array(); foreach ($grouplist as $name => $group) { if ($group['ipprotocol'] != inet) { continue; } if ($group[0]['vip'] != "") { $vipif = $group[0]['vip']; } else { $vipif = $group[0]['int']; } $interfaces[$name] = "GW Group {$name}"; } $interfaces['lo0'] = "Localhost"; $interfaces['any'] = "any"; foreach ($interfaces as $iface => $ifacename) { $list[$iface] = $ifacename; } return $list; }
function build_interface_list() { $interfaces = get_configured_interface_with_descr(); $viplist = get_configured_vip_list(); foreach ($viplist as $vip => $address) { $interfaces[$vip] = $address; if (get_vip_descr($address)) { $interfaces[$vip] .= " (" . get_vip_descr($address) . ")"; } } $grouplist = return_gateway_groups_array(); foreach ($grouplist as $name => $group) { if ($group[0]['vip'] != "") { $vipif = $group[0]['vip']; } else { $vipif = $group[0]['int']; } $interfaces[$name] = sprintf(gettext("GW Group %s"), $name); } return $interfaces; }
function build_interface_list() { $interfaces = get_configured_interface_with_descr(); $carplist = get_configured_carp_interface_list(); foreach ($carplist as $cif => $carpip) { $interfaces[$cif] = $carpip . " (" . get_vip_descr($carpip) . ")"; } $aliaslist = get_configured_ip_aliases_list(); foreach ($aliaslist as $aliasip => $aliasif) { $interfaces[$aliasip] = $aliasip . " (" . get_vip_descr($aliasip) . ")"; } $grouplist = return_gateway_groups_array(); foreach ($grouplist as $name => $group) { if ($group[0]['vip'] != "") { $vipif = $group[0]['vip']; } else { $vipif = $group[0]['int']; } $interfaces[$name] = "GW Group {$name}"; } return $interfaces; }