Run a Business Network on Linux: Intrusion Detection (Part 4) | Linux Today

Run a Business Network on Linux: Intrusion Detection (Part 4)

Written By
CS
Carla Schroder
Jun 13, 2008

“This is a quick and easy way to test Snort and make sure it’s
doing something. Enter this rule in
/etc/snort/rules/local.rules:

alert tcp any any -> $HOME_NET any (msg:”this is only a
test”; sid:99887766;)

It means “alert on any TCP packet from any IP address and any
port number entering my local network; print the message “this is
only a test” in the logfile, and give this rule a made-up ID number
that hopefully doesn’t conflict with any of the rule SIDs that
already exist in /etc/snort/rules. “


Complete Story

CS

Carla Schroder

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.