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

How to set ipWhitelist for all device can acess to MagicMirror v2?

Scheduled Pinned Locked Moved Troubleshooting
18 Posts 6 Posters 11.4k 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.
  • A Offline
    AAPS
    last edited by AAPS Feb 2, 2017, 9:54 PM Feb 2, 2017, 9:52 PM

    If having “/24” in my ipWhitelist works, should it be fine without changing to “/120” ? This has been confusing me lately, so any help would be appreciated.

    M 1 Reply Last reply Feb 2, 2017, 10:21 PM Reply Quote 0
    • M Offline
      morozgrafix Moderator @AAPS
      last edited by morozgrafix Feb 2, 2017, 10:26 PM Feb 2, 2017, 10:21 PM

      @Mykle1 Glad it all worked out!

      @AAPS Theoretically you are fine but you are whitelisting a lot of IPs. Assuming you are talking about IPv6. Here is a brief explanation example:

      192.168.1.1/24 subnet mask on IPv4 network would cover IP 256 IP addresses ranging from 192.168.1.0 to 192.168.1.255.

      Start IP: 192.168.1.0
      End IP: 192.168.1.255
      Addresses: 256
      Class: Class C
      Netmask: 255.255.255.0.
      Binary: 11111111	11111111	11111111	00000000
      

      ::ffff:192.168.1.1/120 subnet mask on IPv6 network would also cover 256 IP addresses

      Start Range: 0:0:0:0:0:ffff:c0a8:100 (IPv4 equivalent of 192.168.1.0)
      End Range: 0:0:0:0:0:ffff:c0a8:1ff (IPv4 equivalent of 192.168.1.255)
      Addresses: 256
      

      Now if you have ::ffff:192.168.1.1/24 subnet mask on IPv6 network, you would allow 20282409603651670423947251286016 IPs to access your mirror. Which seems to be alot, but remember that devices most likely have to be on your home network in the first place.

      Start Range: 0:0:0:0:0:0:0:0
      End Range: 0:ff:ffff:ffff:ffff:ffff:ffff:ffff
      Addresses: 20282409603651670423947251286016
      

      Here is a helpful cheat sheet for IPv4 and IPv6 subnet masks: https://kthx.at/subnetmask/

      Hope this helps.

      1 Reply Last reply Reply Quote 0
      • A Offline
        AAPS
        last edited by Feb 3, 2017, 3:26 AM

        I seem to be fine, but do you recommend that I change anyway?

        M 1 Reply Last reply Feb 3, 2017, 3:31 AM Reply Quote 0
        • M Offline
          morozgrafix Moderator @AAPS
          last edited by Feb 3, 2017, 3:31 AM

          @AAPS It’s totally your call. I don’t think it affects anything as long as your network is closed and secure.

          A 1 Reply Last reply Feb 3, 2017, 4:42 AM Reply Quote 1
          • A Offline
            AAPS @morozgrafix
            last edited by Feb 3, 2017, 4:42 AM

            @morozgrafix Thanks! I am pretty late, but congrats to you and all the other new moderators.

            M 1 Reply Last reply Feb 3, 2017, 4:50 AM Reply Quote 1
            • M Offline
              morozgrafix Moderator @AAPS
              last edited by Feb 3, 2017, 4:50 AM

              @AAPS thank you.

              1 Reply Last reply Reply Quote 0
              • M Offline
                Mykle1 Project Sponsor Module Developer @yawns
                last edited by Feb 3, 2017, 10:54 AM

                @yawns Exactly what I was looking for. Thanks

                Create a working config
                How to add modules

                1 Reply Last reply Reply Quote 1
                • 1
                • 2
                • 2 / 2
                2 / 2
                • First post
                  16/18
                  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