diff options
author | robiscool <robrob2626@yahoo.com> | 2010-04-23 01:34:48 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-04-23 01:35:38 -0700 |
commit | d3635ba6e576bac2d6d4fee57a0734d1db2903da (patch) | |
tree | d04689475b3838bfab5afcfd38abb73e402f0189 /config/snort/snort_barnyard.php | |
parent | a210b68ca96449554892c3d28117331a89952627 (diff) | |
download | pfsense-packages-d3635ba6e576bac2d6d4fee57a0734d1db2903da.tar.gz pfsense-packages-d3635ba6e576bac2d6d4fee57a0734d1db2903da.tar.bz2 pfsense-packages-d3635ba6e576bac2d6d4fee57a0734d1db2903da.zip |
snort, add whightlist.php, add options for homenet, externalnet, and whitelist, misc
Diffstat (limited to 'config/snort/snort_barnyard.php')
-rw-r--r-- | config/snort/snort_barnyard.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/config/snort/snort_barnyard.php b/config/snort/snort_barnyard.php index 103fba0e..d88b354c 100644 --- a/config/snort/snort_barnyard.php +++ b/config/snort/snort_barnyard.php @@ -110,6 +110,9 @@ if (isset($id) && $a_nat[$id]) { $pconfig['uuid'] = $a_nat[$id]['uuid']; $pconfig['interface'] = $a_nat[$id]['interface']; $pconfig['descr'] = $a_nat[$id]['descr']; + $pconfig['whitelistname'] = $a_nat[$id]['whitelistname']; + $pconfig['homelistname'] = $a_nat[$id]['homelistname']; + $pconfig['externallistname'] = $a_nat[$id]['externallistname']; $pconfig['performance'] = $a_nat[$id]['performance']; $pconfig['blockoffenders7'] = $a_nat[$id]['blockoffenders7']; $pconfig['alertsystemlog'] = $a_nat[$id]['alertsystemlog']; @@ -120,6 +123,7 @@ if (isset($id) && $a_nat[$id]) { $pconfig['rulesets'] = $a_nat[$id]['rulesets']; $pconfig['rule_sid_off'] = $a_nat[$id]['rule_sid_off']; $pconfig['rule_sid_on'] = $a_nat[$id]['rule_sid_on']; + if (!$pconfig['interface']) $pconfig['interface'] = "wan"; @@ -225,7 +229,10 @@ $d_snortconfdirty_path = "/var/run/snort_conf_{$snort_uuid}_{$if_real}.dirty"; if ($pconfig['configpassthru'] != "") { $natent['configpassthru'] = $pconfig['configpassthru']; } if ($pconfig['rulesets'] != "") { $natent['rulesets'] = $pconfig['rulesets']; } if ($pconfig['rule_sid_off'] != "") { $natent['rule_sid_off'] = $pconfig['rule_sid_off']; } - if ($pconfig['rule_sid_on'] != "") { $natent['rule_sid_on'] = $pconfig['rule_sid_on']; } + if ($pconfig['rule_sid_on'] != "") { $natent['rule_sid_on'] = $pconfig['rule_sid_on']; } + if ($pconfig['whitelistname'] != "") { $natent['whitelistname'] = $pconfig['whitelistname']; } + if ($pconfig['homelistname'] != "") { $natent['homelistname'] = $pconfig['homelistname']; } + if ($pconfig['externallistname'] != "") { $natent['externallistname'] = $pconfig['externallistname']; } /* post new options */ $natent['barnyard_enable'] = $_POST['barnyard_enable'] ? on : off; |