• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Entry level question about adding custom rules. Snort won't start w/ rule.

Scheduled Pinned Locked Moved IDS/IPS
2 Posts 2 Posters 1.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H
    holmesjrh
    last edited by Jun 2, 2016, 6:09 PM

    I installed and setup snort Security 3.2.9.1 for my wan interface to just log alerts not blocking.
    I enabled the categories for the gpl2 list.

    https://doc.pfsense.org/index.php/Snort_rules

    So I went to custom rules drop down and adding the following:

    alert tcp any any -> any any ( msg:”DAT”; )

    When I add this snort stops working and I can start the process, but when i enable the interface it kills snort again.

    My alert may not be the correct syntax, but looking at a snort page on alerts it appears to be correct.
    https://www.snort.org/faq/readme-file_ips

    Anyone with experience think I just have bad syntax or did I add a custom rule in the wrong place or this could be an issue with the version of snort package I am running?

    1 Reply Last reply Reply Quote 0
    • B
      bmeeks
      last edited by Jun 3, 2016, 4:26 PM

      Your rule syntax is missing the CLASSIFICATION tag (uses the classtype keyword).  The Snort binary on pfSense wants that in a rule because of some customization done in the CSV output module.  If that section of the rule is missing, it causes problems.

      Bill

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received