ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    PiHole for Friends and Family

    Scheduled Pinned Locked Moved IT Discussion
    67 Posts 14 Posters 11.2k Views
    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.
    • jt1001001J
      jt1001001
      last edited by

      Some sort of Dynamic DNS solution

      1 Reply Last reply Reply Quote 0
      • A
        Alex Sage @scottalanmiller
        last edited by

        @scottalanmiller said in PiHole for Friends and Family:

        VPN would fix that, but would be a huge pain.

        Thought about that, but like you said, huge pain...

        1 Reply Last reply Reply Quote 0
        • A
          Alex Sage
          last edited by Alex Sage

          Also, not sure how to handle smartphones, tablets, etc that travel outside the network? I guess I would have to use a VPN there?

          scottalanmillerS black3dynamiteB 2 Replies Last reply Reply Quote 0
          • black3dynamiteB
            black3dynamite
            last edited by

            Using SaltStack might be a solution?

            Maybe @scottalanmiller have an idea about taking advantage of using salt minion to update the rich rules with the current IP address.

            1 Reply Last reply Reply Quote 1
            • scottalanmillerS
              scottalanmiller @Alex Sage
              last edited by

              @aaronstuder said in PiHole for Friends and Family:

              Also, not sure how to handle smartphones, tablets, etc that travel outside the network? I guess I would have to use a VPN there?

              If you can't set the DNS addresses, yes.

              1 Reply Last reply Reply Quote 1
              • black3dynamiteB
                black3dynamite @Alex Sage
                last edited by

                @aaronstuder said in PiHole for Friends and Family:

                Also, not sure how to handle smartphones, tablets, etc that travel outside the network? I guess I would have to use a VPN there?

                Have you considered MAC filtering?

                A 1 Reply Last reply Reply Quote 0
                • A
                  Alex Sage @black3dynamite
                  last edited by Alex Sage

                  @black3dynamite said in PiHole for Friends and Family:

                  @aaronstuder said in PiHole for Friends and Family:

                  Also, not sure how to handle smartphones, tablets, etc that travel outside the network? I guess I would have to use a VPN there?

                  Have you considered MAC filtering?

                  Interesting Idea. Not sure that would work over the WAN?

                  1 Reply Last reply Reply Quote 0
                  • A
                    Alex Sage
                    last edited by

                    What if I setup a dynamic DNS client on a computer, and have it update to my domain, say name.domain.com then have a script nslookup the domain name and update the firewall rules?

                    RomoR 1 Reply Last reply Reply Quote 0
                    • scottalanmillerS
                      scottalanmiller
                      last edited by

                      Would it not be easier to skip the DDNS parts and just have a script send the IP address directly?

                      A 2 Replies Last reply Reply Quote 1
                      • A
                        Alex Sage @scottalanmiller
                        last edited by

                        @scottalanmiller yes, but how? 🙂

                        1 Reply Last reply Reply Quote 0
                        • A
                          Alex Sage @scottalanmiller
                          last edited by Alex Sage

                          @scottalanmiller I don’t have a Linux computer at my grandparents or it would be easy 😉

                          scottalanmillerS 1 Reply Last reply Reply Quote 0
                          • scottalanmillerS
                            scottalanmiller @Alex Sage
                            last edited by

                            @aaronstuder said in PiHole for Friends and Family:

                            @scottalanmiller I don’t have a Linux computer at my grandparents or it would be easy 😉

                            Use Python or PowerShell

                            A 1 Reply Last reply Reply Quote 1
                            • A
                              Alex Sage @scottalanmiller
                              last edited by

                              @scottalanmiller it’s a Mac

                              black3dynamiteB scottalanmillerS 2 Replies Last reply Reply Quote 0
                              • black3dynamiteB
                                black3dynamite @Alex Sage
                                last edited by

                                @aaronstuder said in PiHole for Friends and Family:

                                @scottalanmiller it’s a Mac

                                Use Python.

                                A 1 Reply Last reply Reply Quote 0
                                • A
                                  Alex Sage @black3dynamite
                                  last edited by

                                  @black3dynamite said in PiHole for Friends and Family:

                                  @aaronstuder said in PiHole for Friends and Family:

                                  @scottalanmiller it’s a Mac

                                  Use Python.

                                  Sadly all I know about Python is it’s a snake...

                                  RamblingBipedR 1 Reply Last reply Reply Quote 2
                                  • RamblingBipedR
                                    RamblingBiped @Alex Sage
                                    last edited by

                                    @aaronstuder said in PiHole for Friends and Family:

                                    @black3dynamite said in PiHole for Friends and Family:

                                    @aaronstuder said in PiHole for Friends and Family:

                                    @scottalanmiller it’s a Mac

                                    Use Python.

                                    Sadly all I know about Python is it’s a snake...

                                    Use bash?

                                    scottalanmillerS 1 Reply Last reply Reply Quote 2
                                    • scottalanmillerS
                                      scottalanmiller @Alex Sage
                                      last edited by

                                      @aaronstuder said in PiHole for Friends and Family:

                                      @scottalanmiller it’s a Mac

                                      Hence Python, the universal system automation language.

                                      1 Reply Last reply Reply Quote 1
                                      • scottalanmillerS
                                        scottalanmiller @RamblingBiped
                                        last edited by

                                        @ramblingbiped said in PiHole for Friends and Family:

                                        @aaronstuder said in PiHole for Friends and Family:

                                        @black3dynamite said in PiHole for Friends and Family:

                                        @aaronstuder said in PiHole for Friends and Family:

                                        @scottalanmiller it’s a Mac

                                        Use Python.

                                        Sadly all I know about Python is it’s a snake...

                                        Use bash?

                                        True, could be done just like on Linux.

                                        1 Reply Last reply Reply Quote 0
                                        • RomoR
                                          Romo @Alex Sage
                                          last edited by

                                          @aaronstuder said in PiHole for Friends and Family:

                                          What if I setup a dynamic DNS client on a computer, and have it update to my domain, say name.domain.com then have a script nslookup the domain name and update the firewall rules?

                                          What OS are you going to be installing pi-hole in?

                                          Liked the idea so just started working on the script, resolving the dynamic dns name and logging it and comparing it to the current ip is done. Just need to target your OS of choice to test the creation/destruction of the firewall rules.

                                          https://github.com/rodrigo-hissam/dns_to_ip_firewall_rules/blob/master/dns-to-ip-firewall-rules.py

                                          Example:

                                          ~/scripts/python$ python dns-to-ip-firewall-rules.py 
                                          
                                          Adding to firewall - TODO
                                          mangolassi.it - 104.25.47.32 
                                          
                                          Adding to firewall - TODO
                                          google.com - 172.217.1.238 
                                          
                                          Adding to firewall - TODO
                                          theverge.com - 151.101.65.52 
                                          
                                          #Log files created per host to store the previous ip for the comparison.
                                          ~/scripts/python$ ls
                                          dns-to-ip-firewall-rules.py  google.com  mangolassi.it  theverge.com
                                          
                                          # Re running the script to compare with logged ip
                                          ~/scripts/python$ python dns-to-ip-firewall-rules.py 
                                          
                                          Same ip address nothing to do
                                          mangolassi.it - 104.25.47.32 
                                          
                                          Same ip address nothing to do
                                          google.com - 172.217.1.238 
                                          
                                          Adding 151.101.193.52 to firewall
                                          theverge.com - 151.101.193.52 
                                          
                                          
                                          
                                          scottalanmillerS A 2 Replies Last reply Reply Quote 0
                                          • KellyK
                                            Kelly
                                            last edited by

                                            I am not a scripter, nor do I play one on TV, but you can get your public IP using this:

                                            curl ifconfig.co
                                            
                                            1 Reply Last reply Reply Quote 3
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • First post
                                              Last post