Teslamate running in Docker on FWG

Comments

8 comments

  • Avatar
    sundar

    Are you able to run teslamate successfully? I am able to start teslamte on a different network but couldn't access any of the ports from the host. Ex: http//fiire.walla:4000. I am not sure how to fix it. I tried to run these directly on FWG instead of the subnet, but Postgres fails.  Does anyone succeed with teslamate setup on FWG?  

    0
    Comment actions Permalink
  • Avatar
    Nilanga

    Are you able to cut and paste your docker-compose.yaml. I think I am running into the same issue.

    0
    Comment actions Permalink
  • Avatar
    sundar

    I am using the default one from the site and did the below two commands to get egress and ingress traffic to these containers so that I can reach via browser with port.

    sudo ip route add 172.24.0.0/24 dev br-$(sudo docker network inspect teslamate_default |jq -r '.[0].Id[0:12]') table wan_routable

    sudo ip route add 172.24.0.0/24 dev br-$(sudo docker network inspect teslamate_default |jq -r '.[0].Id[0:12]') table lan_routable

    **Replace your network IPs where teslamate is running. 

     

     

     

    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    Hi Sundar, I am trying to do the same and was wondering if it'd work running the teslamate and related containers in network host mode? This seems to work for homeBridge (see https://help.firewalla.com/hc/en-us/articles/360053184374-Guide-Install-HomeBridge-on-Firewalla-

    I am a bit nervous with adding manual routing entries to firewalla ... 

    0
    Comment actions Permalink
  • Avatar
    sundar

    I am running in bridge mode, not able do start the containers in the host network for some reason. 

    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    Interesting. In my case they start in host mode but they don’t seem to open any ports in that case (no ports listed if I do docker ps in network host mode )

    0
    Comment actions Permalink
  • Avatar
    sundar

    My 'docker ps -a' does show all ports. Btw, I am also running portainer to make my docker operation easy.  We have some documentation on how to set this up as well. See if you can make it easier for you.

    0
    Comment actions Permalink
  • Avatar
    sk0rp10

    Okay so I utilised the same routing rules that you suggest in this article and that worked fine: I could connect to my Teslamate instance just fine.

    Now, the problem is that I would like to make the instance only accessible via VPN or LAN, and not via WAN as it currently is.

    Do you also see that your instance is accessible via WAN?

    I have a Wireguard VPN setup on the Gold and would like that only devices either on LAN or connected to that VPN can access the hosted Teslamate server on the Gold.

    Would you be able to help and suggest alternative route commands that can achieve that?

    Note: I have asked @firewalla and they suggested I’d better ask here ;)

    0
    Comment actions Permalink

Please sign in to leave a comment.