pfflowd1.0.4Services: pfflowd Settingspkg_edit.php?xml=pfflowd.xmlpfflowdpfflowd.shpfflowdNetflow Export Daemoninstalledpackages->package->$packagename->configuration->settings/etc/inc/priv/https://packages.pfsense.org/packages/config/pfflowd/pfflowd.priv.incEnable pfflowdenabledCheck this to enable pfflowd daemon.checkboxDestination HosthostSpecify the IP address of the host that datagrams are to be sent to.inputDestination PortportEnter the port that datagrams are to be sent to.inputSource IPsourcehost
The 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"));
if (is_service_running("pfflowd")) {
restart_service("pfflowd");
} else {
start_service("pfflowd");
}
} else {
if (is_service_running("pfflowd")) {
stop_service("pfflowd");
}
unlink_if_exists("/usr/local/etc/rc.d/pfflowd.sh");
}
conf_mount_ro();
}
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 \'Destination Host\' field';
}
if ($post['port'] != "" && !is_port($post['port'])) {
$input_errors[] = 'You must specify a valid port number in the \'Destination Port\' field';
}
if ($post['sourcehost'] != "" && !is_ipaddr($post['sourcehost'])) {
$input_errors[] = 'You must specify a valid IP address in the \'Source IP\' field';
}
}
]]>
sync_package_pfflowd();
validate_form_pfflowd($_POST, $input_errors);