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

Error adding source to ipv4 rule in "Advanced Outbound Firewall Rule Settings"

Scheduled Pinned Locked Moved pfBlockerNG
9 Posts 4 Posters 799 Views
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.
  • J
    jnuser
    last edited by Dec 11, 2023, 8:29 PM

    I have the following error, I need to add a source to my blocking rule made in IP > IPV4, when I go to Error adding source to ipv4 rule in "Advanced Outbound Firewall Rule Settings" I enable the source option, add both alias and ip, it gives the same fatal error in php.

    "Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:447 Stack trace: #0 {main} thrown in /usr/local/www/pfblockerng/pfblockerng_category_edit.php on line 447 PHP ERROR: Type: 1, File: /usr/local/www/pfblockerng/pfblockerng_category_edit.php, Line: 447, Message: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /usr/local/www/pfblockerng/pfblockerng_category_edit.php:447 Stack trace: #0 {main} thrown"

    B J 2 Replies Last reply Dec 12, 2023, 7:58 AM Reply Quote 0
    • J
      jnuser
      last edited by Dec 12, 2023, 3:28 AM

      I did some tests, trying to put other things in place, or changing other settings and the error remains, with no possibility of a solution! I tried to install the two versions that exist and did the tests, the error continues!

      Does anyone have any idea what it could be?

      J 1 Reply Last reply Dec 12, 2023, 3:43 AM Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator @jnuser
        last edited by Dec 12, 2023, 3:43 AM

        @jnuser I use pfblocker aliases in my rules.. Did you validate in the diagnostic section, tables that the table is populated correctly?

        Not even sure why a pfblocker anything would come up in a firewall rule, are you not using native aliases in your pfblocker for the alias(es) your creating?

        pfblock.jpg

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        J 1 Reply Last reply Dec 12, 2023, 3:53 AM Reply Quote 0
        • J
          jnuser @johnpoz
          last edited by Dec 12, 2023, 3:53 AM

          @johnpoz said in Error adding source to ipv4 rule in "Advanced Outbound Firewall Rule Settings":

          ivos no seu pfblocker para o(s) alias(s) que você está criando?

          So, in this case you are creating your own rules, right?

          I was trying to use the rules directly from pfblocker, without notice or create them manually after pointing to the pfblocker alias

          J 1 Reply Last reply Dec 12, 2023, 3:58 AM Reply Quote 0
          • J
            johnpoz LAYER 8 Global Moderator @jnuser
            last edited by Dec 12, 2023, 3:58 AM

            @jnuser Yeah I don't let pfblocker create rules. I just create the aliases and then use those aliases in my own rules..

            Not really of fan of anything creating/editing or moving rules on its own.. While I love pfblocker - I love that it allows you this choice to just create your own aliases to use in your firewall rules.

            An intelligent man is sometimes forced to be drunk to spend time with his fools
            If you get confused: Listen to the Music Play
            Please don't Chat/PM me for help, unless mod related
            SG-4860 24.11 | Lab VMs 2.7.2, 24.11

            J 1 Reply Last reply Dec 12, 2023, 4:03 AM Reply Quote 0
            • J
              jnuser @johnpoz
              last edited by Dec 12, 2023, 4:03 AM

              @johnpoz

              interesting, thank you very much, I'll do it like that then... Another thing, since you're messing with the glanulation patch and word blocking, can we manage it by the rules?

              1 Reply Last reply Reply Quote 0
              • B
                Bob.Dig LAYER 8 @jnuser
                last edited by Dec 12, 2023, 7:58 AM

                @jnuser said in Error adding source to ipv4 rule in "Advanced Outbound Firewall Rule Settings":

                I have the following error, I need to add a source to my blocking rule made in IP > IPV4, when I go to Error adding source to ipv4 rule in "Advanced Outbound Firewall Rule Settings" I enable the source option, add both alias and ip

                What do you mean by that: add both? have you read the warning beneath it? Make a screenshot.

                1 Reply Last reply Reply Quote 0
                • J
                  johnpoz LAYER 8 Global Moderator @jnuser
                  last edited by johnpoz Dec 12, 2023, 12:08 PM Dec 12, 2023, 12:07 PM

                  @jnuser said in Error adding source to ipv4 rule in "Advanced Outbound Firewall Rule Settings":

                  "Advanced Outbound Firewall Rule Settings"

                  Sorry must of read over that - why would you be using pfblocker in outbound nat rules as source???

                  The only "source" in the outbound nat would be your local IPs.. How why would they be in pfblocker?

                  An intelligent man is sometimes forced to be drunk to spend time with his fools
                  If you get confused: Listen to the Music Play
                  Please don't Chat/PM me for help, unless mod related
                  SG-4860 24.11 | Lab VMs 2.7.2, 24.11

                  1 Reply Last reply Reply Quote 0
                  • S
                    sengork
                    last edited by Dec 15, 2023, 12:02 PM

                    I'm facing the same issue when attempting to perform outbound block for a set of ASNs and a custom source. See:

                    https://redmine.pfsense.org/issues/14523

                    1 Reply Last reply Reply Quote 0
                    7 out of 9
                    • First post
                      7/9
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                      This community forum collects and processes your personal information.
                      consent.not_received