fbpx

What are chains in MikroTik firewall?

In the context of the MikroTik firewall, chains are essentially rules or processing sequences through which data packets pass to be inspected and filtered.

Each chain represents a specific point in the traffic flow through the router where packets can be evaluated and manipulated according to rules defined by the network administrator. Chains allow traffic to be classified and controlled in a detailed manner, offering great flexibility and power in network security management.

MikroTik's RouterOS defines several default chains in its firewall to categorize network traffic into different stages of processing, such as:

1. Input

This chain processes incoming packets directed to the router itself. It is useful to control who can access the router and to manage connection attempts to the services that the router offers, such as SSH, Winbox, or the web interface.

2. output

It manages the packets that the router generates and sends to the network. Using rules in this chain can be useful to limit outbound traffic from the router to certain destinations or services.

3. Forward

This chain deals with packets that traverse the router, that is, traffic that is not destined for the router itself, but simply traverses it from one interface to another. The rules in this chain are crucial for implementing security policies between different segments of your network.

4. Prerouting and Postrouting

  • Prerouting: Processes packets as soon as they are received by the router, before the routing decision is made. It is useful for altering incoming packets before they are processed by Input or Forward rules.
  • Postrouting: Applies to packets after their route has been decided, allowing them to be modified just before they are sent. This is useful for changing the source address of packets for applications such as NAT (Network Address Translation).

Customization and Creation of Chains

In addition to these predefined chains, RouterOS allows users to create their own custom chains to handle specific situations. This adds even more flexibility to the firewall system, allowing administrators to design and apply very granular security policies based on their specific needs.

Rules within each chain are processed in sequential order, from the first rule down, until a packet matches a rule. Therefore, the organization and order of rules within a chain are crucial to the desired behavior of the firewall.

Actions that can be taken on packets include allow, reject, discard, among others, based on criteria such as IP addresses, ports, protocols, and more.

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

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

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

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

17%

all MikroTik OnLine courses

CW23-AX

30%

all Academy courses

CW23-LIB

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

22%

all MikroTik OnLine courses

BF23-AX

35%

all Academy courses

BF23-LIB

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