Page 1 of 1

Block some public ip address with wildcard

Posted: Thu Aug 22, 2019 7:06 pm
by cazz
Hi I have use my Mikrotik sometime and I like it alot.
But I have not work with it so much but I have a question about wildcard and block in firewall

If I use this command i terminal in Mikrotik
/ip firewall filter add chain=input src-address=83.240.61.62 action=drop
It then block the 83.240.61.32 to access to my router.

But what can I do if I like to block
83.240.61.*
or even
83.240.*.*
or something like that?

Re: Block some public ip address with wildcard

Posted: Thu Aug 22, 2019 7:12 pm
by nescafe2002
Use CIDR notation, e.g. src-address=83.240.61.0/24 or src-address=83.240.0.0/16.

Re: Block some public ip address with wildcard  [SOLVED]

Posted: Thu Aug 22, 2019 8:20 pm
by msatter
You can also enter a range between two ip addresses. If those can be written short by CIDR then the they will converted by ROS.

Example: 83.240.61.5-83.240.61.201

Re: Block some public ip address with wildcard

Posted: Thu Aug 22, 2019 9:12 pm
by cazz
hmmm ok thanks :)

Re: Block some public ip address with wildcard

Posted: Fri Aug 23, 2019 12:20 am
by msatter
Nescafe2002 gave the solving answer and I expanded on that. :D