Answer the question
In order to leave comments, you need to log in
MAC address of clients in URL bar?
Good day!
There is Mikrotik, with a hotspot deployed on it with a redirect to the site for authorization (via dns-name). It is necessary to somehow add the client's MAC address to the end of the URL when the device accesses the authorization page (example: www.example.ru/login?MAC=XX:XX:XX:XX:XX:XX).
I tried to do this using a script for the DHCP server:
ip hotspot profile set hsprof1 dns-name=("www.example.ru/login?MAC=" . $leaseActMAC)
The operation logic is as follows:
When a new device is connected, the DHCP server gives it an IP -address, looks at its MAC address and changes the dns-name value in the hotspot parameters. Curve method and pulls a bunch of errors. Are there any other ways to implement the plan?
Answer the question
In order to leave comments, you need to log in
I managed to solve the problem by redirecting to login.html with the $ variable (Mac)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question