Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Being able to interact programatically with DHCP/TFTP #184

Open
jcea opened this issue Aug 7, 2020 · 1 comment
Open

Being able to interact programatically with DHCP/TFTP #184

jcea opened this issue Aug 7, 2020 · 1 comment

Comments

@jcea
Copy link
Contributor

jcea commented Aug 7, 2020

I would like to be able to define some callbacks in the DHCP/TFTP code. Examples:

  • Reply only to some clients.
  • Being able to reply DHCP with some extra vendor values.
  • Being able to serve TFTP from Python objects instead of filesystem objects (synthetic filesystem). For instance, PXE configuration files could be synthetically generated by client.

I could volunteer if you are interested in those features. I need them for my own purposes.

@icb-
Copy link
Collaborator

icb- commented Aug 29, 2020

PyPXE isn't meant to be a general purpose DHCP system, but I can see these being useful for its purpose.

  1. Replying to some clients can somewhat be done with --dhcp-whitelistwhitelist and --static-config, if you enumerate the clients you want to reply to. This is how I use it.
  2. Programatic control over vendor options would be useful. I would happily accept a PR.
  3. Programatic TFTP/HTTP responses would be useful. I would happily accept a PR. I want to keep this lightweight, but maybe something like the routes in Bottle with fewer verbs (only GET) implemented for TFTP and HTTP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants