HenriWahl / dhcpy6d

MAC address aware DHCPv6 server written in Python
https://dhcpy6d.de
GNU General Public License v2.0
94 stars 27 forks source link

using macs over dhcp relay #31

Open tobiWu opened 4 years ago

tobiWu commented 4 years ago

I'm looking for the possibility to use mac-based identification over dhcp relays. Is it possible add an option for calculate clients mac adress from the peeradress instead of the dhcpv6-client-address (that's unfortunately the relay) if it's an relay-fwd message?

HenriWahl commented 4 years ago

There is an extra RFC regarding this: https://tools.ietf.org/html/rfc6939. There are plans to add the ability to use this option, but it is not yet possible at the moment. Might become a bigger task than only adding an option, because the relayed message will be some kind of embedded into the actual address.

Which peer-address do you mean?

tobiWu commented 4 years ago

In the relay-fwd message is the peeraddr which includes the mac of the client. I would be very grateful for this feature. Could I support you at some point?

HenriWahl commented 4 years ago

It is planned to add it but at the moment no time, actually. The best support would be to implement it and make a pull request... :-) If you or your organization have some programming time resources, just try it.