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

    pfBlockerNG - why is Luxembourg IP in pfB_NAmerica_v4?

    Scheduled Pinned Locked Moved pfBlockerNG
    26 Posts 4 Posters 2.1k 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.
    • knight-of-niK
      knight-of-ni
      last edited by

      Last time I checked the US hasn't invaded Luxembourg, so imagine my surprise this morning when I got an email from fail2ban, running on my local server, stating 104.244.74.143 was banned after trying to connect to services it should not.

      Calling whois reveals that ip is from Luxembourg.

      The thing is, I've got my pfSense firewall rules configured to only allow IP's found in pfB_NAmerica_v4 for certain services, which is suppossed to put a stop to anything outside the US from kocking on my door.

      Looking at the contents of pfB_NAmerica_v4.txt, sure enough, Luxembourg secretly became part of the US:

      104.244.74.0/26
      104.244.74.64/29
      104.244.74.72/30
      104.244.74.76/31
      104.244.74.79/32
      104.244.74.80/28
      104.244.74.96/27
      104.244.74.128/27 <---- our culprit
      104.244.74.160/28
      104.244.74.176/29
      104.244.74.184/30
      104.244.74.189/32
      104.244.74.190/31
      104.244.74.192/26

      So pfSense and, by extension, pfBlocker are doing exactly what they were programmed to do, but how did this ip range get on the list in the first place?

      Looking at how fragmented the 104.244.74 block is, I am speculating this might be a typo or perhaps this is a recent change that has not been picked up.

      Thoughts?

      1 Reply Last reply Reply Quote 0
      • ?
        A Former User
        last edited by

        The Maxmind database is, in the most charitable way possible, not accurate. IP's are horse traded between entities freely.

        You will need to whitelist what you need to, Maxmind isn't going to fix their free offering.

        Bob.DigB 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          @knight-of-ni said in pfBlockerNG - why is Luxembourg IP in pfB_NAmerica_v4?:

          104.244.74.128

          That is owned by frantech, and sure its a block used by VPS in the Luxembourg DC.. as stated by jwj already - geoip is not something I would call close to accurate ;) The problem is the company is US based, but they use parts of their IP space in different parts of the world..

          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.8, 24.11

          1 Reply Last reply Reply Quote 0
          • knight-of-niK
            knight-of-ni
            last edited by knight-of-ni

            Thanks guys. That is good to know. I had no idea geoip was such a moving target.

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              IP space moves all the time!! We have been selling off some our space, and its moved all over - transferred to ripe.. But yeah that for sure could still be listed that its out of the US, when its not..

              Also currently got a project running were we assigned some space that will be used in the US, but its being advertised out of a ripe ASN number, which could look like its out of the EU vs US, etc..

              Its moving target to be sure - and can never be sure if the database is even updated, or was ever correct ;)

              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.8, 24.11

              1 Reply Last reply Reply Quote 0
              • ?
                A Former User
                last edited by

                Another example. The amazon store app on my (and other families iPhones and iPads) hits a AWS instance that is, according to MaxMind, in china. Go figure...

                1 Reply Last reply Reply Quote 0
                • johnpozJ
                  johnpoz LAYER 8 Global Moderator
                  last edited by johnpoz

                  Well AWS does have 2 location in china - so its possible, wouldn't make a lot of routing sense unless your in that part of the world..

                  https://www.amazonaws.cn/en/about-aws/china/

                  Whats one of these IP they are talking too? Just curious..

                  GeoIP is slick when it works ;) But when it doesn't your like WTF are these idiots thinking ;) We had a /24 in our space that geoip said was in Vietnam... Have no idea where they ever got that idea from, sure and the F never used it there, sure and the F were not advertising it out of there.. Tried for ever to get it fixed up, They say they update ever 2nd tuesday of the month or something.. We stopped using that space completely - use to be the IP used by proxy out of FL location.. So users hitting that IP would get stuff like they were in vietnam, banks would would prevent users from logging in, etc.. it was PITA ;)

                  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.8, 24.11

                  1 Reply Last reply Reply Quote 0
                  • ?
                    A Former User
                    last edited by

                    54.222.63.5
                    54.222.60.218
                    54.222.60.25

                    Amazon app works if that is blocked, but it will hit those every three or four days trying to update something.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      A Former User
                      last edited by

                      Oh, we're not in Asia now. NC ATM. Used to live in Singapore.

                      1 Reply Last reply Reply Quote 0
                      • johnpozJ
                        johnpoz LAYER 8 Global Moderator
                        last edited by

                        Well its some 300ms away from me - so yeah could be in freaking China ;)

                        Looking at a trace - yeah first one is in china for sure - you can see it hitting bjtelecom

                        17     *      314 ms     *     bj141-135-161.bjtelecom.net [219.141.135.161]
                         18     *      303 ms   298 ms  42.220.120.106.static.bjtelecom.net [106.120.220.42]
                        

                        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.8, 24.11

                        1 Reply Last reply Reply Quote 0
                        • ?
                          A Former User
                          last edited by A Former User

                          Thanks for having a think about it. I really should get rid of those outbound geoip blocks. Blunt force weapon that solves nothing useful for me. Maybe block something outbound that is more targeted. ET Comp or one of the firehol lists as a canary...

                          Better end point security wouldn't hurt for me either. Need to not be so lazy ;)

                          Thanks again!

                          1 Reply Last reply Reply Quote 0
                          • johnpozJ
                            johnpoz LAYER 8 Global Moderator
                            last edited by johnpoz

                            You sure those are AWS? I can not find those prefixes in there published IP blocks

                            https://ip-ranges.amazonaws.com/ip-ranges.json

                            I see ones close.. But not any that those IPs fall into exactly.. Maybe missing??? So for example I see a

                            54.222.64.0/23 but I don't see anything that would cover 54.222.63

                            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.8, 24.11

                            1 Reply Last reply Reply Quote 0
                            • ?
                              A Former User
                              last edited by

                              I think they are, could they be gstatic addresses? I do miss Pi-Hole, could answer the question in a second...

                              1 Reply Last reply Reply Quote 0
                              • johnpozJ
                                johnpoz LAYER 8 Global Moderator
                                last edited by johnpoz

                                @jwj said in pfBlockerNG - why is Luxembourg IP in pfB_NAmerica_v4?:

                                54.222.63.5

                                That is this
                                Amazon EC2 BJS Prefix

                                So its not actual AWS ;)

                                dl.amazon.cn points to it for example..

                                Your not anywhere near china are you? Curious why you would be going there to be honest..

                                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.8, 24.11

                                1 Reply Last reply Reply Quote 0
                                • ?
                                  A Former User
                                  last edited by A Former User

                                  Wonder what it's after from that? Profile data? It's the problem with encrypting EVERYTHING. If it's not personally identifying why is it encrypted? Can't sniff to see what it is...

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    A Former User
                                    last edited by

                                    No, North Carolina. Used to live in the region. Hong Kong a long time ago, before there was Amazon. Malaysia, Singapore, Thailand and Indonesia more recently. Singapore until 2016 most recently.

                                    1 Reply Last reply Reply Quote 0
                                    • johnpozJ
                                      johnpoz LAYER 8 Global Moderator
                                      last edited by johnpoz

                                      Just looked in my dns logs, and yeah my IPAD is looking that up...

                                      That 218 IP is
                                      www.amazon.cn. 1833 IN A 54.222.60.218

                                      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.8, 24.11

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        A Former User
                                        last edited by

                                        Curious. Some jurisdictional thing? Maybe they have just F'd up their load balancing.

                                        1 Reply Last reply Reply Quote 0
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by

                                          All comes down to how far you want to go down the tinfoil hat hole ;)

                                          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.8, 24.11

                                          ? 1 Reply Last reply Reply Quote 0
                                          • ?
                                            A Former User @johnpoz
                                            last edited by

                                            @johnpoz Come on now. This is a serious time, pandemic and all. There is no time for humor ☺

                                            I have no interest in chasing rabbits. :) Thanks man, be well!

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