Hello every one, Today article covered how to setup shared users in Mikrotik Hotspot Users Profile and assign Bandwidth among this group.
First of all you need to setup Mikrotik Hotspot and configured as you desire.
My Working Scenario is More Secure and reliable for theft bandwidth in Hotspot interface.
Router Wan Interface IP Address is 192.168.0.20/24
Router Lan Interface IP Address is 192.168.10.1/24 (Hotspot) Regular Users
Important Note: I am adding another IP Address for group users is 192.168.80.1/24 on Lan Interface and masquerade in IP FIREWALL NAT.
Now Create user profile for shared users i am giving 5 IP address to use same user name. Flexibility for users to use more devices such as Mobiles Phone / Laptop’s / Personal Computer’s Etc….
Mikrotik ROS V 5.x & 6.x
Now create a script called que-to-0
/que simple move [find name="Group-A"] [:pick [find] 0] /que simple move [find name="Group-B"] [:pick [find] 1]
ROS CLI Script for teminal window
/system script add name=que-to-0 policy=\ ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \ source="/que simple move [find name=\"Group-A\"] [:pick [find] 0]\r\ \n/que simple move [find name=\"Group-B\"] [:pick [find] 1]"
How to run this script ?
There was 2 way to run this script
I am adding script run command in Hotspot User Profile Script Section.
Another way is create a Schedule to run this script ..
Few things to understand in IP/29 giving in Simple Queues
You can do more with this work scenario.
Abubaker Siddiq Lasania
Virtual IT Support