• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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 12.2k 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.
  • P Offline
    pingywon
    last edited by Aug 26, 2017, 3:10 PM

    Anyone else have any input. Im kinda stuck here. I have looked at other threads and have not drawn any conclusions

    1 Reply Last reply Reply Quote 0
    • D Offline
      da4throux
      last edited by Aug 26, 2017, 9:19 PM

      Not my area, but I was reading this: https://forum.magicmirror.builders/topic/1326/ipwhitelist-howto/8
      and it mentions that the whitelisting on a range is for IPv6 , so maybe not working with IPv4.
      Hope that help

      M 1 Reply Last reply Aug 26, 2017, 9:29 PM Reply Quote 0
      • M Offline
        Mykle1 Project Sponsor Module Developer @da4throux
        last edited by Aug 26, 2017, 9:29 PM

        New post:

        https://forum.magicmirror.builders/topic/4701/changing-ipwhitelist-prevents-mirror-from-loading-correctly/8

        Create a working config
        How to add modules

        D 1 Reply Last reply Jul 15, 2018, 1:19 AM Reply Quote 0
        • P Offline
          pingywon
          last edited by Aug 28, 2017, 4:20 PM

          FOUND A WAY TO RESOLVE THIS!

          Add

          cat /etc/modprobe.d/ipv6.conf 
          # Don't load ipv6 by default
          alias net-pf-10 off
          # uncommented
          alias ipv6 off
          # added
          options ipv6 disable_ipv6=1
          # this is needed for not loading ipv6 driver 
          blacklist ipv6
          

          to turn off all IPv6 on the Raspi.
          Than edit all the IPv6 out of your config file.

           },
                  ipWhitelist: [
                          "192.168.0.92",
                          "192.168.0.1/24",
                          "127.0.0.1"
          
          

          I still have the .92 in there from testing. It is not needed.

          did a sudo reboot just for safe measure and now it all seems to be working as intended. No real idea what the actual issue was…but it is resolved. FINALLY! :)

          M 1 Reply Last reply Sep 4, 2017, 12:20 AM Reply Quote 1
          • M Offline
            Mykle1 Project Sponsor Module Developer @pingywon
            last edited by Sep 4, 2017, 12:20 AM

            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 Sep 5, 2017, 2:08 AM

              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

              M P 2 Replies Last reply Sep 5, 2017, 2:12 AM Reply Quote 2
              • M Offline
                Mykle1 Project Sponsor Module Developer @roramirez
                last edited by Sep 5, 2017, 2:12 AM

                @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 Sep 5, 2017, 11:23 AM

                  @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
                  • R Offline
                    rcollie
                    last edited by Sep 13, 2017, 5:39 PM

                    Nice one.

                    1 Reply Last reply Reply Quote 0
                    • Y Offline
                      yours.mukul
                      last edited by Sep 22, 2017, 8:53 PM

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

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 3
                      • 2 / 3
                      • 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