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

These are old archives. They are kept for historic purposes only.
Post Reply
Evgeny
Posts: 3
Joined: Thu Sep 13, 2012 11:24 am

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

Post by Evgeny » Thu Sep 13, 2012 11:45 am

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.

Jobe1986
Official supporter
Posts: 1177
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

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

Post by Jobe1986 » Thu Sep 13, 2012 12:10 pm

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

Evgeny
Posts: 3
Joined: Thu Sep 13, 2012 11:24 am

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

Post by Evgeny » Fri Sep 14, 2012 4:09 am

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?

Evgeny
Posts: 3
Joined: Thu Sep 13, 2012 11:24 am

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

Post by Evgeny » Fri Sep 14, 2012 8:29 am

I have just tested CIDR in allow block. It looks working!

katsklaw
Official supporter
Posts: 1114
Joined: Sun Apr 18, 2004 5:06 pm

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

Post by katsklaw » Fri Sep 14, 2012 11:29 am

IIRC, channel bans can also be CIDR as of 3.2.8 or 3.2.8.1.

Post Reply