Premium Content
This advanced tutorial is reserved for premium members.
9,90€ / month
- All advanced tutorials
- New content every week
- Progress tracking
- Cancel anytime
A detailed tutorial to install and configure Snort, a network intrusion detection system (NIDS), to monitor and secure your infrastructure.
This advanced tutorial is reserved for premium members.
var RULE_PATH really points at /etc/snort/rules and that the include $RULE_PATH/local.rules line is uncommented. Then the interface: the -i flag must name the monitoring interface, not the management one, otherwise Snort only watches its own admin traffic. Finally HOME_NET: if the value does not match your real network, rules written against $HOME_NET never match. Start with snort -T -c /etc/snort/snort.conf to rule out a configuration error.-i. Keeping them apart stops the sensor from analysing its own management flows and lets you place the capture interface on the segment you actually want to watch. In IPS mode you go further and use a pair of interfaces (-i eth0:eth1), since traffic has to cross Snort for it to be blocked.-A console or into /var/log/snort. In IPS (inline) mode it is started with -Q --daq afpacket and a pair of interfaces, traffic genuinely flows through it, and rules switched from alert to drop or reject actually block packets. IPS mode is considerably more complex and must be handled with extreme care: an overly broad rule cuts legitimate traffic./etc/snort/rules/. In practice you automate it with a rule manager such as Oinkmaster or PulledPork, which fetches and applies updates for you. Keep your own rules in local.rules, separate from the official rule files, so an update never wipes them out.Did you enjoy this article?
Comments