REDIRECT

These are old archives. They are kept for historic purposes only.
Post Reply
Arsenico
Posts: 8
Joined: Mon Feb 06, 2006 4:09 am

REDIRECT

Post by Arsenico »

i wanna know if there is a module.. who makes this thing.

Redirects users when one of the servers linked have X users ..

for example .. Elsitio was using that in a system croom. but i dont like croom :P
i like unreal and i wanna make that. cuz my shells have 500 users limit =)

Thnkz all and i hope u can tell me =)
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

You don't need a module for that.

Use the maxclients limit in the class block and set a redirect-server in the allow block.

Read the docs:
http://www.vulnscan.org/UnrealIRCd/unre ... classblock
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
sChutt
Posts: 48
Joined: Mon Mar 07, 2005 8:20 pm

Post by sChutt »

Kinda having the same problem.
Question tho: the only classes available are servers an clients right?
Not like i can make the SSL connections a seperate class?
If that'd be possible i could set it a diff listen block right?

- sChutt
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

You can add as many classes as you want.

If you want your SSL Clients in a separate class, set up a special allow block for them (using the ssl option).

Read the docs:
http://www.vulnscan.org/UnrealIRCd/unre ... allowblock
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
sChutt
Posts: 48
Joined: Mon Mar 07, 2005 8:20 pm

Post by sChutt »

Code: Select all

allow {
	ip             *@*;
	hostname       *@*;
	class           specials;
	maxperip 3;
        redirect-server <second server>;
	redirect-port 7000;
	options {
		ssl;
		};
};

allow {
	ip             *@*;
	hostname       *@*;
	class           clients;
	maxperip 3;
};
an the obvious:

Code: Select all

class           clients
{
	pingfreq 90;
	maxclients 500;
	sendq 1000000;
	recvq 12000;
};

class           specials
{
	pingfreq 90;
	maxclients 5;
	sendq 1000000;
	recvq 12000;
};
So a copy of the clients class for the 'special' ssl connections right? Set limit to something low like 5. Allow block copy from standard clients with the added option if they're ssl to redirect server etc right?

This config is rehashed atm yet new ssl connections do not get redirected yet. Re-read the documentation but alas...

- sChutt
Dukat
Posts: 1083
Joined: Tue Mar 16, 2004 5:44 pm
Location: Switzerland

Post by Dukat »

Re-read it again... (The part "About matching" should be interesting for you)
http://www.vulnscan.org/UnrealIRCd/unre ... allowblock
Also the allow blocks are read upside down, so you need specific host/ip allow blocks AFTER your general *@* allow blocks.
If you don't make mistakes, you aren't really trying.
- Coleman Hawkins
sChutt
Posts: 48
Joined: Mon Mar 07, 2005 8:20 pm

Post by sChutt »

Oh ffs...

/me slaps himself...

I indeed tried that before postin previous post, guess what i forgot to do tho? /rehash... So set it back to find it not working etc etc... Switched it into the right sequence - all good now, thx for the assist.

- sChutt
Post Reply