Get relay's address from within script

Simon Hobson dhcp1 at thehobsons.co.uk
Wed Jul 27 06:46:47 UTC 2016


Tiago SR <listas at tiagosr.com> wrote:

> ... and only change they can do to DHCP requests is to add option 82 values

They should be setting GI-Addr as well ! I have no idea if GI-ddr ends up in a variable/parameter accessible from the scripts - but it is in a fixed place in the packets so it should be possible to extract it with the right incantation.

Alternatively, and this isn't really something you'd want to do in real time, if Option82 is being used for authentication, can you do a lookup from that to see which gateway that user connects through ? Or is that the information you are trying to get ?



More information about the dhcp-users mailing list