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

    URL Table Aliases Ports

    Scheduled Pinned Locked Moved Firewalling
    1 Posts 1 Posters 156 Views 1 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.
    • T Offline
      the-iuser
      last edited by

      Hi,

      When I try to add an "URL Table Alias" for a port based listI get the following error:

      PHP ERROR: Type: 1, File: /etc/inc/filter.inc, Line: 1788, Message: Uncaught TypeError: Unsupported operand types: string + int in /etc/inc/filter.inc:1788
      Stack trace:
      #0 /etc/inc/filter.inc(2854): filter_generate_reflection_proxy(Array, '', Array, 'any', 'XX.XX.XX.XX...', 19002, Array)
      #1 /etc/inc/filter.inc(356): filter_nat_rules_generate()
      #2 /etc/rc.filter_configure_sync(32): filter_configure_sync()
      #3 {main}
      thrown @ 2025-03-11 16:15:09
      

      I referenced to the doc.
      I also checked the source code of the filter.inc

      if (is_ipaddr($FilterIflist[$natif]['ip'])) {
      	$dstaddr = $FilterIflist[$natif]['ip'];
      } else {
      	return "";
      }
      

      It does return an empty string. It looks like the filter_generate_reflection_proxy does handle port list the same as IP lists?
      When I disabled "NAT reflection" in my NAT rule the error disappeared. Is this a bug which needs to be reported to redmine or am I doing something wrong?

      Kind regards

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