Hi everibody
I’ve a problem using the radius variables in my hotspot; I’m trying to get some extra data from radius packet in the status.html page and put some other in loging.html to send via radius.
For example I want my “new” radius packet in a form like this
NAS-Port-Type = Wireless-802.11
Calling-Station-Id = “XX:XX:XX:XX:XX:XX”
Called-Station-Id = “wineahotspot”
NAS-Port-Id = “wlan1”
User-Name = “test”
NAS-Port = 2156920835
Acct-Session-Id = “80900003”
Framed-IP-Address = 192.168.2.199
Mikrotik-Attr-10 = 0xc0a819c7
CHAP-Challenge = 0xbd3f93f4f3015110292892dc5eda674e
CHAP-Password = 0x7f2be3c71499cdb4997147062eda16dac6
Service-Type = Login-User
WISPr-Logoff-URL = “http://192.168.2.1/logout”
NAS-Identifier = “wineaAp”
NAS-IP-Address = 192.168.168.58
MyVar = “myVarValue”
I’ve tried to add some code in the login.html page but the $(radius) variables dosen’t seems to work. I’ve also tried to get some of them (like the Event-Timestamp or the Mikrotik-Attr-10) in the status.html and in the login.html using the form $(radius), $(radiusEvent-Timestamp) and $(Event-Timestamp). Somebody can explain me how (if it’s possible) to do this or eventually how to change a variable value in the radius packet? Thanks.
PS I’m using a RB411AR with RouterOS 4.9 (just updated) but the problem was present also in the 3.2.