Get relay's address from within script
listas at tiagosr.com
Wed Jul 27 07:08:32 UTC 2016
After some searches, looks like MikroTik routers actually set GI-Addr and this can be extracted
by packet(24,4) or even better binary-to-ascii(10, 8, ".", packet(24,4)).
Thanks very much. I didn't even know about the existence of GI-Addr. :D
---- On Wed, 27 Jul 2016 03:46:47 -0300 Simon Hobson <dhcp1 at thehobsons.co.uk> wrote ----
> 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 ?
> dhcp-users mailing list
> dhcp-users at lists.isc.org
More information about the dhcp-users