softflowd0.9.8 pkg v1.0.1softflowd: Settingspkg_edit.php?xml=softflowd.xml&id=0softflowdsoftflowd.shsoftflowdNetflow export daemoninstalledpackages->package->$packagename->configuration->settingsInterfaceinterfaceinterfaces_selectionPick an interface from which to collect netflow data. A separate instance of softflowd will be launched for each interface.HosthostSpecify the host to which datagrams will be sent.inputPortportEnter the port to which datagrams will be sent.inputMax FlowsmaxflowsSpecify the maximum number of flows to concurrently track before older flows are expired. Default: 8192.inputNetflow versionversionSelect the desired version of the NetFlow protocol.select
"softflowd.sh",
"start" => $start,
"stop" => "/usr/bin/killall -9 softflowd"
)
);
restart_service("softflowd");
}
conf_mount_ro();
config_unlock();
}
function validate_form_softflowd($post, &$input_errors) {
if (($post['host'] == "") || !is_ipaddr($post['host']))
$input_errors[] = 'You must specify a valid ip address in the \'Host\' field';
if (($post['port'] == "") || !is_port($post['port']))
$input_errors[] = 'You must specify a valid port number in the \'Port\' field';
}
function cleanup_config_softflowd() {
global $a_pkg;
$pffconf = array();
if (is_array($a_pkg)) {
foreach($a_pkg as $cf) {
if ($cf['host'] != "") {
$pffconf = $cf;
}
}
}
$a_pkg = array();
$a_pkg[0] = $pffconf;
}
]]>
sync_package_softflowd();
validate_form_softflowd($_POST, $input_errors);
cleanup_config_softflowd();