. Copyright (C) 2008-2009 Robert Zelaya. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ require_once("guiconfig.inc"); require_once("/usr/local/pkg/snort/snort_new.inc"); require_once("/usr/local/pkg/snort/snort_gui.inc"); // set page vars $generalSettings = snortSql_fetchAllSettings('SnortSettings', 'id', '1'); $snortdownload_off = ($generalSettings['snortdownload'] == 'off' ? 'checked' : ''); $snortdownload_on = ($generalSettings['snortdownload'] == 'on' ? 'checked' : ''); $emergingthreats_on = ($generalSettings['emergingthreats'] == 'on' ? 'checked' : ''); $updaterules = $generalSettings['updaterules']; $oinkmastercode = $generalSettings['oinkmastercode']; $rm_blocked = $generalSettings['rm_blocked']; $snortloglimit_off = ($generalSettings['snortloglimit'] == 'off' ? 'checked' : ''); $snortloglimit_on = ($generalSettings['snortloglimit'] == 'on' ? 'checked' : ''); $snortloglimitsize = $generalSettings['snortloglimitsize']; $snortalertlogtype = $generalSettings['snortalertlogtype']; $forcekeepsettings_on = ($generalSettings['forcekeepsettings'] == 'on' ? 'checked' : ''); $snortlogCurrentDSKsize = round(exec('df -k /var | grep -v "Filesystem" | awk \'{print $4}\'') / 1024); $pgtitle = "Services: Snort: Global Settings"; include("/usr/local/pkg/snort/snort_head.inc"); ?>


Please Wait...

' . $pgtitle . '

';} echo '

' . $pgtitle . '

'; ?>
Please Choose The Type Of Rules You Wish To Download
Install Snort.org rules
> Do NOT Install
> Install Basic Rules or Premium rules
          Sign Up for a Basic Rule Account
          Sign Up for Sourcefire VRT Certified Premium Rules. This Is Highly Recommended
 
Oinkmaster code
Code
Obtain a snort.org Oinkmaster code and paste here.
Install Emergingthreats rules >
Emerging Threats is an open source community that produces fastest moving and diverse Snort Rules.
Update rules automatically
Please select the update times for rules.
Hint: in most cases, every 12 hours is a good choice.
General Settings
Log Directory SizeLimit





Note:
Available space is MB
> Enable directory size limit (Default)
> Disable directory size limit

Warning: Pfsense Nanobsd should use no more than 10MB of space.
 
Size in MB Default is 20% of available space.
Remove blocked hosts every
Please select the amount of time you would likehosts to be blocked for.
Hint: in most cases, 1 hour is a good choice.
Alerts file descriptiontype
Please choose the type of Alert logging you will like see in your alert file.
Hint: Best pratice is to chose full logging.
  WARNING: On change, alert file will be cleared.
Keep snort settings after deinstall > Settings will not be removed during deinstall.
Save Settings
 WARNING:
This will reset all global and interface settings.
Note:
Changing any settings on this page will affect all interfaces. Please, double check if your oink code is correct and the type of snort.org account you hold.