How to test MikroTik UserManager (RADIUS) using radtest
On Ubuntu or other Linux distribution, you can easily install radtest using
radtest_install.sh
sudo apt -y install freeradius-utilsAfter that, you need to create a Router representing your test PC on the MikroTik device so that RADIUS requests will be accepted.
Now you can run radtest like this:
radtest_command.sh
radtest -t mschap [Username of the user to authenticate] [Password of the user to authenticate] [MikroTik IP] 1812 [Router shared secret]Note the Router shared secret is the password that you used when setting up the Router instance for radtest in User manager -> Routersbefore and not the router’s admin password etc.
1812 is the default (and recommended) port for RADIUS.
Check out similar posts by category:
MikroTik, Networking
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow