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

    PHP Error in EasyRule "getprotobynumber('icmpv6')"

    Firewalling
    2
    2
    407
    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.
    • T
      Trix 0
      last edited by

      Tried to enable ICMP6 for a host from the system log page to allow a host to ping through and received:

      [20-Feb-2023 22:48:08 CST6CDT] PHP Fatal error: Uncaught TypeError: getprotobynumber(): Argument #1 ($protocol) must be of type int, string given in /etc/inc/easyrule.inc:510
      Stack trace:
      #0 /etc/inc/easyrule.inc(510): getprotobynumber('icmpv6')
      #1 /usr/local/www/easyrule.php(52): easyrule_parse_pass('opt3', 'icmpv6', '2604:a880:800:a...', '2001:470:c075:9...', '', 'inet6')
      #2 {main}
      thrown in /etc/inc/easyrule.inc on line 510

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

        Can you open a Redmine issue for that at https://redmine.pfsense.org/?

        Some of the easyrule code changed to add extra validation and that specific type comes through in a way that doesn't seem to align properly.

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