fbpx

Would the raw firewall option in MikroTik be enough to mitigate ICMP attacks?

The “raw” firewall option in MikroTik RouterOS is a powerful tool to mitigate attacks, including those based on ICMP (Internet Control Message Protocol).

The raw firewall works at a very early stage of packet processing, allowing it to effectively deal with unwanted packets before they consume system resources beyond basic processing.

To mitigate ICMP attacks, such as ping flood (a type of DDoS attack where the attacker floods the victim with ICMP packets to exhaust its resources), you can use rules in the raw table to discard or limit this traffic.

This is because the rules in this table are processed before those in the filter and nat tables, allowing early intervention and minimizing the impact on router performance.

Configuring Rules in the Raw Firewall to Mitigate ICMP Attacks

Here is an example of how to configure a rule in the raw firewall to limit ICMP packets:

  1. Access your MikroTik router via Winbox, WebFig, or SSH.
  2. Go to the “raw” Firewall section:
    • In Winbox or WebFig: Go to IP > Firewall and then to the tab Raw.
    • On the command line: Use the command /ip firewall raw.
  3. Add a rule to limit ICMP traffic:
    • For Winbox or WebFig: Click + to add a new rule. In the tab General, Select icmp in the field Protocol. On the tab Action, choose drop o limit as an action and configure the parameters according to your needs.
    • On the command line: Use a command similar to /ip firewall raw add action=drop chain=prerouting protocol=icmp icmp-options=8:0 limit=10,20:packet.

This example basically says: “Discard ICMP type 8 (echo request) packets that exceed a limit of 10 packets per second with a burst of 20 packets.” Adjust the limit and burst based on expected normal traffic and your network capacity.

Considerations

  • Precision: Make sure you configure the rules precisely to avoid blocking legitimate ICMP traffic, which is useful for network diagnostics and flow control.
  • Monitoring: It is advisable to monitor ICMP traffic regularly to adjust rules based on observed behavior and avoid false positives.
  • complementarity: Although the raw firewall is effective in mitigating attacks, consider using it in conjunction with other security measures, such as firewall rules in the filter table, for complete protection.

The use of raw firewall can be an effective measure to mitigate ICMP attacks, but it must be part of a broader, strategic approach to network security.

There are no tags for this post.
Did this content help you?
Facebook
Twitter
LinkedIn
WhatsApp
Telegram

Other documents in this category

Leave your comment

Your email address will not be published. Required fields are marked with *

Tutorials available at MikroLABs

No Courses Found!

DISCOUNT CODE

AN24-LIB

applies to MikroTik books and book packs

Days
Hours
Minutes
Seconds

Introduction to
OSPF - BGP - MPLS

Sign up for this Free course

MAE-RAV-ROS-240118
Days
Hours
Minutes
Seconds

Sign up for this Free course

MAS-ROS-240111

Promo for Three Kings Day!

KINGS24

Present in several = 15%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the Three Kings Day discount code!

* promotion valid until Sunday January 7, 2024
** the code (KINGS24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

New Year's Eve Promo!

NY24

Present in several = 20%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the New Year's Eve discount code!

* promotion valid until Monday, January 1, 2024
** the code (NY24) applies to shopping cart
*** buy your course now and take it until March 31, 2024

Christmas discounts!

XMAS23

Present in several = 30%

all the products

MikroTik courses
Academy courses
MikroTik books

Take advantage of the discount code for Christmas!!!

**codes are applied in the shopping cart
Promo valid until Monday December 25, 2023

CYBER WEEK DISCOUNTS

CW23-MK

Present in several = 17%

all MikroTik OnLine courses

CW23-AX

Present in several = 30%

all Academy courses

CW23-LIB

Present in several = 25%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Cyber ​​Week!!!

**codes are applied in the shopping cart
Promo valid until Sunday December 3, 2023

BLACK FRIDAY DISCOUNTS

BF23-MX

Present in several = 22%

all MikroTik OnLine courses

BF23-AX

Present in several = 35%

all Academy courses

BF23-LIB

Present in several = 30%

all MikroTik Books and Book Packs

Take advantage of the discount codes for Black Friday!!!

**Codes are applied in the shopping cart

codes are applied in the shopping cart
valid until Sunday November 26, 2023

Days
Hours
Minutes
Seconds

Sign up for this Free course

MAE-VPN-SET-231115

Halloween promo

Take advantage of discount codes for Halloween.

Codes are applied in the shopping cart

HW23-MK

11% discount on all MikroTik OnLine courses

11%

HW23-AX

30% discount on all Academy courses

30%

HW23-LIB

25% discount on all MikroTik Books and Book Packs

25%

Register and participate in the free course Introduction to Advanced Routing with MikroTik (MAE-RAV-ROS)

Today (Wednesday) October 11, 2023
7pm to 11pm (Colombia, Ecuador, Peru)

MAE-RAV-ROS-231011