Code Monkey home page Code Monkey logo

omada-controller's Introduction

Omada Controller Docker

TP-Link Omada Controller bundled in a Docker image

Image size RAM usage CPU usage
360MB 350MB Low

It is based on:

Setup

  1. Create directories and set their permissions:

    mkdir -p volumenes/{logs,data,work}
    chown -R 1000 volumenes
    chmod 700 volumenes
  2. Run using the following command:

    docker run -d --rm \
    --name omada-controller-example \
    -e TZ=Europe/Madrid \
    --network host \
    -v $(pwd)/volumenes/logs:/omada/logs \
    -v $(pwd)/volumenes/data:/omada/data \
    -v $(pwd)/volumenes/data:/omada/work \
    pcarorevuelta/omada-controller

    or use docker-compose.yml with:

    docker-compose up -d

Environment variables

Environment variable Default Possible values Description
HTTPPORT 8080 Port from 1025 to 65535 Internal HTTP port, useful for redirection
HTTPSPORT 8043 Port from 1025 to 65535 Internal HTTPS port, useful for redirection

Notes

  • The Omada Controller Software will only be able to find EAPs in the same network as itself. To make it work you need to use docker "host" networking and have the docker host in the same network as the EAPs. Standard network configuration with exposed ports, which creates a new network the container runs in, will not work because the controller runs in a different broadcast domain in that case.
  • You only need to set the TZ environment variable when your traffic/client graph has an offset.
  • It is useful to change the HTTPSPORT as Omada redirects you to its internal HTTPSPORT. So if you want to run the container with -p 8000:8000 for the HTTPS port, you need to set HTTPSPORT=8000.
  • From TP Link Omada's FAQ, Omada controller uses the ports:
    • 8043 (TCP) for https
    • 8088 (TCP) for http
    • 27001 (UDP) for controller discovery
    • 27002 (TCP) for controller searching
    • 27017 (TCP) for mongo DB server (internally)
    • 29810 (UDP) for EAP discovery
    • 29811 (TCP) for EAP management
    • 29812 (TCP) for EAP adoption
    • 29813 (TCP) for EAP upgrading

TODOs

  • Allow set user/group for running
  • Instructions with proxy and port redirection

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.