Community discussions

MikroTik App
 
jep17
just joined
Topic Author
Posts: 7
Joined: Sun Mar 10, 2013 1:51 am

User time window

Wed Sep 10, 2014 9:08 pm

How can I limit users to specific time windows? I want a user to have Internet access between 5:00 and 8:00pm.

Thanks.
 
User avatar
NAB
Trainer
Trainer
Posts: 542
Joined: Tue Feb 10, 2009 4:08 pm
Location: UK
Contact:

Re: User time window

Thu Sep 11, 2014 7:25 am

Permit the traffic between 1700-2000 and then block all traffic from that IP outside of these times.
/ip firewall filter
add \
  chain=forward \
  out-interface=WAN \
  src-address=192.0.2.0/24 \
  time=17h-20h,sun,mon,tue,wed,thu,fri,sat \
  action=accept
add \
  chain=forward \
  out-interface=WAN \
  src-address=192.0.2.0/24 \
  action=reject \
  reject-with=icmp-admin-prohibited
(obviously, replace out-interface and src-address to suit your site)
 
jep17
just joined
Topic Author
Posts: 7
Joined: Sun Mar 10, 2013 1:51 am

Re: User time window

Fri Sep 12, 2014 4:40 am

Thank you. This was very helpful.

Who is online

Users browsing this forum: ajolly, GoogleOther [Bot], whernandez and 86 guests