Page 1 of 1

Banning an ISP and allowing connection with a password.

Posted: Mon Feb 20, 2006 9:08 pm
by Grunt
I want to ban an entire ISP on my server and allow certain users from that ISP to connect with a password.

I know about ban ip and except ban, but the second one does not allow setting a password. For what I searched and read around here, it's something in the allow block, right? I tried to do it, but didn't work.

Posted: Mon Feb 20, 2006 9:22 pm
by Stealth
Use allow blocks. Make one in your conf for a password AFTER the one for everyone else.

Posted: Tue Feb 21, 2006 5:13 am
by Grunt
Something like...

allow {
ip *@192.168.*;
hostname *@*;
class clients;
password "lamepasswordhere";
maxperip 2;
};


I already did this, and it rejects the connection, even with the password.

Posted: Tue Feb 21, 2006 7:49 am
by Dukat
You should probably read the documentation... http://www.vulnscan.org/UnrealIRCd/unre ... allowblock

Posted: Tue Feb 21, 2006 10:51 am
by Grunt
I did, over and over again. I just can't find anything about this. Look at these lines from the conf file:

allow {
ip *@*;
hostname *@*;
class clients;
maxperip 3;
};
allow {
ip *@192.168.*;
hostname *@*;
class clients;
password "achosenpassword";
maxperip 1;
};

[...... other lines .......]

ban user {
mask *@192.168.*;
reason "Because I feel like it!"
};

Posted: Tue Feb 21, 2006 12:12 pm
by Dukat
Read the part "About matching" again...

http://www.vulnscan.org/UnrealIRCd/unre ... allowblock

You made 2 mistakes - both are explained there.


You shouldn't need a ban user block... a correct allow block should be enough.