Giter VIP home page Giter VIP logo

cloudflareguacamole's Introduction

Zero Trust Cloudflare Guacamole Instant Docker ⏰

This is a formula for instantly building a secure zero trust πŸ” Guacamole instance connected through Cloudflare Teams and protected by the Zero Trust Network Access (ZTNA). This is a proof on concept configuration for testing πŸ§ͺ, it implements full zero trust for network access when configured with proper policies.

You cannot access this Guacamole instance outside of the authenication policies defined in the Cloudflare Teams zero trust design. If the back end network were compromised 🧨 that this docker container is on, this Guacamole host is not directly accessible as the ports are not exposed.

This Container

  1. Loads the lastest version of Debian
  2. Adds the DNS record and routing using Cloudflared
  3. Connects to the warp network using Cloudflared
  4. Connects to existing Cloudflare Teams using Cloudflared
  5. Installs the latest version of Guacamole and Guacd
  6. Installs mariadb and configures for Guacamole
  7. Install and configures Tomcat with Guacamole client

Drawing of Cloudflare Guacamole


Prepare

Git πŸ“‘ clone the repository and configure two files, Dockerfile and config.yml. You'll want to set your timezone, set your Cloudflare Team name, and then the domain you use for your Cloudflare Team.

git clone https://github.com/RamboRogers/cloudflareguacamole

config.yml - Change your domain.

ingress:
  - hostname: guacamole.yourdomain.com
    service: http://127.0.0.1:8080
  - service: http_status:404

Dockerfile - Change the timezone πŸ‡ΊπŸ‡Έ and the team name.

ENV CLOUDFLARETEAM yourcloudflareteamname
ENV TZ America/New_York

Teams Console Setup - Make sure to setup your application in Cloudflare. Once you've configured your files, you can build the container. You will need access to the Cloudflare Teams console and the main Cloudflare console as well during this process. The application name must match the DNS definition for the hostname which is guacamole.


Build and Run

To build this container, simply execute buildrun.sh on a linux or mac docker host. You could also manually execute the docker commands. During the build the build will pause and provide you with a Cloudflare URL to follow to authorize the Argo tunnel. Once your approve this tunnel, the build will continue.

cd cloudflareguacamole
docker build --no-cache -t cloudflareguacamole .
docker run --name cloudflareguacamole --restart always -d cloudflareguacamole

You should now have a working Guacamole environment ready for usage from Cloudeflare!πŸš€ The initial password for guacamole will be guacadmin with password guacadmin, and the url will be your hostname/guacamole.

You should change the db admin password, and make sure you change the guacadmin password


Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

GPLv3

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.