Configuring the Allow block

These are old archives. They are kept for historic purposes only.
Post Reply
W-Unit
Posts: 14
Joined: Sun Sep 12, 2004 11:25 pm

Configuring the Allow block

Post by W-Unit »

Hi,
Is there any way I can set it up so that anyone can connect to my server (with or without a password) but if they DO supply a password, they will have a different set of restrictions in the allow config?
Specifically I want to change allow:maxperip 2 to allow:maxperip 4 for people who connect with the password. Perhaps something to do with allow::options::nopasscont (I don't fully understand the way nopasscont works)?
I want anyone to be able to connect from anywhere with the password (so no restrictions on ip or hostname)

Thanks!
W-Unit
Ron2K

Post by Ron2K »

Allow blocks are read upside-down, so put your general one first and your passworded one last. And set allow::options::nopasscont (or whatever it is) for the second one, so that those who don't supply a password get redirected to the first one.

The docs do make this quite clear.
W-Unit
Posts: 14
Joined: Sun Sep 12, 2004 11:25 pm

Post by W-Unit »

Erm...I'm sorry but I just got everything set up a few days ago and this is too complicated for me...

I have no idea how to use nopasscont, and I cannot figure it out from the docs. If you could explain it or even give an example i would be most grateful.

Sorry for my n00bishness
Syzop
UnrealIRCd head coder
Posts: 2179
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Code: Select all

allow {
    ip "*@*";
    hostname "*@*";
    class clients;
    maxperip 2;
};
allow {
    ip "*@*";
    hostname "*@*";
    class leet-clients;
    maxperip 4;
    password "iamveryleet";
    options { nopasscont; };
};
(from the top of my head at least)
W-Unit
Posts: 14
Joined: Sun Sep 12, 2004 11:25 pm

Post by W-Unit »

hrmm...
Well it worked fine for a second, then I tried to see what would happen if I changed my oper block to class leet-clients (yes, I did add a class { for that) and now everything is fucked up. I get these errors on rehash (the first two of which I got on rehashing even when it did work)

Code: Select all

-irc.sillynet.com- *** Notice -- unrealircd.conf:1058: Ignoring extra data
-
-irc.sillynet.com- *** Notice -- unrealircd.conf:1058: Ignoring extra data
-
-irc.sillynet.com- *** Notice -- unrealircd.conf:224: illegal oper::class, unknown class 'client' using default of class 'default'
-
-irc.sillynet.com- *** Notice -- Configuration loaded without any problems ..
And those errors come up even when I change my oper back to class clients and comment out everything that has to do with leet-clients.

However they do not seem to do anything, so should I just ignore them or what?
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

You have syntax errors in your configuration, so a few of your configuration blocks can't be parsed. I'm almost sure, if you correct those errors, Syzop's example configuration will work as well.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Code: Select all

-irc.sillynet.com- *** Notice -- unrealircd.conf:1058: Ignoring extra data
-
-irc.sillynet.com- *** Notice -- unrealircd.conf:1058: Ignoring extra data
-
-irc.sillynet.com- *** Notice -- unrealircd.conf:224: illegal oper::class, unknown class 'client' using default of class 'default'
-
-irc.sillynet.com- *** Notice -- Configuration loaded without any problems ..
This, to me does raise an interesting point.
I would call those errors "problems," yet Unreal tells me that nothing is wrong. Is this correct?
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Post Reply