Can't figure out how to allow more users

These are old archives. They are kept for historic purposes only.
Post Reply
jopiek
Posts: 5
Joined: Tue Jun 20, 2006 6:17 am

Can't figure out how to allow more users

Post 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...
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post 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 )
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
jopiek
Posts: 5
Joined: Tue Jun 20, 2006 6:17 am

Post 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".
MarHazK
Posts: 73
Joined: Wed May 25, 2005 5:36 pm
Location: WebMAS.net
Contact:

Post by MarHazK »

its depands with other connection from TCP users connected through the network or shell that has a limited connection.
GreenRoom SEC - Main Coder & CoMaster (http://www.wiramaster.com)
DataServ IRC Services - Main Coder
AirChat Network - Main Coder (http://www.airchat.org)
WebMAS Network - Main Team (http://www.webmas.net)
jopiek
Posts: 5
Joined: Tue Jun 20, 2006 6:17 am

Post 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
frozen
Posts: 53
Joined: Sat Jun 12, 2004 7:39 am

Post 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.
SpaceDoG
Posts: 301
Joined: Mon Feb 27, 2006 5:44 am
Contact:

Post 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.
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

"no more connections allowed" means the fd limit from ./Config is reached, so see SpaceDoG's reply.
jopiek
Posts: 5
Joined: Tue Jun 20, 2006 6:17 am

Post 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).
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Post 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.
jopiek
Posts: 5
Joined: Tue Jun 20, 2006 6:17 am

Post 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.)
medice
Posts: 42
Joined: Fri Jul 09, 2004 11:02 pm

Post by medice »

maybe you have some lost allow-block somewhere in the conf?
greets
/medice
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post 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.
Post Reply