Universal client purpose to translate "wrong" IP address of the client to "correct" (working) IP address of HotSpot client.
You are doing opposite, client gets "correct" IP address and your are translating it to "wrong" one.
As there is no 89.19.xxx.xxx IP address configured on the local interface, you are not able to set it for /ip hotspot user.
There should be address from 192.168.244.1 network in /ip hotspot user.
sergejs, this feature would be very usefull to distribute public IP's from shared pool, just like with PPPoE.
I played with this a litle bit and here are some conclusions:
- After user login on hotspot, there is correct D entry in /ip arp (with public IP distributed by RADIUS server using Framed-IP-Address attribute)
- User doesn't get connection unless you set route: /ip route add dst-address=same-public-ip gateway=hotspot-interface. After that everything works because this static route is advertised further by OSPF.
My question is if it is possible to implement this feature automatically? Just to add connected route to hotspot interface with public IP got from RADIUS.
I tried even to send Framed-Route attribute, but it's syntax doesn't allow to use interfaces as gateways and it doesn't get A (active) flag (Framed-Route="same-public-ip/32 same-public-ip 1"). It also isn't distributed by OSPF this way.
I have one more idea and it is to use on-login in /ip hotspot user profile to run a script which will add the correct route. Of course, there should be a script on logout to remove the route also.