Answer the question
In order to leave comments, you need to log in
Is it possible to block ports in Mikrotik?
the essence is to ban anyone who knocks with evil intentions on certain ports from different IP addresses. Let's say the white list goes through all ports, the black one immediately flies from the first ping or attempt to connect to the port in the ban. Is that possible?
Answer the question
In order to leave comments, you need to log in
Mikrotik Fail2Ban - we look in Google
PS but it's better to set it up normally ... allow what is allowed, and drop the rest. Why uselessly eat the resources of the router?
Certainly. Mikrotik supports the concept of "lists" which are easily applicable to any operation.
For example, blacklisting two addresses 1.1.1.1 and 2.2.2.2 and prohibiting any traffic from them to the TCP/80 port:
/ip firewall address-list
add address=1.1.1.1 list=poshelvzhopu
add address=2.2.2.2 list=poshelvzhopu
/ip firewall filter
add action=drop chain=input src-address-list=poshelvzhopu protocol=tcp dst-port=80
add action=drop chain=forward src-address-list=poshelvzhopu protocol=tcp dst-port=80
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question