Project

General

Profile

Actions

Bug #14037

closed

PHP Error enabling ICMP6 using EasyRule

Added by Trix Farrar 7 months ago. Updated 3 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Rules / NAT
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.05
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
arm64

Description

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

Hardware is Netgate 7100.

Attached PHP_Errors.log, if that makes things easier.


Files

PHP_errors.log (434 Bytes) PHP_errors.log Log file Trix Farrar, 02/25/2023 02:30 PM
Actions #1

Updated by Jim Pingle 7 months ago

  • Project changed from pfSense Plus to pfSense
  • Category changed from Rules / NAT to Rules / NAT
  • Assignee set to Jim Pingle
  • Target version set to 2.7.0
  • Affected Plus Version deleted (23.01)
  • Plus Target Version set to 23.05
Actions #2

Updated by Jim Pingle 7 months ago

  • Status changed from New to Feedback
  • % Done changed from 0 to 100
Actions #3

Updated by Danilo Zrenjanin 7 months ago

  • Status changed from Feedback to Resolved

I could replicate the issue on the:

23.01-RELEASE (amd64)
built on Fri Feb 10 20:06:33 UTC 2023
FreeBSD 14.0-CURRENT

The patch fixes it successfully. I am marking this ticket as resolved.

Actions #4

Updated by Jim Pingle 3 months ago

  • Affected Version set to 2.7.0
Actions

Also available in: Atom PDF