T
T
Toshi Young2018-07-24 17:07:54
iOS
Toshi Young, 2018-07-24 17:07:54

Is it possible to add a header / additional parameter on Mikrotik when connecting IOS CNA to Captive Portal?

The bottom line is simple, when connecting WiFi on iOS, you need to open the authorization portal in Safari, not CNA. How to open and what to answer has already been a topic and everything works according to the principle:
1. On the first request for hotspot-detect.html, return an empty page and remember the user
2. On the second, issue success
3. Display the page with a redirect and Safari will open
BUT there is one problem in This method is about remembering and re-identifying the user. Now the external IP address of Miroktik serves as a user identifier, but there is a problem when several iOS devices are connected at the same time.
Question: Is it possible to somehow add an additional header to the traffic or a GET parameter (for example, a MAC address) to accurately identify the user? Or maybe there are other methods for determining the uniqueness of a user?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Ulanov, 2018-07-25
@antonsr98

Use radius

K
Kirill Vasiliev, 2018-08-16
@vasilevkirill

hello you can use variables
like
$(if http-header == "Location") mydomain/index.php?usermac=$(mac)$(endif)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question