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

    Dshield reporting

    Scheduled Pinned Locked Moved Plus 23.01 Development Snapshots (Retired)
    5 Posts 3 Posters 541 Views 3 Watching
    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.
    • L Offline
      ltolbert
      last edited by

      I report firewall activity to Dshield using their script "dshieldpfsense.php" on my Netgate 1100. After upgrading to 23.01 Beta this script fails with :

      PHP ERROR: Type: 1, File: /root/bin/dshieldpfsense.php, Line: 158, Message: Uncaught TypeError: Cannot access offset of type string on string in /root/bin/dshieldpfsense.php:158.

      I wanted to check if anyone knows if any libraries changed that would require additional includes for php scripts?

      I have reported this to Dshield (ISC) as well.

      Thanks

      1 Reply Last reply Reply Quote 0
      • jimpJ Offline
        jimp Rebel Alliance Developer Netgate
        last edited by

        They need to update the code in their script to be compatible with PHP 8.1.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 2
        • stephenw10S Offline
          stephenw10 Netgate Administrator
          last edited by

          This I assume?
          https://github.com/jullrich/dshieldpfsense

          L 1 Reply Last reply Reply Quote 1
          • L Offline
            ltolbert @stephenw10
            last edited by

            @stephenw10 Yes.

            L 1 Reply Last reply Reply Quote 0
            • L Offline
              ltolbert @ltolbert
              last edited by

              @ltolbert I have modified the script to exclude records like "logfile turned over due to size" and new protocols like ",sctp,". These records seem to cause the function "parse_firewall_log_line" (in syslog.inc) to not populate index names in the array "flent" and that causes the error I noted above. I think Dshield needs to review the logic of this script. I have it working but any new protocol or unknown line in the flter.log will break it again. I will add it has been fun learning about php scripts as I am self trained so I'm sure I have made some mistakes..

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