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

Error when creating whitelist

Scheduled Pinned Locked Moved pfBlockerNG
8 Posts 5 Posters 636 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.
  • C
    cjbujold
    last edited by cjbujold Dec 18, 2022, 4:12 PM Dec 18, 2022, 3:32 PM

    Trying to create a white list and cannot get pass error. The alias Permitport contains port 80 and 443. When I save the Alias disapears and is not saved. Is this the issue?

    What setting do I have wrong?

    424ef217-225f-4906-82e8-a7939a13fb2f-image.png

    T S 2 Replies Last reply Dec 18, 2022, 5:00 PM Reply Quote 0
    • T
      Tzvia @cjbujold
      last edited by Dec 18, 2022, 5:00 PM

      @cjbujold What are you actually trying to accomplish? If you only wish to whitelist some websites, for example, that are being blocked by a feed... that's not how to do it. I just go into DNSBL, scroll down to DNSBL WHITELIST and add the domains there.

      I do have a couple of 'allow' lists, like the DNS rootservers, just to make sure that they don't end up blocked by something else as I don't forward my DNS to GOOGLE or whoever. So I provided the link to the list in the "Source Definitions" and set it to allow outbound, as the inbound will be allowed as it is a reply to my outbound request. However, you have nothing listed there, no IP list. And allowing some IP(s) INBOUND unsolicited isn't the best idea under most conditions.

      However I am seeing the same issue with the alias disappearing when I SAVE since updating to PFB 3.1.0_9.

      Tzvia

      Current build:
      Hunsn/CWWK Pentium Gold 8505, 6x i226v 'micro firewall'
      16 gigs ram
      500gig WD Blue nvme
      Using modded BIOS (enabled CSTATES)
      PFSense 2.72-RELEASE
      Enabled Intel SpeedShift
      Snort
      PFBlockerNG
      LAN and 5 VLANS

      S 1 Reply Last reply Jan 4, 2023, 5:10 PM Reply Quote 0
      • S
        SteveITS Galactic Empire @cjbujold
        last edited by Dec 18, 2022, 5:04 PM

        @cjbujold Permit Inbound on all ports on WAN would allow those IPs access to your pfSense GUI/SSH ports so it's presumably a safety check. If you really really want that you could use Alias Native and then create your own firewall rule, but as the warning says I'd really recommend against that.

        Pre-2.7.2/23.09: Only install packages for your version, or risk breaking it. Select your branch in System/Update/Update Settings.
        When upgrading, allow 10-15 minutes to restart, or more depending on packages and device speed.
        Upvote 👍 helpful posts!

        1 Reply Last reply Reply Quote 0
        • C
          cjbujold
          last edited by Dec 19, 2022, 6:27 PM

          The issue is that I have several servers in the back (HAProxy) but some outside users IP are being blocked by PFBlockerng. I want to allow specific IP addresses to never be block from getting to the the web servers.

          Is this a bug in version 3.2.0_9? I'm starting to think that the Alias disappearing may indicate a bug.

          Is there any other way to always permit specific IP to get access to the internal web sites?

          B 1 Reply Last reply Dec 21, 2022, 9:09 PM Reply Quote 0
          • B
            BBcan177 Moderator @cjbujold
            last edited by Dec 21, 2022, 9:09 PM

            @cjbujold said in Error when creating whitelist:

            The issue is that I have several servers in the back (HAProxy) but some outside users IP are being blocked by PFBlockerng. I want to allow specific IP addresses to never be block from getting to the the web servers.
            Is this a bug in version 3.2.0_9? I'm starting to think that the Alias disappearing may indicate a bug.
            Is there any other way to always permit specific IP to get access to the internal web sites?

            pfSense is a stateful firewall, so by default all Inbound is blocked and outbound is allowed.

            When you try to use Permit_Inbound or Permit_Both, and do not add any restrictions on where to allow the Inbound (Advanced Inbound Firewall Rule Settings), it will report that error so that users don't open their whole network to those IPs in this Permit Alias.
            So I would open the Advanced Inbound Firewall Rule settings, and add to which internal LAN IPs and Ports to allow these IPs access to.
            You can also use "Alias Permit", and then manually create your firewall rules as needed.

            "Experience is something you don't get until just after you need it."

            Website: http://pfBlockerNG.com
            Twitter: @BBcan177  #pfBlockerNG
            Reddit: https://www.reddit.com/r/pfBlockerNG/new/

            1 Reply Last reply Reply Quote 0
            • S
              serbus @Tzvia
              last edited by Jan 4, 2023, 5:10 PM

              @tzvia said in Error when creating whitelist:

              However I am seeing the same issue with the alias disappearing when I SAVE since updating to PFB 3.1.0_9.

              Hello!

              I am seeing the same bug.

              John

              Lex parsimoniae

              S 1 Reply Last reply Jan 4, 2023, 7:30 PM Reply Quote 0
              • S
                serbus @serbus
                last edited by Jan 4, 2023, 7:30 PM

                Hello!

                A quick, untested, use at your own risk code hack that could possibly get this working on 3.1.0_9 would be to change line 443 in
                /usr/local/www/pfblockerngpfblockerng_category_edit.php

                from :

                elseif (!array_key_exists($_POST[$s_option], ${"options_$s_option"})) {
                

                to:

                elseif (!array_key_exists($_POST[$s_option], ${"options_$s_option"}) && !in_array($_POST[$s_option], ${"options_$s_option"})) {
                

                YMMV

                John

                Lex parsimoniae

                B 1 Reply Last reply Jan 9, 2023, 3:42 PM Reply Quote 0
                • B
                  BBcan177 Moderator @serbus
                  last edited by Jan 9, 2023, 3:42 PM

                  @serbus said in Error when creating whitelist:

                  A quick, untested, use at your own risk code hack that could possibly get this working on 3.1.0_9 would be to change line 443 in
                  /usr/local/www/pfblockerngpfblockerng_category_edit.php

                  This would just bypass the validation completely for other variables also. But it will temporarily fix the issue. This will be fixed in the next version. I posted a patch in another thread.

                  "Experience is something you don't get until just after you need it."

                  Website: http://pfBlockerNG.com
                  Twitter: @BBcan177  #pfBlockerNG
                  Reddit: https://www.reddit.com/r/pfBlockerNG/new/

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