diff options
Diffstat (limited to 'config')
-rw-r--r-- | config/pfflowd.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/config/pfflowd.xml b/config/pfflowd.xml index ecd26e34..1656dad5 100644 --- a/config/pfflowd.xml +++ b/config/pfflowd.xml @@ -30,6 +30,12 @@ <type>input</type> </field> <field> + <fielddescr>Source Hostname/IP</fielddescr> + <fieldname>sourcehost</fieldname> + <description>Specify the hostname/ip that datagrams are to be sent from. The hostname/ip should be from local installation ip.</description> + <type>input</type> + </field> + <field> <fielddescr>pf rule direction restriction</fielddescr> <fieldname>direction</fieldname> <description>Restrict creation of flow records to states matching a certain direction (in, out, or any).</description> @@ -82,6 +88,8 @@ $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'] != "") @@ -103,4 +111,4 @@ <custom_add_php_command> sync_package_pfflowd(); </custom_add_php_command> -</packagegui>
\ No newline at end of file +</packagegui> |