Page 1 of 2

Problem with allow-line

Posted: Tue Jan 04, 2005 5:32 pm
by Itsme-HcK
I don't really know how to say this and my English is really bad, so correct me if I'm wrong ;)

I wanted to run a bouncer on my own server, so I added this lines: (the passworded one for emergency)

Code: Select all

allow {
	ip *@*;
	hostname *@*;
	class clients;
	password "omgImHided";
	maxperip 50;
};

allow {
	ip *@127.0.0.1;
	hostname *@*;
	class clients;
	maxperip 50;
};
This doesn't work.... Why?

Posted: Tue Jan 04, 2005 5:50 pm
by Dukat
What exactly "doesn't work"?

Your allow blocks should let everybody in on your server.

I suggest you re-read the documentation on allow blocks:
http://www.vulnscan.org/UnrealIRCd/unre ... allowblock

Posted: Tue Jan 04, 2005 6:38 pm
by Itsme-HcK
Well, it says I have too much connected clients (4) :|

Posted: Tue Jan 04, 2005 7:01 pm
by Dukat
Can you please paste the exact error?

Posted: Tue Jan 04, 2005 7:22 pm
by Itsme-HcK
[18:38] Closing Link: Trivia-Bot[127.0.0.1] (Too many connections from your IP)

Posted: Wed Jan 05, 2005 5:12 am
by w00t
I wonder if that could be services disconnecting you? Most services packages have a configured limit on the number of connections from an IP.

Posted: Wed Jan 05, 2005 10:23 am
by Itsme-HcK
No, look @ the error...
And I made the services myself, WITHOUT user limit ;)

Posted: Wed Jan 05, 2005 10:26 am
by Dukat
Did you change the limit from a lower number to 50 and forgot to rehash?

Posted: Wed Jan 05, 2005 10:27 am
by Itsme-HcK
I've even restarted the server.... ^^

Posted: Wed Jan 05, 2005 10:32 am
by Dukat
Please paste the output of /stats I

Posted: Wed Jan 05, 2005 10:54 am
by Itsme-HcK
The output:
i *@* * *@* 5 clients irc.frnet.org 6667
i *@* * *@localhost 0 clients irc.frnet.org 6667
i *@* * *@* 0 clients irc.frnet.org 6667
i *@192.168.1.33 * *@* 20 clients irc.frnet.org 6667
i end of /stats report

Posted: Wed Jan 05, 2005 11:38 am
by Dukat
You have 4 allow blocks. The two you pasted above are not appearing.

Are you sure you are editing the correct file?

Posted: Wed Jan 05, 2005 11:39 am
by Itsme-HcK
yes, I added an IRCop yesterday, and he had his powers...

This is btw my whole allow block:

Code: Select all

allow {
ip *@192.168.1.33;
hostname *@*;
class clients;
maxperip 20;
};

allow {
	ip *@*;
	hostname *@*;
	class clients;
	password "omg I'm hided";
};

allow {
	ip *@127.0.0.1;
	hostname *@*;
	class clients;
	maxperip 50;
};

allow {
	ip             *@*;
	hostname       *@*;
	class           clients;
	maxperip 5;
};

Posted: Wed Jan 05, 2005 11:41 am
by Dukat
Alright, then everything is ok.

Now please read the docs if you don't understand how the matching and the order work.
http://www.vulnscan.org/UnrealIRCd/unre ... allowblock

Posted: Wed Jan 05, 2005 11:44 am
by Itsme-HcK

Code: Select all

allow {
	ip             *@*;
	hostname       *@*;
	class           clients;
	maxperip 5;
};

allow {
ip *@192.168.1.33;
hostname *@192.168.1.33;
class clients;
maxperip 20;
};

allow {
	ip *@127.0.0.1;
	hostname *@127.0.0.1;
	class clients;
	maxperip 50;
};

allow {
	ip *@*;
	hostname *@*;
	class clients;
	password "vanmij";
};
It has to be like that right? (it doesn't work...)