Community discussions

MikroTik App
 
cazz
just joined
Topic Author
Posts: 19
Joined: Thu Dec 21, 2017 10:45 pm

Block some public ip address with wildcard

Thu Aug 22, 2019 7:06 pm

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?
 
nescafe2002
Forum Veteran
Forum Veteran
Posts: 915
Joined: Tue Aug 11, 2015 12:46 pm
Location: Netherlands

Re: Block some public ip address with wildcard

Thu Aug 22, 2019 7:12 pm

Use CIDR notation, e.g. src-address=83.240.61.0/24 or src-address=83.240.0.0/16.
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

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

Thu Aug 22, 2019 8:20 pm

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
 
cazz
just joined
Topic Author
Posts: 19
Joined: Thu Dec 21, 2017 10:45 pm

Re: Block some public ip address with wildcard

Thu Aug 22, 2019 9:12 pm

hmmm ok thanks :)
 
msatter
Forum Guru
Forum Guru
Posts: 2942
Joined: Tue Feb 18, 2014 12:56 am
Location: Netherlands / Nīderlande

Re: Block some public ip address with wildcard

Fri Aug 23, 2019 12:20 am

Nescafe2002 gave the solving answer and I expanded on that. :D