All the above configuration I have written in my previous post. You can read it in
How to Configure Mikrotik Using CLI (Command Line Interface). Next, I'll explain how to configure Internet Access filter, Customize local time and Configure NTP Client. Listen below.
1. Configuring NTP Client
In order for Client we can adjust the time according to Mikrotik, we must configure NTP (Network Time Protocol) and Setting Clock on Mikrotik. Follow the way below:
[code h1="1, 4, 7"] system ntp client set enabled=yes primary-ntp=[Your IP Server Local Time] [/code]
[code h1="1, 4, 7"] system clock set time-zone-name=Asia/Jakarta [/code]
Since I am Indonesian, I use the time zone of Indonesia.
[code h1="1, 4, 7"] system clock set date=[ Adjust the Date and Time of local time ] [/code]
To find out the configuration, you can use the command:
[code h1="1, 4, 7"] system clock print [/code]
2. Configure Internet Access On Hours And Certain Days
In this configuration, we will configure internet access on the client at certain hours of the day and hours so that the client gets restrictions on accessing the internet. For example if we configure the internet access filter at 7 am to 5 pm (Internet Access On) then at 5 pm to 7 pm morning the client can not access internet (Internet Auto Off Access) And will turn on automatically again at 7 am until at 5 pm onwards. We can also set the day to restrict the internet access. Please follow the following ways:
[code h1="1, 4, 7"] ip firewall filter add chain=forward in-interface=[ Ether you want to filter ] time=7h-19h,sat,mon,sun,thu,tue,wed,fri [ The hours and days you want to filter ] action=drop [/code]
Now please try to check the configuration of the internet access filter you have created.
From the screenshots above, I have given IP ether3 to DHCP to get IP automatically and at 7 am to 7 pm I block internet access on ether3, so clients connected to ether3 do not get internet access at 7 am until 7 pm.