0

In the previous post, I have explained about how to configure mikrotik with post title How to Configure Mikrotik Using CLI (Command Line Interface). And this time I will post how to configure NTP client and Filter Internet Access using firewall on Mikrotik.

First I set up Mikrotik as follows:
1. Setting IP Address

2. Setting Identity On Mikrotik

3. Routing Configuration

4. Configure DNS

5. Configure The NAT Firewall

6. Check Connection Ping

7. Configure DHCP Server

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.

But do not worry, please try to connect to ether2, then you will get internet access karenya on my ether2 just setting up DHCP Server just to get IP automatically.

My tutorial on How To Configure NTP Client And Internet Access Filters Using A Firewall On Mikrotik, if you have difficulties or do not understand about the writing I created, you can comment or bertannya on my contacts already listed on this blog. Thanks.

Posting Komentar

Dear readers, after reading the Content please ask for advice and to provide constructive feedback Please Write Relevant Comment with Polite Language.Your comments inspired me to continue blogging. Your opinion much more valuable to me. Thank you.