Page 1 of 1

User access to RouterBoard

Posted: Wed Nov 07, 2018 12:29 am
by omberli
Have just installed a hAP lite at a customer's site (a small fitness center).
Customer asked to get access to the unit in order to change the WPA2 key when needed (they are offering wifi access their members).
I'm hesitant to give them full admin access. Looked at the user setting, but didn't find a way to limit access to specific parts of the configuration.
Question: is it possible to limit user access (preferably by Winbox) to setting just the encryption keys and maybe a few other - non vital parts of the router?

-Olaf-

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 12:32 am
by pcunite
One way would be to use the API, and make your own PHP webpage to change this one area.

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 1:38 am
by vecernik87
Another (much easier) way might be creating limited skin for webfig which will give access only to this setting. I do not have own experience but I saw several posts doing this. For example here is pretty nice tutorial

edit: just tried that, its extremely easy and amazing! few clicks and this is the result: https://www.screencast.com/t/TQziLeHW

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 8:39 am
by Jotne
Can you lock that to a user, so the can not add the missing view?
Since you need a username and password to login to the web, can you prevent the same user from login using Winbox (mac-connection)?

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 8:55 am
by vecernik87
Can you lock that to a user, so the can not add the missing view?
Certainly you can! policy "sensitive" controls (among other features) whether user see or does not see the "design skin" button. (I just tested it myself)
Since you need a username and password to login to the web, can you prevent the same user from login using Winbox (mac-connection)?
Again - yes. All you need is to disable corresponding policies.

For my testing, i ended up with following user group:
/user group
add name=wireless policy="read,write,web,!local,!telnet,!ssh,!ftp,!reboot,!policy,!test,!winbox,!password,!sniff,!sensitive,!api,!romon,!dude,!tikapp" skin=wireless
With this, user can't login via local console, ssh, winbox, telnet (including mac-winbox and mac-telnet) and others....
Only allowed is "web" service. User can read/write setting but thanks to limited skin, nothing except wireless password can be changed.

This method may not be 100% secure agains hackers but c'mon - all you need is hide stuff from common folks so they don't play with buttons they don't understand.

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 9:18 am
by Jotne
Thanks
Nice to know. I will test it out my self. :)

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 1:12 pm
by omberli
Thanks for good suggestions!
Haven't looked into Webfig yet, but will do soon.

If setting up Webfig with new skin on a router - is there a way to export or copy it to another unit - maybe with a (slightly) different configuration?''

Re: User access to RouterBoard

Posted: Wed Nov 07, 2018 8:22 pm
by sid5632
It's just a file in the skins folder, so you copy/move/delete it like any other file.

Re: User access to RouterBoard

Posted: Sat Nov 10, 2018 7:09 pm
by omberli
Thanks for the interesting info about Webfig.
Have tried to set up a new skin and have disabled access to several things. Have kept mainly the wireless settings, the logs and system (for upgrading software). Then added a new user and a new (limited) group and assigned the new skin to this user. When logging in as the limited user I still see all options - even those I tried to exclude. Guess I'm doing something wrong, but can't figure out what it is.

-Olaf-

Re: User access to RouterBoard

Posted: Sun Nov 18, 2018 1:47 pm
by omberli
Solved the problem.
Had messed up groups/users and Webfig profile.

Thanks for the help!

Re: User access to RouterBoard

Posted: Mon Nov 19, 2018 6:37 am
by vecernik87
Thanks for feedback and congrats that you made it working!

I couldn't figure out what you might get wrong as I don't really have much experience with webfig.
Just last piece of advice
- letting your customer to update software is risky. Especially last year, it is not uncommon that new versions come with issues and I wouldn't dare to upgrade, without reading changelog.
- even though you limited the access in webfig, keep in mind that it is HTTP server and it might have some unknown vulnerabilities (all of them have - mikrotik, cisco, tplink etc etc.. ). It is recommended to limit the access to the HTTP service as much as possible with firewall.

Re: User access to RouterBoard

Posted: Mon Nov 19, 2018 9:16 am
by omberli
Thanks!
Yes, I'm aware of the risks related to using a web-based tool.
Have blocked all access to port 80 from the outside and also allowed the www service from addresses within the LAN. Hope this will be ok.

-Olaf-