Community discussions

MikroTik App
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location:Dhaka
Contact:

can i set the using timing of any client from 12AM to 8AM

Sun Jul 06, 2008 1:35 am

I want to set an ip block by which the user can use only at night from 12AM to 8AM.
I found timing in queue. but is it applicable for this purpose?
Top
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location:Western Cape, South Africa
Contact:

Re: can i set the using timing of any client from 12AM to 8AM

Sun Jul 06, 2008 9:33 am

Hi there

Yes, you could make use of a queue. Make sure the users you wish to limit at certain times come from the same source address or make use of address lists. Then setup a queue to limit those users at certain times to a much lower speed. It will not lock the users off completely, but you could use a very low speed eg 64kbps.

What exactly do you wish to accomplish?
Top
jwelebd
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 72
Joined: Wed May 31, 2006 12:20 am
Location:Dhaka
Contact:

Re: can i set the using timing of any client from 12AM to 8AM

Sun Jul 06, 2008 2:32 pm

I want to stop fully for the rest of the time. They would get connected which time i only allow.
Top
User avatar
Giepie
Member
Member
Posts: 432
Joined: Mon Sep 13, 2004 12:33 pm
Location:Western Cape, South Africa
Contact:

Re: can i set the using timing of any client from 12AM to 8AM

Sun Jul 06, 2008 3:41 pm

In that case I would rather do the following:

Create an IP list under ip/firewall/addresslists which contain all the clients you wish to control's source IP's.

Then create a firewall rule which drops that addresslist (if the firewall rule is on, those IP's are blocked, if firewall rule is disabled, those IP's are not blocked)

Then create one script to only enable that firewall rule
Create another script to disable that firewall rule

现在创建一个时间表运行启用脚本a certain time,
and another schedule to run the DISABLE script at another time

If you need help writing those scripts, pop us a message:)

G
Top
User avatar
ashish
Long time Member
Long time Member
Posts: 546
Joined: Mon Feb 12, 2007 5:50 am
Location:Virginia, USA.

Re: can i set the using timing of any client from 12AM to 8AM

Mon Jul 07, 2008 6:31 am

Simple way,

The src-address must be having NAT rule.

Just set the Times in /ip firewall nat rule.

/ip firewall nat
set time=starttime-endtime-day
Top

Who is online

Users browsing this forum:Semrush [Bot]and 8 guests