Page 1 of 1

I:lines

Posted: Fri Dec 26, 2008 11:22 am
by n1kv4rt
Problem: I have 2 class blocks named A and B. How can i define, which class block or allow block will be used first by UnrealIRCD?

Re: I:lines

Posted: Sat Dec 27, 2008 12:54 pm
by Jobe
Well with Allow blocks, the lowest allow block is read first, tested first, so the first allow block to match a user is used for that user first.

Then for which class users are put into, you can specify that per allow block.

All this IS covered in the documentation at "http://www.unrealircd.com/files/docs/un ... allowblock":
About matching
The access control works like this: ip matches OR host matches, so "hostname *@*"; and "ip *@1.2.3.4" will mean it will always match. Also the allow blocks are read upside down, so you need specific host/ip allow blocks AFTER your general *@* allow blocks. Additionally, if you want to setup a block that only matches based on IP, then set the hostname to something invalid, such as "hostname NOBODY;", this will allow the block to only match based on IP.