We have customers all over facing a big problem after updating to v3 now V3.9 on RBs, with hotspot and Userman, everytime the ip changes on wan side we should change thier wan ip in radius and userman ! can it be working back like before on local loop interface ?
Whether you need to think about tricky scripts or find the way how to get static IP address for them.
When you’re dealing with Dynamic IPs and a radius server, I’ve found the easiest way is to use a VPN connection to make a private network tunnel and do Radius across that. Client IP doesn’t matter, you can easily statically assign private address to the VPN and then their public IP won’t matter.
Regards,
Paul
Guys it was working simple , why should not work now ? I ve already made a script posted 2 weeks ago and solved the isssue but for clients know they should look for ip updates to access the userman and for radius server the same issue I mean when you have a new version you should solve problems not create problems especially in our case we have hotels and hotspots all over belgium , Thank God I only updated few RBs otherwise it was a total mess.
You have change router name in Raduis and Userman to hotspot1 and this script will solve the isssue
/system scheduler
add comment=“” disabled=no interval=5m name=“schedule1” on-event=“:local hip\r\n:local dip\r\n:local addy\r\n:local
char\r\n:local count\r\n:local found\r\n\r\n:set addy [/ip address get [/ip address find interface=ether1]
address]\r\n:set hip [ /radius get [ /radius find service=hotspot ] address ]\r\n\r\n:set count "0"\r\n:set found
"no"\r\n\r\n:while (found = "no") do={\r\n:set char [:pick $addy $count ($count + 1)]\r\n:if ($char = "/")
do={:set found "yes"}\r\n:set count ($count + 1)\r\n}\r\n\r\n:set count ($count -1)\r\n:set dip [:pick $addy 0
$count]\r\n\r\n:if ( $hip != $dip ) do={ \r\n/radius set [ /radius find service=hotspot ] address="$dip"
\r\n/tool user-manager router set [ /tool user-manager router find name="hotspot1" ] ip-address="$dip"\r\n }
else={ :log info "No Changes"}\r\n” start-date=jan/01/1970 start-time=00:00:00