From df55b706b6a0ffd256a40cb6ad74e06c950b4eee Mon Sep 17 00:00:00 2001 From: Ermal Date: Fri, 25 Mar 2011 15:54:46 +0000 Subject: Teach the GUI of pfflowd to accept a source ip. --- config/pfflowd.xml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/pfflowd.xml b/config/pfflowd.xml index ecd26e34..1656dad5 100644 --- a/config/pfflowd.xml +++ b/config/pfflowd.xml @@ -29,6 +29,12 @@ Enter the port that datagrams are to be sent to. input + + Source Hostname/IP + sourcehost + Specify the hostname/ip that datagrams are to be sent from. The hostname/ip should be from local installation ip. + input + pf rule direction restriction direction @@ -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 @@ sync_package_pfflowd(); - \ No newline at end of file + -- cgit v1.2.3