Hotspot system with Radius

Hello guys.

Can I deploy following system?

  1. Hotspot user management from radius server. (now I`m using it)
  2. User can use his prepaid cards in all hotspot server. (now I`m using it) For example:
[admin@Testing] /ip hotspot> print det
 0   name="Hotel" interface=vlan124 profile=default idle-timeout=5m keepalive-timeout=2m ip-of-dns-name=172.16.24.1 proxy-status="running" 
 1   name="Street" interface=vlan125 profile=default idle-timeout=none keepalive-timeout=none ip-of-dns-name=172.16.20.1 proxy-status="running"
  1. If client uses his prepaid card in Hotel, for example he can connect only 1 hour. If client uses his prepaid card in the street, he can connect 2 hour.
    It means, can I change sending and receiving information between Radius and RouterBoard? Also do it on Mikrotik using scripting feature? For example:
 
#When users login, request from radius server
If Called-Station-Id="Hotel"
session-time-left="0.5*(Session-Timeout)"
#When users logout, request to radius server
If Called-Station-Id="Hotel"
Acct-Session-Time="2*(Uptime)"

I found some information here:
http://wiki.mikrotik.com/wiki/Manual:Customizing_Hotspot

Sending:

login.html - login page shown to a user to ask for username and password. This page may take the following parameters:

  • radius - send the attribute identified with in text string form to the RADIUS server (in case RADIUS authentication is used; lost otherwise)
  • radiusu - send the attribute identified with in unsigned integer form to the RADIUS server (in case RADIUS authentication is used; lost otherwise)
  • radius- - send the attribute identified with and vendor ID in text string form to the RADIUS server (in case RADIUS authentication is used; lost otherwise)
  • radius-u - send the attribute identified with and vendor ID in unsigned integer form to the RADIUS server (in case RADIUS authentication is used; lost otherwise)

Querying:

RADIUS-related variables:

  • radius - show the attribute identified with in text string form (in case RADIUS authentication was used; “” otherwise)
  • radiusu - show the attribute identified with in unsigned integer form (in case RADIUS authentication was used; “0” otherwise)
  • radius- - show the attribute identified with and vendor ID in text string form (in case RADIUS authentication was used; “” otherwise)
  • radius-u - show the attribute identified with and vendor ID in unsigned integer form (in case RADIUS authentication was used; “0” otherwise)

Thank you dssmiktik. But I didn`t find solution. Please help…

Please guys, I need help. Help me?!

You should be able to distinguish where the client login. see the ip address of the ‘nas’ in radacct.
need to struggle a bit to make the radius gives a different reply from any existing ‘nas’. use mysql triggers can help solve the problem.