Start by logging into your Mikrotik device via Winbox.
Click Radius on the left menu. In the Radius dialogue box, click + enter the below settings:
Press OK to Save.
On the Radius window, click + again, and enter the following settings:
Click IP > Hotspot on the left menu and then Hotspot Setup. Configure with the below settings:
Click OK to Complete.
In the Hotspot Window, on the Server tab, double-click the hotspot you've just created to load the Hotspot Server Window.
Change the Name to the MAC address of your Mikrotik WAN interface and press OK.
In the Hotspot Window click the Server Profiles tab. Double click on the newly created Profile and set the following:
On the General tab:
On the Login tab:
On the RADIUS tab:
Click OK to Save
On the Hotspot Window click on User Profiles and double click on the default entry. Set the following:
On the main Winbox interface, click New Terminal to open the Terminal Window. For each of the domains, copy the following text and right click to paste in the window. Please refer to this list.
/ip hotspot walled-garden
add dst-host=*domain here*
Finally, you'll need to upload two files to the Mikrotik device to ensure guests are redirected properly.
Copy and paste the following text in to a text editor and save as login.html on your desktop:
<head>
<meta http-equiv="refresh" content="0; url=*insert access_url here*?res=notyet&host=$(server-name)&client_mac=$(mac)&client_ip=$(ip)&userurl=$(link-orig)&login_url=$(link-login-only)&error=$(error)&user=$(username)" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
</head>
</html>
Next, copy and paste the following text in to a text editor and save as alogin.html on your desktop:
<head>
<meta http-equiv="refresh" content="0; url=*insert redirect_url here*" />
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="expires" content="-1">
</head>
</html>
Back in Mikrotik Winbox, click Files on the left and drag and drop the two files you just saved in to the hotspot folder. Be sure to drop them on the hotspot folder itself.
The configuration is now complete.