Password to connect to IRCD

These are old archives. They are kept for historic purposes only.
Post Reply
intel233
Posts: 13
Joined: Wed Aug 12, 2009 10:25 pm

Password to connect to IRCD

Post by intel233 »

allow {
ip *@*;
hostname *@*;
class clients;
password "RoCkz&RollZ";
maxperip 2;
options {
ssl;
I thought this would make it so everyone have to put in that p/w in order to connect. I had a couple people tell me they are able ot connect without supplying a password.

Any help is appreciated.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Password to connect to IRCD

Post by Stealth »

it is because this allow block is only for people connecting with SSL.
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Password to connect to IRCD

Post by katsklaw »

In addition, according to the documentation (that everyone should read :)), allow blocks are read from bottom to top, so if you have a less restrictive allow block at the bottom that users also fit into, it will be used and the more restrictive one will be skipped.
intel233
Posts: 13
Joined: Wed Aug 12, 2009 10:25 pm

Re: Password to connect to IRCD

Post by intel233 »

allow {
ip *@68.XXX.XXX.XXX;
hostname *;
class clients;
maxperip 6;
};

allow {
ip *@*;
hostname *@*;
class clients;
password "RoCkz&RollZ";
maxperip 4;
options {
ssl;
};
};

This will limit me to only 4 if my ip is 68.XXX.XXX.XXX I need to have at least 5-6 logins and now if i put the allow with maxperip 4 i cant get in.
IS there a way around this?
katsklaw
Posts: 1124
Joined: Sun Apr 18, 2004 5:06 pm
Contact:

Re: Password to connect to IRCD

Post by katsklaw »

as I said, you will match the BOTTOM one first, thus not getting to the allow block granting you 6. Your least restrictive should be at the top of the allow block list. As-is, no one will match anything except the bottom allow block except those that aren't using ssl.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: Password to connect to IRCD

Post by Stealth »

Also when making allow blocks remember the hostname and IP are matched as OR

Which means the user must match the hostname OR IP, not hostname AND IP
Post Reply