Raising connections per ip, via command

If your UnrealIRCd is up and running but you have a question about it, then use this forum.
(NOT for installation or connecting issues! Use the other forum instead.)

Moderator: Supporters

Locked
ComputerTech
Posts: 24
Joined: Fri Jul 17, 2020 3:43 am
Location: Northern Ireland
Contact:

Raising connections per ip, via command

Post by ComputerTech » Sun Jul 26, 2020 2:45 pm

Hey all, so if i add a eline to a ip address, i realise it can let as many connections via that ip, but can you raise the limit, (eg, default 3 connections per ip) can i raise this via command on unrealircd like anope?
ComputerTech

Syzop
UnrealIRCd head coder
Posts: 1957
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: Raising connections per ip, via command

Post by Syzop » Sun Jul 26, 2020 3:52 pm

Right, you mean an ELINE with type 'm' (paste from HELPOP ELINE):

Code: Select all

Syntax:  ELINE <user@host> <bantypes> <expire-time> <reason> (Adds an E-Line)
[..]
Valid <bantypes> are:
     m   |    maxperip   | Bypass allow::maxperip restriction
So something like: /ELINE *@1.2.3.4 m 0 No IP limit for this host.
This will bypass the limit completely, allowing an unlimited number of connections. It should only be used for really trusted IP addresses. There is no way via ELINE to set a specific limit.

If you want to bump the limit for some IP to a specific limit, for example you have a generic limit of 3 per IP and you want to raise it to 10 for a specific IP address, then you have to use an allow { } block, specifically for that IP. See the example at the very end of that allow { } block page, it will show you how to do this.

And, this was not your question, but: maybe you have multiple servers and find it a pain to keep some configuration settings the same on all? Then you should know we have a feature called remote includes which makes configuration file management a lot easier. Basically you put all settings that should be the same on all servers in one or more separate files that are served from a webserver, and then in UnrealIRCd you use include with an https url to fetch it, from all servers.

ComputerTech
Posts: 24
Joined: Fri Jul 17, 2020 3:43 am
Location: Northern Ireland
Contact:

Re: Raising connections per ip, via command

Post by ComputerTech » Sun Jul 26, 2020 10:28 pm

Yeah!! that was my problem, too many servers to add the block, and thanks a lot again Syzop, your direct answers is always appreciated :D :D
ComputerTech

ComputerTech
Posts: 24
Joined: Fri Jul 17, 2020 3:43 am
Location: Northern Ireland
Contact:

Re: Raising connections per ip, via command

Post by ComputerTech » Sun Jul 26, 2020 11:11 pm

hmm, does it have to be a http page to use remote include?

or can it simply use the vps/shell's address?
ComputerTech

Lord255
Posts: 46
Joined: Sat Feb 29, 2020 12:58 am
Location: offline

Re: Raising connections per ip, via command

Post by Lord255 » Mon Jul 27, 2020 11:09 am

what kind of question is that?:D
i don't really understand.

you need a web server so serve the configs. it doesn't matter if you call it via domain or ip, http or https protocol..

Locked