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?
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?
I want to stop fully for the rest of the time. They would get connected which time i only allow.
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
Now create a schedule to run the ENABLE script at 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
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