diff options
author | Bill Marquette <billm@pfsense.org> | 2006-11-02 16:38:49 +0000 |
---|---|---|
committer | Bill Marquette <billm@pfsense.org> | 2006-11-02 16:38:49 +0000 |
commit | c92ead044f54084e5b481009036801fdad66d273 (patch) | |
tree | 07a52a23e36ca3845595569c67e3a6bf492123b6 /packages | |
parent | 91cf1be6a3b13522cd9b331d5bf3a443c57ee915 (diff) | |
download | pfsense-packages-c92ead044f54084e5b481009036801fdad66d273.tar.gz pfsense-packages-c92ead044f54084e5b481009036801fdad66d273.tar.bz2 pfsense-packages-c92ead044f54084e5b481009036801fdad66d273.zip |
make $HOME_NET work for multiple IPs
Diffstat (limited to 'packages')
-rw-r--r-- | packages/snort/snort.inc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/snort/snort.inc b/packages/snort/snort.inc index 6f104fb6..091fa195 100644 --- a/packages/snort/snort.inc +++ b/packages/snort/snort.inc @@ -247,6 +247,11 @@ function generate_snort_conf() { /* write out whitelist, convert spaces to carriage returns */ $whitelist_home_net = str_replace(" ", "\n", $home_net); + /* make $home_net presentable to snort */ + trim($home_net); + $home_net = str_replace(" ", ",", $home_net); + $home_net = "[{$home_net}]"; + /* foreach through whitelist, writing out to file */ $whitelist_split = split("\n", $whitelist_home_net); foreach($whitelist_split as $wl) @@ -586,4 +591,4 @@ function snort_advanced() { sync_package_snort(); } -?>
\ No newline at end of file +?> |