How to Block Any Website Address/URL With MikroTik Filter Rule.
Block Website With MikroTik. You can use a MikroTik to block website addresses in order that they can't be accessed by means of Internet customers on the community. A community admin must recognise this method so that it will cozy all users from undesirable web pages. Or simply block certain web addresses, such as Facebook, YouTube, or different matters that youngsters do no longer should get right of entry to it. MikroTik is a powerful tool for coping with networks nowadays, so that you do not have to hassle doing something else. The manner it works is quite simple. Basically, MikroTik will disconnect while the blocked web page is accessed through the purchaser on the community. you simplest make a few settings at the MikroTik Firewall.
How MikroTik Firewall Blocks URL on the networks? The Mikrotik Firewall block the internet site deal with the use of filter out rule. There are two-components of Mikrotik rule.
- Conditional part.
- In this segment will take numerous conditional properties, inclusive of Source Address, Protocol type, Chain price, Source Port, Destination Address, Layer7 Protocol price, Destination Port, and many others. To in shape conditions.
- Action.
- It will take only drop action to block any internet site.
MikroTik firewall will drop the Internet connections if a filter out rule matched. So, all the client linked to the network cannot access and open the net address.
How to Block Facebook or Youtube Website Via MikroTik?
This is just an instance, you may follow to other website addresses apart from those mentioned above. See the following steps cautiously.
First Step. Creating Layer 7 Protocol From Firewall.
Before you create a Filter Rule, you want to create Layer7 Protocol with Regex due to the fact this Layer7 Protocol will be utilized by Filter Rule to fit any key-word in URL. Now, see the following step to create Layer7 Protocol with Regex.
- Open the Winbox to far flung MikroTik and Login with your Login credential.
Winbox Login - Then Go to IP menu > Firewall and then click on Layer7 Protocols.
IP Firewall Mikrotik - Now, Click on Plus Sign (+) to create a new Layer7 Protocol with Regex. This will open a brand new firewall layer 7 protocol.
- Now, placed a meaningful name which include Youtube in a Name enter field.
- Now positioned www.youtube.com Regex in Regexp text region enter field in case you want to block Facebook. If you have an interest to understand Perl Regex,
- Then, Now click on on Apply and OK
Second Step. Creating Filter Rule to Block the Website.
- Now click on on Filter Rules tab under Firewall Window.
- Then click on on Plus Sign (+) to create a new Filter Rule.
- It will open the Firewall Rule window.
- In General tab, choose forward from Chain drop-down menu.
tab general firewall filter rule - We are retaining untouched each Src. Address and Dst. Address because we want to block all patron.
- If you want to block for a specific consumer, put their IP cope with in Src. Address input container
- If you want to block for an IP block, positioned that IP block in the Src. Address input container.
- Now, click on at the Protocol drop-down menu and select 6 (TCP)
- Then. Put port 80,443 in Port input box. (Value need to be comma separated).
- Click on Advanced tab and then select the Layer7 Protocol that you created earlier than from Layer7 Protocol drop-down menu.
tab superior clear out rule - Then, click on Action tab and pick drop from Action drop-down menu. Click Apply and OK
action tab drop
Video Guide.
Berikan Komentar
<i>KODE</i>
<em>KODE YANG LEBIH PANJANG</em>
Notify me
untuk mendapatkan notifikasi balasan komentar melalui Email.