From 07cf2c4b20230ddedee1bf9dddc1e7cd407385f5 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 5 Feb 2015 10:02:24 -0200 Subject: Packages repo cleanup: - Drop support for pfSense < 2 - Remove archive/, old files can be reached using git - Remove old and unused packages - Move stale files from config subdir to a package subdir --- config/pfflowd/pfflowd.xml | 143 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 143 insertions(+) create mode 100644 config/pfflowd/pfflowd.xml (limited to 'config/pfflowd') diff --git a/config/pfflowd/pfflowd.xml b/config/pfflowd/pfflowd.xml new file mode 100644 index 00000000..2470e2b2 --- /dev/null +++ b/config/pfflowd/pfflowd.xml @@ -0,0 +1,143 @@ + + pfflowd + 0.8.3 pkg v1.0.1 + 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 + + + Source Hostname/IP + sourcehost + Specify the hostname or IP address that datagrams are to be sent from. The hostname/IP must be local to this system. + 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 + + + + + + + + + "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(); + +
-- cgit v1.2.3