pfflowd0.8pfflowd: 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/ip that datagrams are to be sent from. The hostname/ip should be from local installation ip.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
function sync_package_pfflowd() {
conf_mount_rw();
config_lock();
global $config;
foreach($config['installedpackages']['pfflowd']['config'] as $cf) {
if($cf['host'] != "") {
$start = "\n/sbin/ifconfig pfsync0 up\n";
$start .= "/usr/local/sbin/pfflowd ";
$start .= " -n {$cf['host']}";
if($cf['port'] != "")
$start .= ":{$cf['port']}";
if(!empty($cf['sourcehost']))
$start .= " -s {$cf['sourcehost']} ";
if($cf['direction'] != "")
$start .= " -S {$cf['direction']}";
if($cf['version'] != "")
$start .= " -v {$cf['version']}";
write_rcfile(array(
"file" => "pfflowd.sh",
"start" => $start,
"stop" => "/usr/bin/killall pfflowd"
)
);
restart_service("pfflowd");
break;
}
}
conf_mount_ro();
config_unlock();
}
sync_package_pfflowd();