pfflowd1.0.3pfflowd: Settingspkg_edit.php?xml=pfflowd.xml&id=0pfflowdpfflowd.shpfflowdinstalledpackages->package->$packagename->configuration->settingsHosthostSpecify the host that datagrams are to be sent to.inputPortportEnter the port that datagrams are to be sent to.inputSource Hostname/IPsourcehostSpecify the hostname or IP address that datagrams are to be sent from. The hostname/IP must be local to this system.inputpf rule direction restrictiondirectionRestrict creation of flow records to states matching a certain direction (in, out, or any).selectNetflow versionversionSelect which version of the NetFlow protocol to use.select
"pfflowd.sh",
"start" => $start,
"stop" => "/usr/bin/killall pfflowd"
)
);
restart_service("pfflowd");
break;
}
}
conf_mount_ro();
config_unlock();
}
function validate_form_pfflowd($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_pfflowd() {
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_pfflowd();
validate_form_pfflowd($_POST, $input_errors);
cleanup_config_pfflowd();