oper::class

These are old archives. They are kept for historic purposes only.
Post Reply
Ithron
Posts: 8
Joined: Mon Mar 06, 2006 6:50 pm

oper::class

Post 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
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post 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.
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
Ithron
Posts: 8
Joined: Mon Mar 06, 2006 6:50 pm

Post 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.
Last edited by Ithron on Mon Mar 06, 2006 8:08 pm, edited 1 time in total.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Ithron
Posts: 8
Joined: Mon Mar 06, 2006 6:50 pm

Post by Ithron »

ok, i understand now for what it is, thx
i did what i wanted with the oper::from::userhost now.
mfg Ithron
Post Reply