Archive for April, 2010

Failed to initialize dynamic preprocessor: SF_SDF (IPV6) version 1.1.1

Friday, April 30th, 2010

Today I have tried to update my Snort and rules and when testing I got this error message because IPV6 was not enabled on my computer.

The fix is very simple, just delete sf_sdf.dll file from C:\Snort\lib\snort_dynamicpreprocessor directory and start snort again.

Update of snort is very simple and it can be described in few simple steps which can be used for fresh install as well:

  • download Snort 2.8.6 from the www.snort.org site
  • download WinPcap 4.1.1 from the www.winpcap.org
  • install both of them on the target machine
  • download the latest community rules from www.snort.org (you need to register and log in to be able to download them)
  • extract rules to C:\Snort overwriting existing files and open Snort.conf file in the etc map
  • find line nr. 155 and replace it to this dynamicpreprocessor directory C:\Snort\lib\snort_dynamicpreprocessor
  • then replace line 158 to this dynamicengine C:\Snort\lib\snort_dynamicengine\sf_engine.dll
  • and then comment out line 161 if you don’t have dynamic rules #dynamicdetection directory /usr/local/lib/snort_dynamicrules
  • now when you are done if you are not using IPV6 delete sf_sdf.dll file from C:\Snort\lib\snort_dynamicpreprocessor to avoid this error
  • start Snort to test it
  • start Snort as service if test is OK

#Arduino flash trigger v1 – parts list and schematics

Tuesday, April 6th, 2010

So as promised here is the parts list for the first version of the Arduino flash trigger.

  • 1x Atmega 168 or smaller chip with Arduino bootloader preprogrammed (the code compiled is only 4k)
  • 1x 28-pin IC socket (so that you can use chip for other projects latter)
  • 1x 16MhZ ceramic resonator
  • 1x 16×2 lcd display, HD44780 compatible
  • 1x 7805 5V voltage regulator
  • 4x micro buttons
  • 1x SFH615 optocouppler
  • 2x 3mm led diodes (green for power and yellow for activity)
  • 4x 220R resistors, 1x 10K resistor and 1x 1K resistor
  • 2x trim potentiometers (4K7 and 10K)
  • 3x male headers(6-pin, 3-pin and 2-pin)
  • 3x ceramic capacitators(0.1 uF, 1uF, 10uF)
  • 1x 3.5 mm female jack for connection to laser

Now this post wouldn’t be complete without Eagle schematic and board files. You can download them on the following link: Trigger schematics (118).

I don’t have schematics of the laser side because it’s simple. I’m leading 3 wires with 3.5mm audio cable, analog in, gnd and vcc(+5V). In the laser box I have laser which is connected directly to the vcc and gnd, one foto resistor that is giving to high value to analog in so I have one resistor before it connected to gnd.

So we have:

  • GND wire is connected to laser gnd wire and to one side of let’s say 2M resistor which other side is connected to one leg of photo resistor
  • VCC wire is connected to laser vcc wire
  • Analog in wire connected to other leg of the photo resistor

It depends on which photo resistor you are using how big resistor value before it you have to use. Arduino is capable of reading analog in until value of 1024 and that’s reason why the big resistor value is needed, so you are testing which one do you need until the value of direct laser beam to the photo resistor is under 1024, mine is about 920.