Community discussions

MikroTik App
 
ammaralmasr
just joined
Topic Author
Posts: 1
Joined: Thu Mar 25, 2021 2:59 am

Pass AP MAC to external captive portal server

Thu Mar 25, 2021 3:21 am

I have created a Hotspot server on an RB4011iGS+RM. To one of the Hotspot Ethernet ports, I connected an unmanaged switch (there is a transparent 60GHz wireless bridge connecting the Hotspot server to the unmanaged switch), which connects to 2 dump APs. Users via the APs can get to the local captive portal page, and after accepting the term-of-use, they get to the Internet.

Now, I want to use an external captive portal, and the external server needs to know the user's MAC as well as the MAC of the AP via which the user is connected. This is the content of the login.html page I am using on the Hotspot server:
<html>	
<head>	
<meta http-equiv="refresh" content="0; url=http://splash.page.com?userMac=$(mac)&clientIp=$(ip)&userUrl=$(link-orig)&loginUrl=$(link-login-only)" />	
<meta http-equiv="pragma" content="no-cache">	
<meta http-equiv="expires" content="-1">	
</head>	
</html>
How can I pass the MAC of the AP?

Who is online

Users browsing this forum: ips and 30 guests