HOW TO Windows
HOW TO Windows
You MUST have npcap(npcap win installer) installed in order to run Suricata IDS/IPS !
Rules
You will need rules, because Suricata inspects traffic based on rules. The rules usually
reside in the “INSTALLDIR\rules” directory. There are non-installed by default. You can
install them in any directory you wish, just make sure you change the path in the
suricata.yaml configuration file.
• Write them yourself – if you have previous experience or you would like just a
specific traffic to be inspected, you can write the necessary rules by yourself. You
can find some more info on rule writing here:
After you have the rules – specify which rules would you like to activate or deactivate.
For example, if you would like to deactivate a rule put a “#” at the beginning of the line:
The ones in green above are deactivated.
Configuration
Suricata’s configuration file is called “suricata.yaml” and holds special syntaxes and all
your configurational variables – i.e. networks, interfaces, log files locations/rules
directories and many more.
Suricata.yaml already has default values and config options, here we will go over some
of them very briefly, so that you can get acquainted better.
For example , if you are not happy with the default options you can change them –
”default-log-dir: C:\Suricata\log
………
- file:
enabled: yes
filename: C:\\Suricata\\suricata.log
……….
default-rule-path: C:\\Suricata\\rules\\
classification-file: C:\\Suricata\\classification.config
…….
HOME_NET: "[192.168.0.0/16]" - (here actually you put any network you want Suricata to
inspect)
Running Suricata
Open a cmd and go to your Suricata Directory OR just double click the icon on your
desktop and execute:
like shown on the picture below (in this case – 10.0.2.15 is the IP/interface I want
Suricata to listen to, i.e. the IP that my network card has been configured with):
If you need to run Suricata on a un-ip'd interfaces (thanks to Rich Rumble for pointing
that out):
You can get the NIC UUID in a variety of ways, the simplest is using a single command
for WMIC:(from cmd prompt paste in the following)
If you know your NIC's IP you can filter the results with findstr:
Make sure the double slashes are used, and a backslash is placed before the curly
braces!
You can find much more info about setting up and tuning Suricata here:
https://suricata.readthedocs.io/en/latest/what-is-suricata.html