Giter Club home page Giter Club logo

proxydhcp's Introduction

Test and Build codecov Go Report Card Go Reference

proxydhcp

proxydhcp is a standalone Proxy DHCP server.

[A] Proxy DHCP server behaves much like a DHCP server by listening for ordinary DHCP client traffic and responding to certain client requests. However, unlike the DHCP server, the PXE Proxy DHCP server does not administer network addresses, and it only responds to clients that identify themselves as PXE clients. The responses given by the PXE Proxy DHCP server contain the mechanism by which the client locates the boot servers or the network addresses and descriptions of the supported, compatible boot servers." -- IBM

Currently, proxydhcp only supports booting to iPXE binaries and scripts. Run proxydhcp binary to see the supported architectures and iPXE binaries.

Installation

# requires Go >= 1.17
go install github.com/jacobweinstock/[email protected]
# usage
proxydhcp proxy -h
# requires Go >= 1.17
make build
# usage
./bin/proxydhcp-<arch> proxy -h
docker pull ghcr.io/jacobweinstock/proxydhcp:0.4.4
# usage
docker run -it --rm -p 67:67/udp -p 4011:4011/udp ghcr.io/jacobweinstock/proxydhcp:0.4.4 proxy -h
docker build -t proxydhcp .
# usage
docker run -it --rm -p 67:67/udp -p 4011:4011/udp proxydhcp proxy -h

Usage

❯ proxydhcp proxy -h # docker run -it --rm -p 67:67/udp -p 4011:4011/udp ghcr.io/jacobweinstock/proxydhcp:0.4.4 proxy -h
USAGE
  proxy runs the proxyDHCP server

FLAGS
  -loglevel info                 log level (optional)
  -proxy-addr 0.0.0.0            IP associated to the network interface to listen on for proxydhcp requests.
  -remote-http ...               IP, port, and URI of the HTTP server providing iPXE binaries (i.e. 192.168.2.4:80).
  -remote-ipxe ...               A url where an iPXE script is served (i.e. http://192.168.2.3:8080).
  -remote-ipxe-script auto.ipxe  The name of the iPXE script to use. used with remote-ipxe (http://192.168.2.3/<mac-addr>/auto.ipxe)
  -remote-tftp ...               IP and URI of the TFTP server providing iPXE binaries (192.168.2.5:69).
  -user-class ...                A custom user-class (dhcp option 77) to use to determine when to pivot to serving the ipxe script (-remote-ipxe-script flag).
❯ proxydhcp binary -h # docker run -it --rm ghcr.io/jacobweinstock/proxydhcp:0.4.4 binary -h
USAGE
  binary returns the mapping of supported architecture to ipxe binary name

FLAGS
  -json=false  output in json format

proxydhcp's People

Contributors

jacobweinstock avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.