@rizkhan99 said in Suricata/Snort not starting (Resolved):
@bmeeks @JohnSCarter
Guys, even after following all the guidelines, my snort and suricata packages remain disabled even in the "Status" -> "Services" option. Trying to enable them from the "Interfaces" option in "Services" -> "Snort" or "Suricata" is also not working. The log files e.g. suricata.log are also empty. System log file show the following message (for Suricata) which seem to be normal but still these services don't start:
May 3 22:04:56 php /tmp/suricata_bce039898_startcmd.php: [Suricata] Suricata START for WAN(bce0)...
May 3 22:04:56 php /tmp/suricata_bce039898_startcmd.php: [Suricata] Building new sid-msg.map file for IPCORE...
May 3 22:04:55 php /tmp/suricata_bce039898_startcmd.php: [Suricata] Updating rules configuration for: IPCORE ...
May 3 22:04:55 php-fpm 63967 /suricata/suricata_interfaces.php: Starting Suricata on IPCORE(bce0) per user request...
May 3 22:04:41 SuricataStartup 20258 Suricata START for WAN(39898_bce0)...
May 3 22:04:25 check_reload_status Syncing firewall
I have tried enabling snort and suricata from terminal by the following commands:
/usr/local/etc/rc.d/snort start
/usr/local/etc/rc.d/suricata start
The output says the service has started however "ps -ef | grep snort" or suricata doesn't show up anything.
The following commands also say that the service is "not" running:
/usr/local/etc/rc.d/snort status
/usr/local/etc/rc.d/suricata status
I have checked all this on both snort and suricata by having installed only one of these packages at a time, to avoid any conflicts between these packages, if any. However, no success.
My pfsense version is: 2.4.4-RELEASE-p2
FreeBSD version is 11.2-RELEASE-p6
Snort version is 3.2.9.8_5
Suricata version is 4.1.2_3
Please help...
Regards,
Rizwan
First of all, you do not start/stop these packages using the command line. You need to do it from the GUI on the INTERFACES tab in either Snort or Suricata (depending on which you have installed at the moment).
Have you done all of the steps outlined in my previous post? If so, then go to SERVICES > SURICATA and the Interfaces tab will be showing. Click the start icon to start the process. You will see a green gear spinning while the process starts up. If it fails to start, then you will find the reason by going to the LOGS VIEW tab and opening and viewing the suricata.log file for the interface you tried to start up.
If the above steps do not either resolve the issue or give you a clue on what's wrong (Suricata is very good about logging any errors during startup), then open a CLI session on the firewall and type this command just to see if Suricata and its dependencies are properly installed:
/usr/local/bin/suricata -v
That should result in a printout to the terminal showing the installed Suricata version and some basic copyright info. If you see any messages about missing libraries or anything else, then Suricata did not properly install. For what it's worth, the only time I've seen an empty suricata.log file for an interface is when the installation did not complete and therefore some dependency library is missing. In that case, Suricata can't even start as the OS will refuse to start it due to the missing libraries. When it isn't allowed to start by the OS, then of course it can't log anything to the suricata.log file for the interface. If that's what is happening in your case, then the CLI command I posted will uncover the problem.
Post back here what you find if you still have problems.