Page 1 of 1

Can't figure out how to allow more users

Posted: Tue Jun 20, 2006 6:21 am
by jopiek
I have installed UnrealIRCD 3.2 at my FreeBSD server, however:

/lusers gives:
Current Local Users: 1 Max: 10
Current Global Users: 1 Max: 2

It just does not allow more clients than 10 (they connect from different IP's).
I need to allow many more users and I can't figure out how. The conf file says this:

class clients
{
pingfreq 90;
maxclients 500;
sendq 100000;
recvq 8000;
};

class servers
{
pingfreq 90;
maxclients 100; /* Max servers we can have linked at a time */
sendq 1000000;
connfreq 100; /* How many seconds between each connection attempt */
};

It is probably very simple, but I just can't figure out how to fix it...

Posted: Tue Jun 20, 2006 6:39 am
by Dukat
The "maximum" in /lusers means the user record (i.e. highest connection count), not the maximum of users your server allows.

By default your server can hold 1024 connections (unless the os enforces a limit).

http://www.vulnscan.org/UnrealIrcd/faq/#46
( http://www.vulnscan.org/UnrealIrcd/faq/#11 - but that's not your problem I guess )

Posted: Tue Jun 20, 2006 9:46 am
by jopiek
Dukat wrote:The "maximum" in /lusers means the user record (i.e. highest connection count), not the maximum of users your server allows.

By default your server can hold 1024 connections (unless the os enforces a limit).

http://www.vulnscan.org/UnrealIrcd/faq/#46
( http://www.vulnscan.org/UnrealIrcd/faq/#11 - but that's not your problem I guess )
No it is very strange, I might want to take a look at my client since that might be the problem, allthought the error I get is something like "Server full, no more connections allowed".

Posted: Tue Jun 20, 2006 10:50 am
by MarHazK
its depands with other connection from TCP users connected through the network or shell that has a limited connection.

Posted: Tue Jun 20, 2006 1:14 pm
by jopiek
MarHazK wrote:its depands with other connection from TCP users connected through the network or shell that has a limited connection.
Yes, I understand, but my server does not limit TCP connections, so it must be UnrealIRCD

Posted: Tue Jun 20, 2006 9:11 pm
by frozen
I don't see how it could be UnrealIRCd when I run one on a FreeBSD box and don't have this problem.

Code: Select all

allow
{
    ip       *;
    hostname *;
    class    clients;
    maxperip 20;
};
Give that a shot.

Posted: Wed Jun 21, 2006 12:24 pm
by SpaceDoG
Jopiek when you installed unreal what was the amount of file descriptors allowed? If this was changed from the default of 1024 to something like 1 or 2 then no one can connect aside from 1 or 2 clients or servers. The amount of file descriptors unreal uses determines how many ports to can be opened to the server so that users can connect to it.

Posted: Wed Jun 21, 2006 4:11 pm
by Syzop
"no more connections allowed" means the fd limit from ./Config is reached, so see SpaceDoG's reply.

Posted: Mon Jun 26, 2006 9:20 am
by jopiek
Syzop wrote:"no more connections allowed" means the fd limit from ./Config is reached, so see SpaceDoG's reply.
I tried it, it doesn't help. I used Mirc to connect 8+ clients. The 9th client says: "unable to connect". I suspect it has to do with "max global users" or so. I don't see an other reason why it doesn't work. My server just allows all connections, no firewall etc (it's on intranet only).

Posted: Mon Jun 26, 2006 10:56 am
by Jobe
if by Max Globa Users you mean the count like these:
Current Local Users: 1 Max: 4
Current Global Users: 19 Max: 22
then that is only the maximum number of users that has been connected to the network and not the maximum allowed to connect. Same applies for the Local User count as above.

Posted: Wed Jul 05, 2006 8:33 am
by jopiek
Jobe1986 wrote:if by Max Globa Users you mean the count like these:
Current Local Users: 1 Max: 4
Current Global Users: 19 Max: 22
then that is only the maximum number of users that has been connected to the network and not the maximum allowed to connect. Same applies for the Local User count as above.
So it is very strange that those clients cannot connect. After about 7 mirc clients it says "server full" and doesn't allow to connect anymore.

Here is the unrealircd.conf: http://83.247.66.125/unrealircd.conf

in the ./Config: How many file descriptors (or sockets) can the IRCd use?
[2048] -> 2048

However it does say in the config that follows after that FD_SETSIZE is not large enough to support 2048 connections.

I put it back to 1024 and now: checking if FD_SETSIZE is large enough to allow 1024 file descriptors... yes

I just did a test:
20 users is max...

mIRC says:
* Connect retry #1 pzirc.jksoft.nl (6667)
-
-pzirc.jksoft.nl- *** Looking up your hostname...
-
-pzirc.jksoft.nl- *** Couldn't resolve your hostname; using your IP address instead
-
pzirc.jksoft.nl 6667 Please use this Server/Port instead
-
Closing Link: joepie323[172.16.132.57] (This server is full.)

Posted: Thu Jul 06, 2006 10:37 pm
by medice
maybe you have some lost allow-block somewhere in the conf?

Posted: Thu Jul 06, 2006 11:56 pm
by Syzop

Code: Select all

/* Passworded allow line */
allow {
	ip             *@*;
	hostname       *@*;
	class           servers;
	/* password "f00Ness"; */
	maxperip 5;
};
Remove that part.

Otherwise all your clients end up in your servers class which has a maxclients of 20.