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

Scheduled Pinned Locked Moved Tutorials
83 Posts 36 Posters 126.0k Views 34 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.
  • X Offline
    xer0design
    last edited by Jan 3, 2017, 4:21 AM

    Not a fan of this addition; would have rathered it was something you enable rather than disable.

    For anyone wondering how to allow all ips, use:

    ipWhitelist: ["::fff:0.0.0.0/1", "::fff:128.0.0.0/2", "::fff:192.0.0.0/3", "::fff:224.0.0.0/4", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
    
    L S 2 Replies Last reply Jan 3, 2017, 6:30 AM Reply Quote 3
    • L Offline
      looolz @xer0design
      last edited by Jan 3, 2017, 6:30 AM

      @xer0design

      Thanks! That worked for me!

      1 Reply Last reply Reply Quote 0
      • L Offline
        looolz @mochman
        last edited by Jan 3, 2017, 6:33 AM

        @mochman

        Thanks, I do see a inet6 address with the command ifconfig.

        I tried to add 10.0.0.95 to the config with no success :-(

        But @xer0design’s tip worked!

        1 Reply Last reply Reply Quote 1
        • S Offline
          schlachtkreuzer6 @xer0design
          last edited by Jan 3, 2017, 3:01 PM

          @xer0design verry nice thx!

          1 Reply Last reply Reply Quote 0
          • B Offline
            BenRoe Module Developer
            last edited by BenRoe Jan 8, 2017, 2:48 PM Jan 8, 2017, 2:43 PM

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • A Offline
              AAPS @mochman
              last edited by Feb 2, 2017, 11:53 AM

              @mochman I have put “/24” in my ipWhitelist. Looking around the forum, I’ve seen that “/120” might help. What I have now seems to be working for my devices, so is there a difference between “/24” and “/120” that I should know about? Which is better?

              M 1 Reply Last reply Feb 3, 2017, 1:09 AM Reply Quote 0
              • M Offline
                mochman Module Developer @AAPS
                last edited by Feb 3, 2017, 1:09 AM

                @AAPS If /24 is working for you then stick with it. The /120 just allows less IPs the ability to access your mirror.

                If you aren’t forwarding your pi’s ports outside your local network it really shouldn’t matter.

                1 Reply Last reply Reply Quote 0
                • S Offline
                  Snille Module Developer
                  last edited by Snille Mar 17, 2017, 9:48 AM Mar 17, 2017, 8:23 AM

                  Hi all, anybody else having trouble accessing the mirror remotely? I have reinstalled mm (development branch and nodejs v7.7.3), default config. only added allow access from my “lan”.
                  The mirror shows up on the local screen, so it works.

                  Mirrors IP: 10.0.0.112/24

                  ipWhitelist: ["::ffff:10.0.0.1/120", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
                  

                  Still I get

                  0|mm       | Access denied to IP address: 10.0.0.99
                  

                  In the log.

                  My client IP: 10.0.0.99/24

                  Just to be sure, here is my full config:

                  /* Magic Mirror Config Sample
                   *
                   * By Michael Teeuw http://michaelteeuw.nl
                   * MIT Licensed.
                   */
                  
                  var config = {
                  	port: 8080,
                  	ipWhitelist: ["::ffff:10.0.0.1/120", "127.0.0.1", "::ffff:127.0.0.1", "::1"],
                  	language: "en",
                  	timeFormat: 24,
                  	units: "metric",
                  
                  	modules: [
                  		{
                  			module: "alert",
                  		},
                  		{
                  			module: "updatenotification",
                  			position: "top_bar"
                  		},
                  		{
                  			module: "clock",
                  			position: "top_left"
                  		},
                  		{
                  			module: "calendar",
                  			header: "US Holidays",
                  			position: "top_left",
                  			config: {
                  				calendars: [
                  					{
                  						symbol: "calendar-check-o ",
                  						url: "webcal://www.calendarlabs.com/templates/ical/US-Holidays.ics"
                  					}
                  				]
                  			}
                  		},
                  		{
                  			module: "compliments",
                  			position: "lower_third"
                  		},
                  		{
                  			module: "currentweather",
                  			position: "top_right",
                  			config: {
                  				location: "New York",
                  				locationID: "",  //ID from http://www.openweathermap.org
                  				appid: "YOUR_OPENWEATHER_API_KEY"
                  			}
                  		},
                  		{
                  			module: "weatherforecast",
                  			position: "top_right",
                  			header: "Weather Forecast",
                  			config: {
                  				location: "New York",
                  				locationID: "5128581",  //ID from http://www.openweathermap.org
                  				appid: "YOUR_OPENWEATHER_API_KEY"
                  			}
                  		},
                  		{
                  			module: "newsfeed",
                  			position: "bottom_bar",
                  			config: {
                  				feeds: [
                  					{
                  						title: "New York Times",
                  						url: "http://www.nytimes.com/services/xml/rss/nyt/HomePage.xml"
                  					}
                  				],
                  				showSourceTitle: true,
                  				showPublishDate: true
                  			}
                  		},
                  	]
                  
                  };
                  
                  /*************** DO NOT EDIT THE LINE BELOW ***************/
                  if (typeof module !== "undefined") {module.exports = config;}
                  

                  Everything is default, no modules installed… What am I missing?!

                  If you cant find it, make it and share it!
                  Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

                  1 Reply Last reply Reply Quote 0
                  • M Offline
                    mochman Module Developer
                    last edited by Mar 17, 2017, 10:48 AM

                    Have you tried adding "10.0.0.1/24" to the list since it looks like your client is using an IPv4 connection?

                    S 1 Reply Last reply Mar 17, 2017, 12:33 PM Reply Quote 1
                    • S Offline
                      Snille Module Developer @mochman
                      last edited by Mar 17, 2017, 12:33 PM

                      @mochman Hmm… Clearly I have missunderstood something. I thought this: “::ffff:10.0.0.1/120” was to allow my 10.0.0.x network to access, I have used that from the beginning and it has worked. But yesterday it stopped working. So I added as you suggested “10.0.0.1/24” and it works… So, Thank you! :)

                      In the instructions in the first post, it’s suppose to be “::ffff:10.0.0.1/120” for a full C-Net. But… Not any more obviously. :)

                      Thanks again! I’m all happy now!

                      If you cant find it, make it and share it!
                      Modules: MMM-homeassistant-sensors, MMM-Modulebar, MMM-Profilepicture, MMM-Videoplayer

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