From 8aff0dc471c6fc36edf9d7b2061e943fa91c4329 Mon Sep 17 00:00:00 2001 From: Chris Buechler Date: Mon, 31 Mar 2008 23:53:42 +0000 Subject: add missing pfflowd package file --- packages/pfflowd.xml | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 115 insertions(+) create mode 100644 packages/pfflowd.xml (limited to 'packages') diff --git a/packages/pfflowd.xml b/packages/pfflowd.xml new file mode 100644 index 00000000..0a1798e5 --- /dev/null +++ b/packages/pfflowd.xml @@ -0,0 +1,115 @@ + + pfflowd + 0.6 + pfflowd: Settings + pkg_edit.php?xml=pfflowd.xml&id=0 + + pfflowd + Modify pfflowd settings. +
Services
+ pfflowd.xml + /pkg_edit.php?xml=pfflowd.xml&id=0 +
+ + pfflowd + pfflowd.sh + pfflowd + + installedpackages->package->$packagename->configuration->settings + + + Host + host + Specify the host that datagrams are to be sent to. + input + + + Port + port + Enter the port that datagrams are to be sent to. + input + + + pf rule direction restriction + direction + Restrict creation of flow records to states matching a certain direction (in, out, or any). + select + + + + + + + + Netflow version + version + Select 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($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(); + +
+ -- cgit v1.2.3