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

Dshield reporting

Plus 23.01 Development Snapshots (Retired)
3
5
495
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
    ltolbert
    last edited by Dec 17, 2022, 5:07 PM

    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
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Dec 19, 2022, 6:44 PM

      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
      • S
        stephenw10 Netgate Administrator
        last edited by Dec 19, 2022, 11:13 PM

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

        L 1 Reply Last reply Dec 19, 2022, 11:23 PM Reply Quote 1
        • L
          ltolbert @stephenw10
          last edited by Dec 19, 2022, 11:23 PM

          @stephenw10 Yes.

          L 1 Reply Last reply Dec 19, 2022, 11:39 PM Reply Quote 0
          • L
            ltolbert @ltolbert
            last edited by Dec 19, 2022, 11:39 PM

            @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
            1 out of 5
            • First post
              1/5
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.