Giter Site home page Giter Site logo

ungleich-tftp's Introduction

alt text

This is a really simple container that will expose its port 69/udp with a TFTP server listening on it.

What is it?

The TFTP server will load the files located at the container's directory /var/lib/tftpboot, which is by default created as a volume.

By default, there is a file available named pxelinux.0, which is an iPXE image built with a embedded script, making it to "chainload" to a HTTP server. The hostname of the HTTP server to contact can be specified when the container is run, passing the environment variable "HTTP_SERVER".

Also, if you don't want to use this default image but other files instead, you can specify any host directory to be mounted on the container, using the option '-v', which bind mounts a volume to the container.

How to use it?

A practical example is the following:

docker run --name tftp -e HTTP_SERVER=example.com -d ungleich/ungleich-tftp

If any host contacts this TFTP server, it will then be forwarded to "example.com" immediatly after booting the iPXE image.

You can also use any file(s) you want, rather than the default image:

docker run --name tftp -v /some/path/to/share:/var/lib/tftpboot -d ungleich/ungleich-tftp

Caveats

  1. Default value for HTTP_SERVER is http-server
  2. By default, when your host contacts to the HTTP server, it will try to download the file pxelinux.0. This might be improved soon, so the filename can also be specified.

ungleich-tftp's People

Contributors

carlosotgz avatar

Watchers

 avatar James Cloos avatar Dominique Roux avatar

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.