diff options
author | Ermal <eri@pfsense.org> | 2011-03-25 15:54:46 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2011-03-25 15:54:46 +0000 |
commit | df55b706b6a0ffd256a40cb6ad74e06c950b4eee (patch) | |
tree | abc29515c2d87a80171837a3aa4549cb7513cbb8 /config/pfflowd.xml | |
parent | c8936da3f5254d614cfa5324480f6962e89a73b1 (diff) | |
download | pfsense-packages-df55b706b6a0ffd256a40cb6ad74e06c950b4eee.tar.gz pfsense-packages-df55b706b6a0ffd256a40cb6ad74e06c950b4eee.tar.bz2 pfsense-packages-df55b706b6a0ffd256a40cb6ad74e06c950b4eee.zip |
Teach the GUI of pfflowd to accept a source ip.
Diffstat (limited to 'config/pfflowd.xml')
-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> |