Pi-hole Administration from the Internet

Comments

5 comments

  • Avatar
    Michael Bierman

    Interesting, but why would you want remote access without using VPN? Seems a bit scary to me. 

    2
    Comment actions Permalink
  • Avatar
    Chris Hewitt

    Because I have MANY Pi-holes to manage and I want to be able to check on them all from one app and at the same time.

    Not risky at all. I only forward traffic from my phone and laptop and only when at home or the office. When I am away from home I always VPN to my home Gold so my IP address is always known.

    With so many rules when I have an issue I want to replicate it to all my instances. 

    0
    Comment actions Permalink
  • Avatar
    Lammiwinks

    This is cool but I would use a Cloudflare tunnel over bashing open a port direct to the internet (even if it is locked down to only known IP's). 

    2
    Comment actions Permalink
  • Avatar
    Chris Hewitt

    That doesn’t solve the issue to be able to centrally manage scores of PiHole systems.

    0
    Comment actions Permalink
  • Avatar
    Braedach

    Great post.

    Interesting how many docker containers are you running on each FWG?
    I bumped my FWG to 8GB Ram - best thing I have done.
    Did you set a single docker bridge or are they generated on the fly - looks to be the later?

    docker network create -d bridge --subnet=192.168.3.0/24 --gateway=192.168.3.1 -o parent=eth0 firewalla-gold

    Example docker-compose file

     

    -------------------------------------------------------------------------------------------------------------

    version: "3.8"

    # change the default container as its broken
    # found this container as its commits ahead of the main brancch
    # bookmarked the container in github

    services:
      nginx-proxy-manager:
        container_name: nginx
        image: zoeyvid/nginx-proxy-manager
        restart: always
        volumes:
          - ./data:/data
          - ./data/letsencrypt:/etc/letsencrypt
          - ./data/www:/var/www 
        environment:
          - "TZ=Australia/Perth"
        #connect this container to the firewalla-gold docker network and set an permanent ip address
        networks:
          firewalla-gold:
            ipv4_address: 192.168.3.6

    networks:
        firewalla-gold:
           external: true

    -------------------------------------------------------------------------------------------------------------

     

    As you can see, I have dropped the data in the local FWG docker run directory.

     

    Are you using the persistence code after restart - shell commands in:

    ~/.firewalla/config/dnsmasq_local/[containername]
    /home/pi/.firewalla/config/post_main.d/
     
    Have you created a separate shell script if running multiple containers in addition to container scripts?
     
    For example
     
    -------------------------------------------------------------------------------------------------------------
    #!/bin/bash

    # Start-docker-net.sh
    # Reinitialise the docker system
    # This code needs to be placed in the following location ~/home/pi/.firewalla/config/post_main.d/

    sudo systemctl start docker

    # Do I need to rebuild the bridge network - this needs testing - code errors out if it already exists - acceptable
    sudo docker network create -d bridge --subnet=192.168.3.0/24 --gateway=192.168.3.1 -o parent=eth0 firewalla-gold

    # Reset the ipset routes for the containers
    sudo ipset create -! docker_lan_routable_net_set hash:net
    sudo ipset add -! docker_lan_routable_net_set 192.168.3.0/24
    sudo ipset create -! docker_wan_routable_net_set hash:net
    sudo ipset add -! docker_wan_routable_net_set 192.168.3.0/24

    # Add routing rule for docker network

    sudo ip route add 192.168.3.0/24 dev br-$(sudo docker network ls | awk '$2 == "firewalla-gold" {print $1}') table lan_routable
    sudo ip route add 192.168.3.0/24 dev br-$(sudo docker network ls | awk '$2 == "firewalla-gold" {print $1}') table wan_routable


    # The remaining code needs to be configured in each containers script
    # They are to include the mapping the IP address of the container in dnsmaq and restarting the service
     
    -------------------------------------------------------------------------------------------------------------
     
    Had any issues on FWG restart??
    Maybe I better reboot my FWG and check to see what breaks myself.
     
    Thanks for replying by the way.
     



    0
    Comment actions Permalink

Please sign in to leave a comment.