• 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 - still not working

Scheduled Pinned Locked Moved Solved Troubleshooting
10 Posts 5 Posters 4.5k Views 5 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
    binderth
    last edited by binderth Nov 8, 2017, 10:03 AM Nov 8, 2017, 10:03 AM

    I’m using MM2 (latest) with pm2.
    in my config.js I tried everything, even this latest one:

    var config = {
    	port: 8080,
    
    	language: 'de',
    	timeFormat: 24,
    	units: 'metric',
    	ipWhitelist: [], 
    

    in startup I get this in the log:

    (...)
    All module helpers loaded.
    Starting server on port 8080 ... 
    You're using a full whitelist configuration to allow for all IPs
    Server started ...
    (...)
    

    I have no iptables in place:

    pi@MagicMirror2:~ $ sudo iptables -L
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    pi@MagicMirror2:~ $ 
    

    stil, if I try to reach the MagicMirror from my Laptop, I see the connection refused message:
    0_1510135311872_3eee7549-ea75-42b6-b4ae-9f0d3be55879-image.png

    I can reach the Pi without problems on SSH-port and even send him MQTT-updates. So I assume, there’s no issue with iptables (as seen above, it’s all open).
    Is there anywhere, I can have a look on to solve this?

    ? 1 Reply Last reply Nov 8, 2017, 10:15 AM Reply Quote 0
    • B Offline
      binderth
      last edited by Nov 8, 2017, 3:57 PM

      oh. not exactly. After some time now, it works! Don’t know, what it took some time, aber now it works!

      1 Reply Last reply Reply Quote 0
      • ? Offline
        A Former User @binderth
        last edited by Nov 8, 2017, 10:15 AM

        @binderth
        Try 0.0.0.0/0 for IpWhiteList.

        B 1 Reply Last reply Nov 8, 2017, 10:41 AM Reply Quote 0
        • B Offline
          binderth @Guest
          last edited by Nov 8, 2017, 10:41 AM

          @Sean said in ipWhitelist - still not working:

          0.0.0.0/0

          same error on the Laptop.
          Still no change with the netstat:

          pi@MagicMirror2:~ $ sudo netstat -lnpt
          Aktive Internetverbindungen (Nur Server)
          Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
          tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      441/sshd
          tcp        0      0 0.0.0.0:1883            0.0.0.0:*               LISTEN      462/mosquitto
          tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      490/vncserver-x11-c
          tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      909/electron.js
          
          M 1 Reply Last reply Nov 8, 2017, 12:07 PM Reply Quote 0
          • M Offline
            Mykle1 Project Sponsor Module Developer @binderth
            last edited by Nov 8, 2017, 12:07 PM

            @binderth

            Add address: "0.0.0.0", to your config, outside your whitelist:

            var config = {
                port: 8080,
                address: "0.0.0.0",
                ipWhitelist: [], // Set [] to allow all IP addresses.
                language: "en",
                timeFormat: 12,
                units: "imperial",
            

            Create a working config
            How to add modules

            B S 2 Replies Last reply Nov 8, 2017, 1:10 PM Reply Quote 1
            • B Offline
              binderth @Mykle1
              last edited by Nov 8, 2017, 1:10 PM

              @Mykle1 no Change here… :(

              1 Reply Last reply Reply Quote 0
              • B Offline
                binderth
                last edited by Nov 8, 2017, 3:57 PM

                oh. not exactly. After some time now, it works! Don’t know, what it took some time, aber now it works!

                1 Reply Last reply Reply Quote 0
                • S Offline
                  schlachtkreuzer6 @Mykle1
                  last edited by Nov 13, 2017, 8:21 PM

                  @Mykle1 THAAANKS! ;) run in the same issue after the latest update

                  M 1 Reply Last reply Nov 13, 2017, 10:42 PM Reply Quote 0
                  • M Offline
                    Mykle1 Project Sponsor Module Developer @schlachtkreuzer6
                    last edited by Nov 13, 2017, 10:42 PM

                    @schlachtkreuzer6 said in ipWhitelist - still not working:

                    @Mykle1 THAAANKS! ;) run in the same issue after the latest update

                    You’re welcome, mate! Enjoy!

                    Create a working config
                    How to add modules

                    S 1 Reply Last reply Dec 29, 2017, 9:56 AM Reply Quote 0
                    • S Offline
                      SimtechBen @Mykle1
                      last edited by Dec 29, 2017, 9:56 AM

                      @Mykle1 Thank you! This fixed a problem I was having with openHAB sending sendHttpGetRequest.

                      M 1 Reply Last reply Dec 29, 2017, 11:52 AM Reply Quote 1
                      • M Offline
                        Mykle1 Project Sponsor Module Developer @SimtechBen
                        last edited by Dec 29, 2017, 11:52 AM

                        @SimtechBen

                        Nice!

                        Create a working config
                        How to add modules

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