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

    IPv4 Source Definitions, Line 1: Invalid GeoIP entry!

    Scheduled Pinned Locked Moved pfBlockerNG
    11 Posts 4 Posters 1.2k 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.
    • GertjanG
      Gertjan @jazzl0ver
      last edited by

      @jazzl0ver

      Not only 'Europe' ...
      Any of these :

      95ad9608-f6b4-4752-849e-28ea54a3b537-image.png

      No "help me" PM's please. Use the forum, the community will thank you.
      Edit : and where are the logs ??

      J 1 Reply Last reply Reply Quote 0
      • J
        jazzl0ver @Gertjan
        last edited by

        @Gertjan right. i was able to work this around by commenting out the input validation:

        /*
                                if ($value != 'Disabled' && $_POST["format-{$key_1}"] == 'geoip') {
                                        $k_validate = str_replace('_', '', strstr($_POST["url-{$key_1}"], ' ', TRUE));
                                        if (empty(pfb_filter($k_validate, PFB_FILTER_ALNUM, 'Category_edit'))) {
                                                $input_errors[] = "{$type} Source Definitions, Line {$line}: "
                                                                . "Invalid GeoIP entry!";
                                        }
                                }
        */
        

        in /usr/local/www/pfblockerng/pfblockerng_category_edit.php

        M 1 Reply Last reply Reply Quote 1
        • M
          michmoor LAYER 8 Rebel Alliance @jazzl0ver
          last edited by

          @jazzl0ver Whats the best way to alert the maintainer?

          Firewall: NetGate,Palo Alto-VM,Juniper SRX
          Routing: Juniper, Arista, Cisco
          Switching: Juniper, Arista, Cisco
          Wireless: Unifi, Aruba IAP
          JNCIP,CCNP Enterprise

          J 1 Reply Last reply Reply Quote 0
          • J
            jazzl0ver @michmoor
            last edited by

            @michmoor is that a sarcasm? meaning I'd better go and create a redmine issue?

            M 1 Reply Last reply Reply Quote 0
            • M
              michmoor LAYER 8 Rebel Alliance @jazzl0ver
              last edited by

              @jazzl0ver no not at all legit asking.

              I ended up creating a redmine for this issue.

              Firewall: NetGate,Palo Alto-VM,Juniper SRX
              Routing: Juniper, Arista, Cisco
              Switching: Juniper, Arista, Cisco
              Wireless: Unifi, Aruba IAP
              JNCIP,CCNP Enterprise

              1 Reply Last reply Reply Quote 1
              • S
                smolka_J
                last edited by

                Another possible work around, rather than manually creating that rule as ALIAS match from the IPv4 tab, have you tried using the GeoIP tab to set Europe or others as ALIAS match on that tab? I don't get that validation error from the GeoIP tab setting them to any ALIAS variant, could also save from double loading lists.

                J 1 Reply Last reply Reply Quote 0
                • J
                  jazzl0ver @smolka_J
                  last edited by

                  @smolka_J that worked, thanks. but I intended to include several locations as "TheWest" and then use them all with a single firewall rule.

                  GertjanG S 2 Replies Last reply Reply Quote 0
                  • GertjanG
                    Gertjan @jazzl0ver
                    last edited by

                    @jazzl0ver said in IPv4 Source Definitions, Line 1: Invalid GeoIP entry!:

                    "TheWest"

                    That would be a ... a list with IP networks that covers what, half the "IPv4 Internet" ?
                    A pretty big list.
                    A couple of what, millions (?) of firewall IP network entries ... All loaded into pf when it starts and reloads ... and every entry of this list is tested for every packet stream belonging to a potential new firewall state, if a match was found.

                    Let's say you've use the "TheWest" list as a whitelist list.
                    So, when a load of connections comes in from a network not on the list (the "East" ^^), the entire list has to be traversed, and at the end the IP gets blocked as no match was found. This means : thousands of times per second the entire 'million' list has to be traversed.
                    You get where this is going ?

                    No "help me" PM's please. Use the forum, the community will thank you.
                    Edit : and where are the logs ??

                    J 1 Reply Last reply Reply Quote 0
                    • S
                      smolka_J @jazzl0ver
                      last edited by

                      @jazzl0ver Manually adding the local URL for the continent file like /usr/local/share/GeoIP/cc/Europe_v4.txt with format set to Auto does look to work otherwise as the info box notes, just not the autocomplete entry for continents when the state is set to ON for it but individual country entries do seem to work fine for autocomplete otherwise. Strangely enough, if you have the State option set to OFF then autocomplete continent entries do pass validation to save successfully but same message if you change it to ON after. BBCan177 is looking into it

                      1 Reply Last reply Reply Quote 1
                      • J
                        jazzl0ver @Gertjan
                        last edited by

                        @Gertjan i'm aware of all of that, thanks. the thread was about a bug in the pfB, not about the right usage

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