Banning an ISP and allowing connection with a password.

These are old archives. They are kept for historic purposes only.
Post Reply
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Banning an ISP and allowing connection with a password.

Post 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.
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Post by Stealth »

Use allow blocks. Make one in your conf for a password AFTER the one for everyone else.
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post 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.
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

You should probably read the documentation... http://www.vulnscan.org/UnrealIRCd/unre ... allowblock
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Grunt
Posts: 159
Joined: Mon Jan 09, 2006 7:31 pm
Contact:

Post 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!"
};
Computers are machines that cause trouble you wouldn't normally have if you wouldn't have a computer.
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
Post Reply