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

    snort blocked link alert

    Scheduled Pinned Locked Moved webGUI
    4 Posts 2 Posters 465 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.
    • A
      aminbaik
      last edited by

      Hello,
      can I edit the blocked page in snort so I can add a link to the items in it that is linked to related record in alerts ?
      thanks.

      1 Reply Last reply Reply Quote 0
      • bmeeksB
        bmeeks
        last edited by

        Well, if you can code in PHP, you can give it a try. The two files are /usr/local/www/snort/snort_alerts.php and /usr/local/www/snort/snort_blocked.php.

        Any changes you make will be overwritten the next time you update the Snort package. Also be aware that what you want to do is not a trivial task.

        The BLOCKED tab gives you time and date of the alert (and there can very well be several alerts related to a single IP). You can find the alert that caused a block quite easily on the ALERTS tab by sorting that page by the Date column. Simpy click the Date column header to sort.

        1 Reply Last reply Reply Quote 0
        • A
          aminbaik
          last edited by

          where is the function that is import the alert to blocked page ?

          1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks
            last edited by

            There is no single function. The entire bottom half of the BLOCKED page code is dedicated to reading the alert log, parsing the results and then displaying them on the web page.

            What you want to do will require rewriting large parts of the ALERTS tab code as well. The code currently saves no sort of "ID" that uniquely identifies each alert entry in the log, so creating a URL link from the BLOCKED tab to the ALERTS tab is not feasible without also rewriting the ALERTS tab code.

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.