Need help, I already install and seting MT with DNS, Gateway correctly and now all user on our network can connect to internet. any body can assist me step by step to restrict user by IP/Mac address?
My configuration asf :
thanks larmaid and all,
now its works, but may be there is a better way ?
I was thingking, mmhhh how about if there are so many user, 100 users do i have on one by one to block them ??
how the correct syntact → block all and then allow user that we want to give them access ?
There is no magic u can do about it…expect if there is a script (which i am yet to know about) that can do that for you automatically.If u want it to be automatic, then you will need a RADIUS which will specity the time range u want for a particular MAC address ( that is if u r doing RADIUS MAC).
In the alternative ( manually) and according to the previous command lines given to u. specify accordingly in the forward chain
(u will do this for all the host u want to allow and place them above the rules i will specify below… comment can also help u out in sorting the right IP for the right host)
okay…theres is a way…!
but you need to install hotspot first!
if you already install it…then:
1.erase all the rule in dst-nat.
2.write the ip you want to acept in forward place in top,i forget how to count a range ip..!
3.then write this rule if your client have to login first in login page:
go to winbox->
do this
1.add src-address (10.10.aa.0/24)you want to redirect to hotspot
dst-port=53
protocol=udp
in.interface=all
action redirect
laennya default.
2.add src-address (10.10.aa.0/24)
in.interface=lan
protocol=tcp
flow=hs-auth
action=redirct
to dst.port=80
if your client do not want to login first then dont write no.3
but if u do this u have to login first if u want to using winbox..!