Snort & PPPoE: Snort refuses to start(?)
-
Here is your problem:
+++++++++++++++++++++++++++++++++++++++++++++++++++ Initializing rule chains... ERROR: /usr/local/etc/snort/snort_64222_pppoe0/rules/snort.rules(1821) Unknown rule option: 'dce_iface'. Fatal Error, Quitting.. [2.0.3-RELEASE][admin@pfsense.localdomain]/root(2):
This means you have no Preprocessors enabled, but you have enabled rules that need certain Preprocessors in order to function. I made a post some time back that most users should enable pretty much all the Preprocessors to keep from shooting themselves in the foot. You need to go to the Preprocessors tab in Snort and check all the boxes in the "General" section EXCEPT for "Sensitive Data". I suggest leaving that one disabled.
Another alternative on the same tab, but it reduces the effectiveness of Snort, is to check the box that says "Auto-Rule Disable" up near to top. That will automatically disable rules that need Preprocessors you do not have enabled. However, this automatic rule disabling can leave your systems less than adquately protected. It's there, though, for situations like this where the user does not want to have to sort out which Preprocessors are required for certain rules.
Bill
Thank you very, very, very much Bill; this appeared to be the problem; all is working well again. Thank you for helping me ;D
-
@Hollander:
Thank you very, very, very much Bill; this appeared to be the problem; all is working well again. Thank you for helping me ;D
You are welcome. The next Snort package that comes out will have some better "default behaviors" baked in with regards to these pesky preprocessors – at least on new, green-field installs. For users with saved Snort settings that already had preprocessors explicitly disabled, they will still need to turn them on manually.
Bill
-
Greetings, I hope you're all well. I registered to address that I have the same issue, however I don't use PPPoE and also have all the preprocessors ticked except the Sensitive Data box.
The issue began after I re-installed the package to allow an update to 2.9.4.1 pkg v. 2.5.7
The only logs coming through are:
May 15 12:27:32 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: WAN …
May 15 12:27:37 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: WAN…
May 15 12:27:48 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for WAN…
May 15 12:27:52 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: LAN …
May 15 12:27:56 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: LAN…
May 15 12:28:07 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for LAN…I'm still a relatively novice user but I messed about with the settings to try and get Snort to run but haven't had any luck yet. I appreciate your suggestions. :)
-
Greetings, I hope you're all well. I registered to address that I have the same issue, however I don't use PPPoE and also have all the preprocessors ticked except the Sensitive Data box.
The issue began after I re-installed the package to allow an update to 2.9.4.1 pkg v. 2.5.7
The only logs coming through are:
May 15 12:27:32 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: WAN …
May 15 12:27:37 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: WAN…
May 15 12:27:48 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for WAN…
May 15 12:27:52 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: LAN …
May 15 12:27:56 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: LAN…
May 15 12:28:07 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for LAN…I'm still a relatively novice user but I messed about with the settings to try and get Snort to run but haven't had any luck yet. I appreciate your suggestions. :)
Can you provide a little additional information?
(1) What version of pfSense (2.0.x or 2.1)?
(2) It would be helpful it you could capture the section of the system log where you start Snort and post it back here.
Bill
-
Greetings, I hope you're all well. I registered to address that I have the same issue, however I don't use PPPoE and also have all the preprocessors ticked except the Sensitive Data box.
The issue began after I re-installed the package to allow an update to 2.9.4.1 pkg v. 2.5.7
The only logs coming through are:
May 15 12:27:32 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: WAN …
May 15 12:27:37 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: WAN…
May 15 12:27:48 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for WAN…
May 15 12:27:52 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: LAN …
May 15 12:27:56 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: LAN…
May 15 12:28:07 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for LAN…I'm still a relatively novice user but I messed about with the settings to try and get Snort to run but haven't had any luck yet. I appreciate your suggestions. :)
Can you provide a little additional information?
(1) What version of pfSense (2.0.x or 2.1)?
(2) It would be helpful it you could capture the section of the system log where you start Snort and post it back here.
Bill
Hi Bill :)
Version:
2.0.3-RELEASE (i386)
built on Fri Apr 12 10:22:57 EDT 2013
FreeBSD 8.1-RELEASE-p13Here is the full system log after trying to start from the dashboard widget and then individually through Services > Snort:
May 15 13:38:37 SnortStartup[25558]: Snort STOP for WAN(35288_bge0)…
May 15 13:38:39 SnortStartup[30300]: Snort STOP for LAN(1238_bge1)…
May 15 13:38:43 SnortStartup[34726]: Snort START for WAN(35288_bge0)…
May 15 13:38:45 SnortStartup[36001]: Snort START for LAN(1238_bge1)…
May 15 13:39:20 php: /snort/snort_interfaces.php: Toggle (snort starting) for WAN(WAN)...
May 15 13:39:20 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: WAN …
May 15 13:39:21 php: /snort/snort_interfaces.php: Toggle (snort starting) for LAN(LAN)...
May 15 13:39:21 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: WAN …
May 15 13:39:24 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: WAN…
May 15 13:39:25 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: WAN…
May 15 13:39:36 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for WAN…
May 15 13:39:37 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for WAN…
May 15 13:39:39 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: LAN …
May 15 13:39:40 php: /snort/snort_interfaces.php: [Snort] Updating rules configuration for: LAN …
May 15 13:39:43 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: LAN…
May 15 13:39:45 php: /snort/snort_interfaces.php: [Snort] Enabling any flowbit-required rules for: LAN…
May 15 13:39:59 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for LAN…
May 15 13:40:00 php: /snort/snort_interfaces.php: [Snort] Building new sig-msg.map file for LAN…
May 15 13:40:03 php: /snort/snort_interfaces.php: Snort START for WAN(bge0)...
May 15 13:40:04 php: /snort/snort_interfaces.php: Snort START for LAN(bge1)...Also, some information about the hardware:
CPU: Intel(R) Atom(TM) CPU D2550 @ 1.86GHz
4GB RAMThank you :)
-
Probably because pppoe creates a new interface instead of current real_interface applied to WAN
Instead of bge0, it should be pppoe0
Maybe changes on get_real_interface code on snort to test interface type may fix this issue.
-
I also need some help…
Everything was working fine yesterday and today it seems to have turned it's self off :(I tried to look for that snort.conf file you mentioned but for some reason I have 2 pppoe (sensor) folders and neither one has a config file?
-
I also need some help…
Everything was working fine yesterday and today it seems to have turned it's self off :(I tried to look for that snort.conf file you mentioned but for some reason I have 2 pppoe (sensor) folders and neither one has a config file?
Your dir has pppoe config files but you log shows snort trying on bge0 ???
Maybe this bug is close to be identified and fixed. -
I also need some help…
Everything was working fine yesterday and today it seems to have turned it's self off :(I tried to look for that snort.conf file you mentioned but for some reason I have 2 pppoe (sensor) folders and neither one has a config file?
Your dir has pppoe config files but you log shows snort trying on bge0 ???
Maybe this bug is close to be identified and fixed.did you get me confused with Boags :)
-
hmm well I seem to have "fixed" my issue of snort not launching…
I completely un-installed snort and then re-installed it.
working now with all the rules I had before!?
-
Probably because pppoe creates a new interface instead of current real_interface applied to WAN
Instead of bge0, it should be pppoe0
Maybe changes on get_real_interface code on snort to test interface type may fix this issue.
Not sure how I can change this?
I did generate additional online gateways (which I can't seem to remove) while creating a static connection before this update, could that be causing issues for snort? - note these additions were a few weeks ago and there were no issues prior to the v. 2.5.7 update. -
hmm well I seem to have "fixed" my issue of snort not launching…
I completely un-installed snort and then re-installed it.
working now with all the rules I had before!?
I gave un-installing and re-installing a go. That does nothing for me.
Cheers :)
-
Probably because pppoe creates a new interface instead of current real_interface applied to WAN
Instead of bge0, it should be pppoe0
Maybe changes on get_real_interface code on snort to test interface type may fix this issue.
Not sure how I can change this?
I did generate additional online gateways (which I can't seem to remove) while creating a static connection before this update, could that be causing issues for snort? - note these additions were a few weeks ago and there were no issues prior to the v. 2.5.7 update. -
hmm well I seem to have "fixed" my issue of snort not launching…
I completely un-installed snort and then re-installed it.
working now with all the rules I had before!?
I gave un-installing and re-installing a go. That does nothing for me.
Cheers :)
Determination of the interface on 2.0.x and higher installs with PPPoE gets to be tricky. I'm no expert on the internal workings of pfSense, but I do remember seeing in the code where one of the previous developers hard-coded a "ng0" interface when the Snort code detects PPPoE. Perhaps one of the core team developers familiar with how PPPoE maps to interfaces on FreeBSD 8.1 and higher can chime here. I will be happy to fix the Snort code, but I don't know exactly how best to do that with PPPoE. I no longer have a PPPoE setup of my own since I abandoned DSL for my residence and switched over to a cable modem connection that uses DHCP.
Bill
-
Probably because pppoe creates a new interface instead of current real_interface applied to WAN
Instead of bge0, it should be pppoe0
Maybe changes on get_real_interface code on snort to test interface type may fix this issue.
Not sure how I can change this?
I did generate additional online gateways (which I can't seem to remove) while creating a static connection before this update, could that be causing issues for snort? - note these additions were a few weeks ago and there were no issues prior to the v. 2.5.7 update. -
hmm well I seem to have "fixed" my issue of snort not launching…
I completely un-installed snort and then re-installed it.
working now with all the rules I had before!?
I gave un-installing and re-installing a go. That does nothing for me.
Cheers :)
Determination of the interface on 2.0.x and higher installs with PPPoE gets to be tricky. I'm no expert on the internal workings of pfSense, but I do remember seeing in the code where one of the previous developers hard-coded a "ng0" interface when the Snort code detects PPPoE. Perhaps one of the core team developers familiar with how PPPoE maps to interfaces on FreeBSD 8.1 and higher can chime here. I will be happy to fix the Snort code, but I don't know exactly how best to do that with PPPoE. I no longer have a PPPoE setup of my own since I abandoned DSL for my residence and switched over to a cable modem connection that uses DHCP.
Bill
Hi Bill, I also have a cable modem connection that uses DHCP. I've never connected a DSL / PPPoE line to pfSense before.
Cheers :)
-
Hi Bill, I also have a cable modem connection that uses DHCP. I've never connected a DSL / PPPoE line to pfSense before.
Cheers :)
OK, I think I'm confused. Did you mean in your original post that you do not think Snort is running? And according to this last post you have DHCP with a cable modem on the WAN. If I have those two assumptions, correct, then I'm back on track. Got sidetracked maybe with the PPPoE stuff .. ???
From the log snippet you posted originally, it appears Snort is up and running on two interfaces (LAN and WAN). Your logs are sorted in normal order with the oldest events listed first. The bottom two entries show Snort starting up. How are you determining Snort is not actually running? If you are depending on the icon in the Snort Interfaces tab, note that they are currently "backwards" from the other pfSense GUI. The red X means "running". That will be changing in the next package version so it more accurately matches the rest of the pfSense GUI.
Bill
-
Hi Bill, I also have a cable modem connection that uses DHCP. I've never connected a DSL / PPPoE line to pfSense before.
Cheers :)
OK, I think I'm confused. Did you mean in your original post that you do not think Snort is running? And according to this last post you have DHCP with a cable modem on the WAN. If I have those two assumptions, correct, then I'm back on track. Got sidetracked maybe with the PPPoE stuff .. ???
From the log snippet you posted originally, it appears Snort is up and running on two interfaces (LAN and WAN). Your logs are sorted in normal order with the oldest events listed first. The bottom two entries show Snort starting up. How are you determining Snort is not actually running? If you are depending on the icon in the Snort Interfaces tab, note that they are currently "backwards" from the other pfSense GUI. The red X means "running". That will be changing in the next package version so it more accurately matches the rest of the pfSense GUI.
Bill
That's correct Bill.
It would appear in the system log that Snort would actually be running, however ram usage (always below 10%), the widget icon (showing that Snort is not running) and the lack of blocking alerts indicates otherwise. Snort doesn't seem to turn on, not even initially.
Things I've tried since my last post; I was able to remove the additional gateways in routing, I turned off 'save settings' in Snort and then uninstalled, re-installed the package with fresh default settings. No luck.
Cheers :)
-
That's correct Bill.
It would appear in the system log that Snort would actually be running, however ram usage (always below 10%), the widget icon (showing that Snort is not running) and the lack of blocking alerts indicates otherwise. Snort doesn't seem to turn on, not even initially.
Things I've tried since my last post; I was able to remove the additional gateways in routing, I turned off 'save settings' in Snort and then uninstalled, re-installed the package with fresh default settings. No luck.
Cheers :)
OK, from a command prompt on the firewall, execute this command see what it shows:
ps -ax |grep snort
The above command should show two running Snort processes with the associated command-line arguments.
Post back with what it shows, if anything.
As for RAM usage, unless you have a lot of traffic coming through your box, RAM usage may very well stay down in that range. I have 4GB in my firewall and my RAM usage on my home network rarely exceeds 10%-14%.
Bill
-
That's correct Bill.
It would appear in the system log that Snort would actually be running, however ram usage (always below 10%), the widget icon (showing that Snort is not running) and the lack of blocking alerts indicates otherwise. Snort doesn't seem to turn on, not even initially.
Things I've tried since my last post; I was able to remove the additional gateways in routing, I turned off 'save settings' in Snort and then uninstalled, re-installed the package with fresh default settings. No luck.
Cheers :)
OK, from a command prompt on the firewall, execute this command see what it shows:
ps -ax |grep snort
The above command should show two running Snort processes with the associated command-line arguments.
Post back with what it shows, if anything.
As for RAM usage, unless you have a lot of traffic coming through your box, RAM usage may very well stay down in that range. I have 4GB in my firewall and my RAM usage on my home network rarely exceeds 10%-14%.
Bill
Alright, this is the result:
$ ps -ax |grep snort
58727 ?? S 0:00.00 sh -c ps -ax |grep snort
59007 ?? S 0:00.00 grep snortAlso to note, previously when Snort was always running, I never got below 90% memory. I also leave it on 24-7 so that it gathers a solid blocked hosts list. The performance setting I go with is AC-STD for both WAN and LAN.
Cheers :)
-
Alright, this is the result:
$ ps -ax |grep snort
58727 ?? S 0:00.00 sh -c ps -ax |grep snort
59007 ?? S 0:00.00 grep snortAlso to note, previously when Snort was always running, I never got below 90% memory. I also leave it on 24-7 so that it gathers a solid blocked hosts list. The performance setting I go with is AC-STD for both WAN and LAN.
Cheers :)
OK. Snort is obviously not running. I'm not familiar with the bge0 or bge1 driver, but a quick Google search suggests a relative standard Broadcom NIC, and since your basic networking is working, it has to be something else.
Let's try some really basic steps first, just in case you might have overlooked something. Follow the steps in this post. The sequence of some of the actions is very important in order for a proper snort.conf file to get created.
http://forum.pfsense.org/index.php/topic,61018.msg328717.html#msg328717
For testing purposes, select only the Emerging Threats CIARMY rule set to start with. Let's see if we can get Snort to run at all before we start throwing more complicated rules at it.
Double check your system logs for a SIGNAL from Snort such as "snort exited on SIGNAL 11" or some other similar message. It is really weird for Snort to just die with no message to the system log and not even any zombie processes left in the process list.
I think you posted earlier that you had done the complete delete and reinstall of the Snort package, but if not, try that process.
Are any other packages installed in the box? There was a library conflict with this version of the Snort binary and another package reported by a user a few weeks back. I don't remember off the top of my head the name of the other conflicting package, but it installed a library Snort did not like. Of course that user was getting an error logged on startup that helped identify the problem.
Bill
-
Alright, this is the result:
$ ps -ax |grep snort
58727 ?? S 0:00.00 sh -c ps -ax |grep snort
59007 ?? S 0:00.00 grep snortAlso to note, previously when Snort was always running, I never got below 90% memory. I also leave it on 24-7 so that it gathers a solid blocked hosts list. The performance setting I go with is AC-STD for both WAN and LAN.
Cheers :)
OK. Snort is obviously not running. I'm not familiar with the bge0 or bge1 driver, but a quick Google search suggests a relative standard Broadcom NIC, and since your basic networking is working, it has to be something else.
Let's try some really basic steps first, just in case you might have overlooked something. Follow the steps in this post. The sequence of some of the actions is very important in order for a proper snort.conf file to get created.
http://forum.pfsense.org/index.php/topic,61018.msg328717.html#msg328717
For testing purposes, select only the Emerging Threats CIARMY rule set to start with. Let's see if we can get Snort to run at all before we start throwing more complicated rules at it.
Double check your system logs for a SIGNAL from Snort such as "snort exited on SIGNAL 11" or some other similar message. It is really weird for Snort to just die with no message to the system log and not even any zombie processes left in the process list.
I think you posted earlier that you had done the complete delete and reinstall of the Snort package, but if not, try that process.
Are any other packages installed in the box? There was a library conflict with this version of the Snort binary and another package reported by a user a few weeks back. I don't remember off the top of my head the name of the other conflicting package, but it installed a library Snort did not like. Of course that user was getting an error logged on startup that helped identify the problem.
Bill
Alright, I went through the basic steps while only enabling emerging-ciarmy.rules and the system log still has no message.
The other packages I have installed are: arpwatch, pfBlocker and Dashboard Widget: Snort.
Cheers :)
-
Alright, I went through the basic steps while only enabling emerging-ciarmy.rules and the system log still has no message.
The other packages I have installed are: arpwatch, pfBlocker and Dashboard Widget: Snort.
Cheers :)
At this point I'm pretty much baffled. The next troubleshooting steps will all have to be command-line stuff.
Change to the directory where one of your Snort interface configurations exists, and run the series of commands shown below.
First validate the version of Snort:
/usr/local/bin/snort -V
It should print "Version 2.9.4.1" as part of the output. Next, validate the configuration file.
/usr/local/bin/snort -T -c ./snort.conf
The above will validate the local configuration. It should print several lines of output and at the end indicate the configuration file is OK. Next, try running Snort with no rules at all. In the configuration directory for one of your configured interfaces, execute the following commands to wipe out the rules files and create empty ones and then start Snort. Execute these commands in the order listed.
rm snort.rules rm flowbit-required.rules touch snort.rules touch flowbit-required.rules /usr/local/etc/rc.d/snort.sh start
The above commands should result in Snort starting on that interface with an empty rule set. To verify it is running, execute this command.
ps -ax |grep snort
You should see an active Snort process with some command-line arguments displayed in the far-right column. If you do, then Snort started successfully. Let it run a few minutes, and keep checking with the same "ps" command periodically to verify it continues to run.
If the above test still does not result in a running Snort process, then something more fundamental is wrong on your box and you might consider a total wipe-and-reload operation.
Bill