MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.

    Issue with White list IP(s) not working :(

    Scheduled Pinned Locked Moved Troubleshooting
    23 Posts 11 Posters 16.1k Views 12 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.
    • Mykle1M Offline
      Mykle1 Project Sponsor Module Developer @pingywon
      last edited by

      I just realized something. The machine I’m working on had MM 2.1.1 on it. I upgraded to MM 2.1.2 and lo and behold, the IPWhitelist is as whacked as can be. So, if I gave bad information, which I did, please excuse my oversight.
      Peace!

      Create a working config
      How to add modules

      1 Reply Last reply Reply Quote 0
      • R Offline
        roramirez Core Contributors
        last edited by

        So, After a research about all this mess it up, the problem was a bug inside of ipfilter and MagicMirror too. When I added inside the sample config I’ve using express-ipfilter@0.2.4 In this version has a bug was fixed in 0.3.1 https://github.com/baminteractive/express-ipfilter/commit/4adc5dc33e6ef5086e36a7a56184da7cdcd056bf

        The bug for MagicMirror was fixed some weeks ago,
        https://github.com/MichMich/MagicMirror/commit/a7297d2685f5ed9b6b34df496065f05ee0d36568

        You can using now the develop branch or install express-ipfilter previous of the 0.3.1

        Easy module development with MagicMirror Module Template

        Mykle1M P 2 Replies Last reply Reply Quote 2
        • Mykle1M Offline
          Mykle1 Project Sponsor Module Developer @roramirez
          last edited by

          @roramirez said in Issue with White list IP(s) not working :(:

          You can using now the develop branch or install express-ipfilter previous of the 0.3.1

          Ahh, thank you! :^)

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 1
          • P Offline
            psteimann @roramirez
            last edited by

            @roramirez does that mean that I only have to do an

            npm install express-ipfilter

            from the rooter with my console, if I have the actual magic mirror installed?

            tnx

            Peter

            1 Reply Last reply Reply Quote 0
            • rcollieR Offline
              rcollie
              last edited by

              Nice one.

              1 Reply Last reply Reply Quote 0
              • Y Offline
                yours.mukul
                last edited by

                How to white list all IP(s), to make magicmirror public??

                1 Reply Last reply Reply Quote 0
                • D Offline
                  daikaiju @Mykle1
                  last edited by

                  Disabling IPv6 fixed the issue for me.

                  1 Reply Last reply Reply Quote 1
                  • K Offline
                    knubbl
                    last edited by

                    where did u disable it?

                    bheplerB D 2 Replies Last reply Reply Quote 0
                    • bheplerB Offline
                      bhepler Module Developer @knubbl
                      last edited by bhepler

                      @knubbl - It will be at your router. It depends on the brand, but this sort of thing is usually in the advanced menu.

                      … or you could follow the instructions in the post here.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        daikaiju @knubbl
                        last edited by

                        @knubbl https://www.leowkahman.com/2016/03/19/disable-ipv6-raspberry-raspbian/

                        1 Reply Last reply Reply Quote 0
                        • C Offline
                          chef
                          last edited by chef

                          Are you giving your raspberry pi an ip address of “0.0.0.0”?

                          Why?

                          The address line should be the IP address of your pi.

                          Having it listen on any interface hasn’t really worked well.

                          Then the whitelist is an array of ip address. If you leave it empy (ex. []) then all the devices on your network will be able to access your mirror.

                          This is what mine looks like:

                          var config = {
                          	address: "192.168.2.48", 
                          	port: 8080,
                          	ipWhitelist: [],
                          
                          

                          This especially makes a difference when using the “Restfull-ish” API. It is necessary to give the address line an ip address :)

                          1 Reply Last reply Reply Quote 0

                          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                          With your input, this post could be even better 💗

                          Register Login
                          • 1
                          • 2
                          • 1 / 2
                          • First post
                            Last post
                          Enjoying MagicMirror? Please consider a donation!
                          MagicMirror created by Michael Teeuw.
                          Forum managed by Sam, technical setup by Karsten.
                          This forum is using NodeBB as its core | Contributors
                          Contact | Privacy Policy