Page 1 of 1
Configuring the Allow block
Posted: Sun Sep 12, 2004 11:31 pm
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
Posted: Mon Sep 13, 2004 6:39 am
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.
Posted: Mon Sep 13, 2004 8:57 pm
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
Posted: Mon Sep 13, 2004 10:09 pm
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)
Posted: Thu Sep 16, 2004 2:03 pm
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?
Posted: Thu Sep 16, 2004 5:30 pm
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.
Posted: Thu Sep 16, 2004 11:26 pm
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?