diff options
author | robiscool <robrob2626@yahoo.com> | 2010-04-06 13:39:59 -0700 |
---|---|---|
committer | robiscool <robrob2626@yahoo.com> | 2010-04-06 13:39:59 -0700 |
commit | 291c7210947a87dfdf8e347a65b38fc9e00a0955 (patch) | |
tree | e8b50ed01d2ccf8870a1d82373732a287c380c6e | |
parent | 95b4cf32ed4a85b4f7d96e0e2bd9f7ba67930c56 (diff) | |
download | pfsense-packages-291c7210947a87dfdf8e347a65b38fc9e00a0955.tar.gz pfsense-packages-291c7210947a87dfdf8e347a65b38fc9e00a0955.tar.bz2 pfsense-packages-291c7210947a87dfdf8e347a65b38fc9e00a0955.zip |
snort-old, update deinstall
-rwxr-xr-x | config/snort-old/snort.inc | 24 | ||||
-rw-r--r-- | config/snort-old/snort.xml | 2 | ||||
-rw-r--r-- | config/snort/snort.xml | 4 | ||||
-rwxr-xr-x | pkg_config.7.xml | 4 |
4 files changed, 21 insertions, 13 deletions
diff --git a/config/snort-old/snort.inc b/config/snort-old/snort.inc index 00a86c35..74a863ad 100755 --- a/config/snort-old/snort.inc +++ b/config/snort-old/snort.inc @@ -152,7 +152,7 @@ function sync_package_snort() if ($snortbarnyardlog_info_chk == on) $start .= "\nsleep 4;/usr/local/bin/barnyard2 -c /usr/local/etc/barnyard2.conf -d /var/log/snort -f snort.u2 -w /usr/local/etc/snort/barnyard2.waldo -D -q\n"; } - $check_if_snort_runs = "\n\tif [ \"`ls -A /usr/local/etc/snort/rules`\" ] ; then\n\techo \"rules exist\"\n\telse\n\techo \"rules DONT exist\"\n\texit 2\n\tfi \n\n\tif [ \"`pgrep -x snort`\" = \"\" ] ; then\n\t/bin/rm /tmp/snort.sh.pid\n\tfi \n\n\tif [ \"`pgrep -x snort`\" != \"\" ] ; then\n\tlogger -p daemon.info -i -t SnortStartup \"Snort already running...\"\n\t/usr/local/bin/php -f /usr/local/pkg/pf/snort_dynamic_ip_reload.php\n\texit 1\n\tfi\n\n"; + $check_if_snort_runs = "\n\tif [ \"`ls -A /usr/local/etc/snort/rules`\" ] ; then\n\techo \"rules exist\"\n\telse\n\techo \"rules DONT exist\"\n\texit 2\n\tfi \n\n\tif [ \"`pgrep -x snort`\" = \"\" ] ; then\n\t/bin/rm /tmp/snort.sh.pid\n\tfi \n\n\tif [ \"`pgrep -x snort`\" != \"\" ] ; then\n\tlogger -p daemon.info -i -t SnortStartup \"Snort already running...\"\n\t/usr/local/bin/php -f /usr/local/pkg/pf/snort_dynamic_ip_reload.php &\n\texit 1\n\tfi\n\n"; $if_snort_pid = "\nif ls /tmp/snort.sh.pid > /dev/null\nthen\n echo \"snort.sh is running\"\n exit 0\nelse\n echo \"snort.sh is not running\"\nfi\n"; $echo_snort_sh_pid = "\necho \"snort.sh run\" > /tmp/snort.sh.pid\n"; $echo_snort_sh_startup_log = "\necho \"snort.sh run\" >> /tmp/snort.sh_startup.log\n"; @@ -290,7 +290,9 @@ function create_snort_conf() { function snort_deinstall() { global $config, $g; - + conf_mount_rw(); + + /* remove custom sysctl */ remove_text_from_file("/etc/sysctl.conf", "sysctl net.bpf.bufsize=20480"); /* decrease bpf buffers back to 4096, from 20480 */ @@ -361,12 +363,18 @@ function snort_deinstall() { snort_rm_blocked_deinstall_cron(""); snort_rules_up_deinstall_cron(""); - - /* Unset snort registers in conf.xml IMPORTANT snort will not start with out this */ - /* Keep this as a last step */ - unset($config['installedpackages']['snort']['config'][0]['autorulesupdate7']); - unset($config['installedpackages']['snort']['config'][0]['rm_blocked']); - write_config(); +/* Unset snort registers in conf.xml IMPORTANT snort will not start with out this */ +/* Keep this as a last step */ + +unset($config['installedpackages']['snort']); +unset($config['installedpackages']['snortdefservers']); +unset($config['installedpackages']['snortwhitelist']); +unset($config['installedpackages']['snortthreshold']); +unset($config['installedpackages']['snortadvanced']); + + +write_config(); +conf_mount_ro(); } diff --git a/config/snort-old/snort.xml b/config/snort-old/snort.xml index 6f067f2d..3bc40fce 100644 --- a/config/snort-old/snort.xml +++ b/config/snort-old/snort.xml @@ -47,7 +47,7 @@ <faq>Currently there are no FAQ items provided.</faq> <name>Snort</name> <version>2.8.4.1_5</version> - <title>Services: Snort 2.8.4.1_5 pkg v. 1.7</title> + <title>Services: Snort 2.8.4.1_5 pkg v. 1.8</title> <include_file>/usr/local/pkg/snort.inc</include_file> <menu> <name>Snort</name> diff --git a/config/snort/snort.xml b/config/snort/snort.xml index bf053112..0a3eb7a3 100644 --- a/config/snort/snort.xml +++ b/config/snort/snort.xml @@ -57,8 +57,8 @@ </menu> <service> <name>snort</name> - <rcfile></rcfile> - <executable>/usr/local/bin/snort</executable> + <rcfile>snort.sh</rcfile> + <executable>snort</executable> <description>Snort is the most widely deployed IDS/IPS technology worldwide.</description> </service> <tabs> diff --git a/pkg_config.7.xml b/pkg_config.7.xml index 6c953b3d..466608db 100755 --- a/pkg_config.7.xml +++ b/pkg_config.7.xml @@ -341,8 +341,8 @@ <depends_on_package>mysql-client-5.1.34.tbz</depends_on_package> <depends_on_package>snort-2.8.4.1_1.tbz</depends_on_package> <config_file>http://www.pfsense.com/packages/config/snort-old/snort.xml</config_file> - <version>2.8.4.1_5 pkg v.1.7</version> - <required_version>1.2.2</required_version> + <version>2.8.4.1_5 pkg v.1.8</version> + <required_version>1.2.3</required_version> <status>legacy</status> <configurationfile>snort.xml</configurationfile> <after_install_info>Please visit the Snort settings tab and enter your oinkid code. Afterwards visit the update rules tab to download the snort rules.</after_install_info> |