mengkonfigurasi mikrotik dengan kabel dan membokir ip,, mac address,, kelompok ip,, dan situs..

3 min read 6 hours ago
Published on Feb 04, 2025 This response is partially generated with the help of AI. It may contain inaccuracies.

Table of Contents

Introduction

This tutorial will guide you through configuring a MikroTik router using a cable connection. You will learn how to block IP addresses, MAC addresses, IP groups, and specific websites. This process is essential for managing your network, enhancing security, and controlling internet access.

Step 1: Connect to the MikroTik Router

  1. Gather Your Equipment:

    • A MikroTik router.
    • An Ethernet cable.
    • A computer or laptop.
  2. Physical Connection:

    • Connect one end of the Ethernet cable to the MikroTik router's LAN port.
    • Connect the other end to your computer’s Ethernet port.
  3. Access the Router Interface:

    • Open a web browser.
    • Enter the default IP address of your MikroTik router (usually 192.168.88.1).
    • Log in using the default credentials (often admin with no password).

Step 2: Block IP Addresses

  1. Navigate to IP Settings:

    • Go to the “IP” menu in the left sidebar.
    • Select “Firewall”.
  2. Add a New Rule:

    • Click on the “Filter Rules” tab.
    • Press the “+” button to add a new rule.
  3. Configure the Rule:

    • Set the “Chain” to input.
    • Enter the IP address you want to block in the “Src. Address” field.
    • In the "Action" tab, select drop to block the traffic.
    • Click “OK” to save the rule.

Step 3: Block MAC Addresses

  1. Access the MAC Address List:

    • Under the “IP” menu, select “Firewall”.
    • Go to the “Address List” tab.
  2. Add MAC Address:

    • Click on the “+” button.
    • Name the entry and input the MAC address you wish to block.
    • Save the entry.
  3. Create a Firewall Filter:

    • Navigate back to the “Filter Rules” tab.
    • Add a new rule as before, but this time set the “Chain” to forward.
    • In the “Src. MAC Address” field, enter the MAC address you just added.
    • Select drop in the "Action" tab and save the rule.

Step 4: Create IP Groups

  1. Access the Address List:

    • Go to the “IP” menu.
    • Select “Firewall” and then “Address Lists”.
  2. Create a Group:

    • Click on the “+” button to add a new address list.
    • Name your group (e.g., Blocked_IPs).
    • Add the IP addresses you want to include in this group.
  3. Apply Rules to the Group:

    • Go back to “Filter Rules”.
    • Create a new rule that matches the group you just created.
    • Set the “Action” to drop for this group.

Step 5: Block Specific Websites

  1. Use DNS Filtering:

    • Go to the “IP” menu.
    • Select “Firewall” and then “Layer7 Protocols”.
  2. Create a Layer7 Protocol:

    • Click on the “+” button to add a new protocol.
    • Name it (e.g., Block_Website).
    • In the “Regexp” field, enter the regex pattern for the website you want to block (for example, ^.+(example.com).*$).
  3. Add a Filter Rule:

    • Navigate to the “Filter Rules” tab.
    • Press the “+” button to add a new rule.
    • Set the “Chain” to forward.
    • In the “Layer7 Protocol” dropdown, select the protocol you just created.
    • Set the “Action” to drop and save the rule.

Conclusion

You have now successfully configured your MikroTik router to block specific IP addresses, MAC addresses, groups, and websites. This setup is vital for maintaining a secure and controlled network environment. For future management, consider regularly reviewing the firewall settings and adapting them as necessary to accommodate new devices or network changes.