Page 1 of 1

Module that allows IPs by <Net address>/<Net mask>

Posted: Thu Sep 13, 2012 11:45 am
by Evgeny
E. g. "10.96.0.0/11"
1. Is there such module?
2. If no, does permit module API to create such kind module?

Existing allow block with IP mask as "*" is very inconvenient for me.

Re: Module that allows IPs by <Net address>/<Net mask>

Posted: Thu Sep 13, 2012 12:10 pm
by Jobe
In what type of ban are you asking for CIDR masks to be allowed?

The reason I ask is because with the exception of channel bans (mode +b), channel ban exceptions (mode +e) and channel invite exceptions (mode +I) just about every place that accepts a mask accepts CIDR as documented at http://www.unrealircd.com/files/docs/un ... ature_cidr

Re: Module that allows IPs by <Net address>/<Net mask>

Posted: Fri Sep 14, 2012 4:09 am
by Evgeny
I speak about http://www.unrealircd.com/files/docs/un ... allowblock.
The ip mask is in the form user@ip, user is the ident and often set at *, ip is the ipmask. Some examples: *@* (from everywhere), *@192.168.* (only from addr's starting with 192.168), etc.
Is CIDR supported in this section?

Re: Module that allows IPs by <Net address>/<Net mask>

Posted: Fri Sep 14, 2012 8:29 am
by Evgeny
I have just tested CIDR in allow block. It looks working!

Re: Module that allows IPs by <Net address>/<Net mask>

Posted: Fri Sep 14, 2012 11:29 am
by katsklaw
IIRC, channel bans can also be CIDR as of 3.2.8 or 3.2.8.1.