Page 1 of 1

oper::class

Posted: Mon Mar 06, 2006 6:59 pm
by Ithron
Hi
On my IRC-Server, I wanted to restrict an oper block to a special class, so I used the class item.
but also users who aren't in this class (what i can see when tehy are connecting) can oper them with this oper-block.
for this special class, i created an allow block with "ip *@192.168.0.*;"
and "hostname NOBODY;"
Can anybody tell me, what I did wrong?
thx for help, Ithron

p.s. sorry for this english, but I'm just a stupid german boy

Posted: Mon Mar 06, 2006 7:09 pm
by Grunt
I think you might need to use hostname *@*; - not sure though. Check the documentation again or try to paste in here your allow/class/oper blocks, and make sure you change safety-related information.

Posted: Mon Mar 06, 2006 7:14 pm
by Ithron
thx for the fast reply, but look in the doc:

Code: Select all

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.
my blocks are these:

Code: Select all

[Blocks No longer used - perhaps safety-related information]
the problem is dthat also clients of teh "client" class can oper with the Ithron oper.

Posted: Mon Mar 06, 2006 7:52 pm
by Dukat
oper::class is the class the oper will be in after he is opered.
You can not restrict oper blocks to a certain class - it's not possible to do what you want.

Posted: Mon Mar 06, 2006 8:06 pm
by Ithron
ok, i understand now for what it is, thx
i did what i wanted with the oper::from::userhost now.
mfg Ithron