• 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.

ipWhitelist doesn't work for me

Scheduled Pinned Locked Moved Bug Hunt
8 Posts 6 Posters 4.5k Views 6 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.
  • B Offline
    Beh
    last edited by Beh Jan 2, 2017, 12:44 AM Jan 2, 2017, 12:44 AM

    I just updated my mirror to 2.1.0 and tried to add some IPs to the whitelist, but it doesn’t work. I am not able to access the mirror from an IP added to the ipWhitelist array.

    The array in my config looks like this:
    ipWhitelist: ["10.0.0.55", "192.168.178.77", "127.0.0.1", "::ffff:127.0.0.1", "::1"]

    Do you have any idea, why this does not work?

    /cc @Jopyth and @MichMich

    1 Reply Last reply Reply Quote 0
    • B Offline
      Beh
      last edited by Jan 2, 2017, 12:57 AM

      OK, after some trying, I think this related to the IPv6 configuration of my network and/or the Pi.

      When I add "::ffff:192.168.178.77" to the list, I can access the Mirror via browser by entering the IPv4 address of the mirror into the browser’s address field.

      M 1 Reply Last reply Jan 2, 2017, 1:05 AM Reply Quote 0
      • M Offline
        MikeColes @Beh
        last edited by Jan 2, 2017, 1:05 AM

        @Beh , I ran into the same problem with the same solution. A /24 CIDR didn’t work, probably because of the IPv6 format.

        Has anyone played around with getting a correct network format in use?

        1 Reply Last reply Reply Quote 0
        • M Offline
          mochman Module Developer
          last edited by Jan 2, 2017, 3:06 AM

          I got it to work using "::ffff:192.168.1.1/24".

          1 Reply Last reply Reply Quote 0
          • M Offline
            MichMich Admin
            last edited by Jan 2, 2017, 12:05 PM

            If you check your node console output, It should show the blocked IP.

            L 1 Reply Last reply Jan 2, 2017, 12:23 PM Reply Quote 0
            • L Offline
              lolobyte @MichMich
              last edited by Jan 2, 2017, 12:23 PM

              @MichMich

              how to check this?

              1 Reply Last reply Reply Quote 0
              • D Offline
                DazDavid
                last edited by Jan 2, 2017, 3:08 PM

                @mochman Thanks for the hint. That is also working for a whole range like “::ffff:192.168.2.0/24”

                M 1 Reply Last reply Jan 2, 2017, 7:36 PM Reply Quote 1
                • M Offline
                  mochman Module Developer @DazDavid
                  last edited by mochman Jan 2, 2017, 8:28 PM Jan 2, 2017, 7:36 PM

                  @DazDavid Yeah, I messed up with the CIDR notation for IPv6. The reason why “/24” works is because that gives you practically every IP (especially every IP4 address). If you want to just have 192.168.X.0 - 192.168.X.255 whitelisted, you should use "::ffff:192.168.X.1/120".

                  I added a HOWTO guide here to help out everyone.

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  1 / 1
                  • First post
                    4/8
                    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