2.0.3 Release and SNORT/update
-
I get this after the systemwide update from 2.0.2 to .3.
Apr 16 15:33:23 php: /status_services.php: The command '/usr/local/etc/rc.d/snort.sh stop' returned exit code '1', the output was ''
Apr 16 15:33:21 SnortStartup[46797]: Snort STOP For Internet(36256_em0)…
Apr 16 15:31:32 php: /snort/snort_download_rules.php: The Rules update has finished.
Apr 16 15:31:32 php: /snort/snort_download_rules.php: Snort has restarted with your new set of rules...
Apr 16 15:31:30 kernel: pid 50849 (snort), uid 0: exited on signal 4
Apr 16 15:31:30 SnortStartup[54988]: Snort SOFT START For Internet(36256_em0)…
Apr 16 15:31:29 snort[50849]: Could not remove pid file /var/run/snort_em036256.pid: No such file or directory
Apr 16 15:31:29 snort[50849]: Could not remove pid file /var/run/snort_em036256.pid: No such file or directory
Apr 16 15:31:29 kernel: em0: promiscuous mode disabled
Apr 16 15:31:29 snort[50849]: *** Caught Term-Signal
Apr 16 15:31:29 snort[50849]: *** Caught Term-Signal
Apr 16 15:31:28 SnortStartup[54123]: Snort STOP For Internet(36256_em0)…
Apr 16 15:31:27 php: /snort/snort_download_rules.php: Building new sig-msg.map file for WAN...
Apr 16 15:31:25 php: /snort/snort_download_rules.php: Resolving and auto-enabling any flowbit-required rules for WAN...
Apr 16 15:31:24 php: /snort/snort_download_rules.php: Updating rules configuration for: WAN ...
Apr 16 15:31:20 php: /snort/snort_download_rules.php: EmergingThreats rules file update downloaded succsesfully
Apr 16 15:31:17 php: /snort/snort_download_rules.php: There is a new set of EmergingThreats rules posted. Downloading...
Apr 16 15:31:17 php: /snort/snort_download_rules.php: Snort Rules Attempts: 1
Apr 16 15:31:11 SnortStartup[51026]: Snort START For Internet(36256_em0)…Tell me why?
The funny part is that it says Snort is running.....?
-
Did you uninstall Snort.. reboot and re-installed Snort after reboot?
I had the same issue where Snort wasn't actually running but it said the service was running, but when I uninstalled Snort I did a reboot and then did a reinstall.. This time it worked perfectly.
-
I did not see this behavior with my upgrade yesteday.
I notice from looking over the log file you posted that at least two different Snort PID (process IDs) seem to be involved on the same interface. That could be something weird generated from the pfSense upgrade process where it does a reinstall of all packages as part of the upgrade.
Also unusual that the SnortStartup process is shown using two different PIDs. Does this box have Snort on only one interface? If so, then having these multiple process IDs is strange.
Bill
-
Very! and currently NOTHING is blocked or alerted…
Try to uninstall completely and then reinstall!
-
Get this when uninstalling…
kipping package deletion for mysql-client-5.5.30 because it is a dependency.
Starting package deletion for barnyard2-1.12...done.
Starting package deletion for mysql-client-5.5...done.
Skipping package deletion for libnet11-1.1.6,1 because it is a dependency.
Skipping package deletion for libdnet-1.11_3 because it is a dependency.
Skipping package deletion for libpcap-1.3.0 because it is a dependency.
Skipping package deletion for daq-2.0.0 because it is a dependency.
Starting package deletion for snort-2.9.4.1...done.
Starting package deletion for libnet11-1.1.2...done.
Starting package deletion for daq-2.0...done.
Removing snort components...
Menu items... done.
Services... done.
Loading package instructions...
Deinstall commands... -
Apr 16 17:01:23 php: /status_services.php: The command '/usr/local/etc/rc.d/snort.sh stop' returned exit code '1', the output was ''
Apr 16 17:01:21 SnortStartup[44337]: Snort START For Internet(36256_em0)…
Apr 16 17:01:21 SnortStartup[43930]: Snort STOP For Internet(36256_em0)…
Apr 16 17:01:19 php: /status_services.php: The command '/usr/local/etc/rc.d/snort.sh stop' returned exit code '1', the output was ''
Apr 16 17:01:17 SnortStartup[41985]: Snort STOP For Internet(36256_em0)…
Apr 16 17:00:45 check_reload_status: Reloading filter
Apr 16 17:00:44 check_reload_status: Syncing firewall
Apr 16 17:00:44 php: /pkg_mgr_install.php: Building new sig-msg.map file for WAN...
Apr 16 17:00:42 php: /pkg_mgr_install.php: Resolving and auto-enabling any flowbit-required rules for WAN...
Apr 16 17:00:40 php: /pkg_mgr_install.php: Updating rules configuration for: WAN ...
Apr 16 17:00:40 php: /pkg_mgr_install.php: The Rules update has finished.
Apr 16 17:00:35 php: /pkg_mgr_install.php: EmergingThreats rules file update downloaded succsesfully
Apr 16 17:00:33 php: /pkg_mgr_install.php: There is a new set of EmergingThreats rules posted. Downloading...
Apr 16 17:00:32 php: /pkg_mgr_install.php: Snort GPLv2 Community Rules file update downloaded succsesfully
Apr 16 17:00:31 php: /pkg_mgr_install.php: There is a new set of Snort GPLv2 Community Rules posted. Downloading...
Apr 16 17:00:31 php: /pkg_mgr_install.php: Snort Rules Attempts: 1
Apr 16 16:59:31 php: /pkg_mgr_install.php: There is a new set of Snort VRT rules posted. Downloading...
Apr 16 16:59:31 php: /pkg_mgr_install.php: Snort MD5 Attempts: 1
Apr 16 16:59:11 apinger: Error while feeding rrdtool: Broken pipe
Apr 16 16:59:09 php: /pkg_mgr_install.php: Beginning package installation for snort. -
Is Snort the only package on this box, or are other packages installed? I'm asking because the upgrade process for pfSense will kick off its own routine for reinstalling all packages on an upgrade, and those run for sometimes quite a while.
Bill
-
Also having similar issues with Snort VRT rules updates. This has happened 3 times I've noticed. It does not happen with ET rules. I'm running the paid Snort rules and ET, no GPL Snort rules since those should be in my paid rules. I'm running on 2.0.3-RELEASE (amd64) with a pretty typical single wan and single lan set-up. I also have the following packages:
arping
Cron
Dashboard Widget: Snort
iperf
nmap
OpenVPN Client Export Utility
pfBlocker
pfflowd
snort
Unbound
Zabbix-2 AgentHere is the log:
Apr 16 12:05:33 php: : Snort MD5 Attempts: 2
Apr 16 12:05:33 php: : There is a new set of Snort VRT rules posted. Downloading…
Apr 16 12:05:57 php: : Snort Rules Attempts: 1
Apr 16 12:05:58 php: : Emerging Threat rules are up to date...
Apr 16 12:06:05 php: : Updating rules configuration for: WAN ...
Apr 16 12:06:07 php: : Resolving and auto-enabling any flowbit-required rules for WAN...
Apr 16 12:06:14 php: : Building new sig-msg.map file for WAN...
Apr 16 12:06:16 SnortStartup[59944]: Snort STOP For Default IPS(30033_em1)…
Apr 16 12:06:17 snort[10971]: *** Caught Term-Signal
Apr 16 12:06:17 snort[10971]: *** Caught Term-Signal
Apr 16 12:06:17 kernel: em1: promiscuous mode disabled
Apr 16 12:06:17 snort[10971]: Could not remove pid file /var/run/snort_em130033.pid: No such file or directory
Apr 16 12:06:17 snort[10971]: Could not remove pid file /var/run/snort_em130033.pid: No such file or directory
Apr 16 12:06:18 SnortStartup[62959]: Snort SOFT START For Default IPS(30033_em1)…
Apr 16 12:06:18 kernel: pid 10971 (snort), uid 0: exited on signal 4
Apr 16 12:06:20 php: : Snort has restarted with your new set of rules...
Apr 16 12:06:20 php: : The Rules update has finished. -
Only package. :)
Is Snort the only package on this box, or are other packages installed? I'm asking because the upgrade process for pfSense will kick off its own routine for reinstalling all packages on an upgrade, and those run for sometimes quite a while.
Bill
-
Also having similar issues with Snort VRT rules updates. This has happened 3 times I've noticed. It does not happen with ET rules. I'm running the paid Snort rules and ET, no GPL Snort rules since those should be in my paid rules. I'm running on 2.0.3-RELEASE (amd64) with a pretty typical single wan and single lan set-up.
Here is the log:
Apr 16 12:05:33 php: : Snort MD5 Attempts: 2
Apr 16 12:05:33 php: : There is a new set of Snort VRT rules posted. Downloading…
Apr 16 12:05:57 php: : Snort Rules Attempts: 1
Apr 16 12:05:58 php: : Emerging Threat rules are up to date...
Apr 16 12:06:05 php: : Updating rules configuration for: WAN ...
Apr 16 12:06:07 php: : Resolving and auto-enabling any flowbit-required rules for WAN...
Apr 16 12:06:14 php: : Building new sig-msg.map file for WAN...
Apr 16 12:06:16 SnortStartup[59944]: Snort STOP For Default IPS(30033_em1)…
Apr 16 12:06:17 snort[10971]: *** Caught Term-Signal
Apr 16 12:06:17 snort[10971]: *** Caught Term-Signal
Apr 16 12:06:17 kernel: em1: promiscuous mode disabled
Apr 16 12:06:17 snort[10971]: Could not remove pid file /var/run/snort_em130033.pid: No such file or directory
Apr 16 12:06:17 snort[10971]: Could not remove pid file /var/run/snort_em130033.pid: No such file or directory
Apr 16 12:06:18 SnortStartup[62959]: Snort SOFT START For Default IPS(30033_em1)…
Apr 16 12:06:18 kernel: pid 10971 (snort), uid 0: exited on signal 4
Apr 16 12:06:20 php: : Snort has restarted with your new set of rules...
Apr 16 12:06:20 php: : The Rules update has finished.There is nothing really unusual in that series of log entries that I see. The process works like this:
1. Attempt to download the MD5 hash file for a rule set (in this case, Snort VRT).
2. The code will retry the download up to 5 times before giving up. In this case, it took 2 tries to get the file.
3. If the rules have changed (MD5 mismatch), it downloads the new rules.
4. It unpacks and installs the rules (Snort VRT in this instance).
5. It then restarts Snort on all interfaces.So dissecting this from the log entries you posted, here is how the entries map out for the Snort restart –
Send the STOP command to the Snort process ...
Apr 16 12:06:16 SnortStartup[59944]: Snort STOP For Default IPS(30033_em1)...
The Snort process acknowledges receipt of the STOP command …
Apr 16 12:06:17 snort[10971]: *** Caught Term-Signal
Note – ignore the double entry, that's a quirk of syslog on pfSense
Just to be double-sure the PID file is cleared so it won't interfere with subsequent starts, the code deletes the file.
This causes the pkill command to complain that it could not delete the file, too. The error is harmless.Apr 16 12:06:17 snort[10971]: Could not remove pid file /var/run/snort_em130033.pid: No such file or directory
Now start Snort back up again …
Apr 16 12:06:18 SnortStartup[62959]: Snort SOFT START For Default IPS(30033_em1)...
So, this looks like a normal rules update and restart of Snort. Did you find that Snort was not actually restarting, or what exactly is the rule update issue you are having?
Bill
-
Get this when uninstalling…
kipping package deletion for mysql-client-5.5.30 because it is a dependency.
Starting package deletion for barnyard2-1.12...done.
Starting package deletion for mysql-client-5.5...done.
Skipping package deletion for libnet11-1.1.6,1 because it is a dependency.
Skipping package deletion for libdnet-1.11_3 because it is a dependency.
Skipping package deletion for libpcap-1.3.0 because it is a dependency.
Skipping package deletion for daq-2.0.0 because it is a dependency.
Starting package deletion for snort-2.9.4.1...done.
Starting package deletion for libnet11-1.1.2...done.
Starting package deletion for daq-2.0...done.
Removing snort components...
Menu items... done.
Services... done.
Loading package instructions...
Deinstall commands...These are harmless errors and can be safely ignored.
Bill
-
Only package. :)
I did some more research in the pfSense package install process, and I don't think there is really anything wrong with your sequence of events. The package reinstall routines that are part of pfSense itself go through and collect up all the rc.d startup scripts for all the installed packages and cycles through them one-by-one issuing the "restart" command to the packages.
For the Snort package, restart means issue a "STOP", wait 2 seconds (I believe that's the interval), and then issue the START command.
Bill
-
So, this looks like a normal rules update and restart of Snort. Did you find that Snort was not actually restarting, or what exactly is the rule update issue you are having?
Bill
Snort is not restarting. I figured it had something to do with:
Apr 16 12:06:18 kernel: pid 10971 (snort), uid 0: exited on signal 4
-
I had the same problem today. I had to uninstall Bandwidthd + Snort, reboot the system and reinstall them again. Aparently those two packages shared some libraries.
-
Snort is not restarting. I figured it had something to do with:
Apr 16 12:06:18 kernel: pid 10971 (snort), uid 0: exited on signal 4
Oops! Forgive me … I did not notice that line. Yes it does mean Snort choked on something. I'm doing a bit of Google research to see what I find.
Bill
-
I had the same problem today. I had to uninstall Bandwidthd + Snort, reboot the system and reinstall them again. Aparently those two packages shared some libraries.
Good catch. Either they share, or one installs a different version that chokes the other. An old version of "Windows DLL Hell", so to speak. When you reinstalled, what order did you do that? Did you reinstall Snort first or last?
Bill
-
Snort is not restarting. I figured it had something to do with:
Apr 16 12:06:18 kernel: pid 10971 (snort), uid 0: exited on signal 4
OK, had to do a quick reload of my memory for UNIX signals. Signal 4 seems to mean SIGILL which translates into "Illegal Instruction".
There are two common ways to get this. One is to have the wrong architecture code, and the other is some really bad corruption of a program. I did find several references to early C++ compilers on FreeBSD producing faulty code when attempting to optimize for Pentium 4 (P4) CPUs, but I hardly think that applies here. I'm more inclined to think some really incompatible library got sucked in, or the Snort binary or a library it uses got corrupted during installation.
At this point I recommend removing Snort using the "X" icon on the Installed Packages tab, and then reinstalling from the Available Packages tab.
Bill