Log in | Back to darenet.org

Server Features

m (CHMODE_N)
(AUTOJOIN_ADMIN_NOTICE)
Line 1,320: Line 1,320:
If enabled the notice set for AUTOJOIN_ADMIN_NOTICE_VALUE will be notice'd to users just before forced autojoin.
If enabled the notice set for AUTOJOIN_ADMIN_NOTICE_VALUE will be notice'd to users just before forced autojoin.
-
AUTOJOIN_ADMIN_NOTICE_VALUE
+
==AUTOJOIN_ADMIN_NOTICE_VALUE==
-
* Type: string
+
* '''Type:''' string
-
* Default: *** Notice -- You are now being autojoined into #admin
+
* '''Default:''' <nowiki>***</nowiki> Notice -- You are now being autojoined into #admin
Notice for AUTOJOIN_ADMIN_NOTICE (see above).
Notice for AUTOJOIN_ADMIN_NOTICE (see above).
-
CTCP_VERSIONING
+
==CTCP_VERSIONING==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' FALSE
Enables CTCP versioning for clients on connect.
Enables CTCP versioning for clients on connect.
-
CTCP_VERSIONING_KILL
+
==CTCP_VERSIONING_KILL==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' FALSE
Kills clients who match specified versions.
Kills clients who match specified versions.
-
CTCP_VERSIONING_CHAN
+
==CTCP_VERSIONING_CHAN==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' FALSE
-
If enabled version replies will be sent to the channel set for  
+
If enabled version replies will be sent to the channel set for CTCP_VERSIONING_CHANNAME
-
CTCP_VERSIONING_CHANNAME
+
-
CTCP_VERSIONING_CHANNAME
+
==CTCP_VERSIONING_CHANNAME==
-
* Type: string
+
* '''Type:''' string
-
* Default: #opers
+
* '''Default:''' #opers
-
Channel where version replies are sent to if CTCP_VERSIONING_CHAN
+
Channel where version replies are sent to if CTCP_VERSIONING_CHAN is enabled (See above).
-
is enabled (See above).
+
-
CTCP_VERSIONING_USEMSG
+
==CTCP_VERSIONING_USEMSG==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' FALSE
-
If enabled version replies sent to the channel set for CTCP_VERSIONING_CHANNAME
+
If enabled version replies sent to the channel set for CTCP_VERSIONING_CHANNAME will be sent using privmsgs instead of notices.
-
will be sent using privmsgs instead of notices.
+
-
CTCP_VERSIONING_NOTICE
+
==CTCP_VERSIONING_NOTICE==
-
* Type: string
+
* '''Type:''' string
-
* Default: *** Checking your client version
+
* '''Default:''' <nowiki>***</nowiki> Checking your client version
Message sent to clients during the versioning process on connect.
Message sent to clients during the versioning process on connect.
-
FILTER_DEFAULT_CHANNAME
+
==DEF_ALIST_LIMIT==
-
* Type: string
+
* '''Type:''' integer
-
* Default: #opers
+
* '''Default:''' 30
-
 
+
-
Default channel filter matches will be sent to if the channel alert flag is
+
-
enabled.
+
-
 
+
-
FILTER_ALERT_USEMSG
+
-
* Type: boolean
+
-
* Default: FALSE
+
-
 
+
-
If enabled then filter matches which are sent to alert channels will be sent
+
-
as privmsg's instead of notices.
+
-
 
+
-
FILTER_DEFAULT_LENGTH
+
-
* Type: integer
+
-
* Default: 3600
+
-
 
+
-
Default length of a k/g/z:line for filter matches if a length isnt specifed.
+
-
 
+
-
DEF_ALIST_LIMIT
+
-
* Type: integer
+
-
* Default: 30
+
Maximum responses allowed in a ALIST search output.
Maximum responses allowed in a ALIST search output.
-
ALIST_SEND_FREQ
+
==ALIST_SEND_FREQ==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 300
+
* '''Default:''' 300
How often (in seconds) ALIST updates are checked across the server.
How often (in seconds) ALIST updates are checked across the server.
-
ALIST_SEND_DIFF
+
==ALIST_SEND_DIFF==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 600
+
* '''Default:''' 600
-
If the last message for the channel is over the current time minus to setting
+
If the last message for the channel is over the current time minus to setting for ALIST_SEND_DIFF then an ALIST update will be sent out to other servers.
-
for ALIST_SEND_DIFF then an ALIST update will be sent out to other servers.
+
-
EXEMPT_EXPIRE
+
==EXEMPT_EXPIRE==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 172800
+
* '''Default:''' 172800
-
If no one has triggered an exempt within this amount of time (in seconds) then
+
If no one has triggered an exempt within this amount of time (in seconds) then the exempt will expire.
-
the exempt will expire.
+
-
STRICTUSERNAME
+
==STRICTUSERNAME==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' TRUE
If enabled then strict ident/username rules will be applied.
If enabled then strict ident/username rules will be applied.
-
SET_ACTIVE_ON_CREATE
+
==SET_ACTIVE_ON_CREATE==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
Sets a channel as active when a user creates one.
Sets a channel as active when a user creates one.
-
ZLINEMAXUSERCOUNT
+
==ZLINEMAXUSERCOUNT==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 20
+
* '''Default:''' 20
-
Maximum amount of users a Z:line can affect when a Z:line is set via /ZLINE.
+
Maximum amount of users a Z:line can affect when a Z:line is set via <code>/ZLINE</code>. Zlines set via services or servers will not be affected by this rule.
-
Zlines set via services or servers will not be affected by this rule.
+
-
NICK_DELAY
+
==NICK_DELAY==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 30
+
* '''Default:''' 30
-
How often a user can change ther nick (in seconds).
+
How often a user can change thier nick (in seconds).
-
HELP_PACE
+
==HELP_PACE==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 5
+
* '''Default:''' 5
How often a user can request /HELP (in seconds).
How often a user can request /HELP (in seconds).
-
LOC_SENDHOST
+
==LOC_SENDHOST==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' TRUE
If enabled hostnames will be sent in Login on connect messages to servers.
If enabled hostnames will be sent in Login on connect messages to servers.
-
IPCHECK
+
==IPCHECK==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
-
Controls the clone and throttle detection system in the IRCd. If you disable this
+
Controls the clone and throttle detection system in ircd-darenet. If you disable this then the maximum setting in I-lines will not have any effect. You would need to use clone detection systems in the services you use.
-
then the maximum setting in Client blocks will not have any effect. You would
+
-
need to use clone detection systems in the services you use.
+
-
LUSERS_AUTHED
+
==LUSERS_AUTHED==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' TRUE
-
If enabled a count of logged in users will be shown in /LUSERS.
+
If enabled a count of logged in users (e.g., authed to NickServ) will be shown in <code>/LUSERS</code>.
-
SHUNMAXUSERCOUNT
+
==SHUNMAXUSERCOUNT==
-
* Type: integer
+
* '''Type:''' integer
-
* Default: 20
+
* '''Default:''' 20
-
Maximum amount of users a Shun can affect when a shun is set via /SHUN.
+
Maximum amount of users a Shun can affect when a shun is set via <code>/SHUN</code>. Shuns set via services or servers will not be affected by this rule.
-
Zlines set via services or servers will not be affected by this rule.
+
-
OPER_WHOIS_PARANOIA
+
==OPER_WHOIS_PARANOIA==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: FALSE
+
* '''Default:''' TRUE
-
Allows the use of the W opermode which will show /WHOIS attempts to opers when
+
Allows the use of the W opermode which will show <code>/WHOIS</code> attempts to opers when they are done on themselves.
-
they are done on themselves.
+
-
HIS_SHUN_REASON
+
==HIS_SHUN_REASON==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
Will prevent the reason from being shown to a user if enabled.
Will prevent the reason from being shown to a user if enabled.
-
HIS_USERSHUN
+
==HIS_USERSHUN==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
-
Will prevent normal users from getting shun lists via /SHUN if enabled.
+
Will prevent normal users from getting shun lists via <code>/SHUN</code> if enabled.
-
HIS_ZLINE
+
==HIS_ZLINE==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
-
This will hide the user who done the zline in the zline message when enabled.
+
This will hide the user who issued the zline in the zline message when enabled.
-
HIS_USERZLINE
+
==HIS_USERZLINE==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
-
Will prevent normal users from getting zline lists via /ZLINE if enabled.
+
Will prevent normal users from getting zline lists via <code>/ZLINE</code> if enabled.
-
HIS_ZLINE_REASON
+
==HIS_ZLINE_REASON==
-
* Type: boolean
+
* '''Type:''' boolean
-
* Default: TRUE
+
* '''Default:''' TRUE
Will prevent the reason from being shown to a user if enabled.
Will prevent the reason from being shown to a user if enabled.
-
</pre>
 
-
[[Category:Technical]]
+
==IDENT_CHALLENGE==
 +
 
 +
If enabled, and a user does not have ident enabled or the server is unable to retrieve a successful response for whatever reason, the user will be challenged with a cookie prompt, similar to the following:
 +
 
 +
<code>-irc.darenet.org- *** Ident broken or disabled, to continue to connect you must type /QUOTE PASS 1623745</code>

Revision as of 10:29, 8 January 2009

This document is intended to document features supported by ircd-darenet. NOTE: THE NAMES OF THESE FEATURES ARE CASE SENSITIVE! Values are not case sensitive unless otherwise noted in the documetation for that specific feature. And, although logging is also configuried through F-lines, it is documented in doc/readme.log.

In This Guide:

DOMAINNAME

  • Type: string
  • Default: ircd.darenet

This option allows you to specify what you consider to be "local." It is only used for statisyical purposes. When the IRC command /STATS w is issued, the server will respond with statistics of how many clients have been connecting to the server in the last minute, hour and day. It will give these statistics for all connections (including the servers), all clients (from anywhere) and also for clients whose hostname ends on the domain you specify here.

So if you are an ISP and you want to know what the client load from your own domain is, specify that domain here. If you are unsure what to do, then it isn't really important what you give here, just don't give an empty string. A good guess is the last two parts of your own hostname (i.e., if your hostname is foo.bar.nowhere.org, specify "nowhere.org"). Note that the string you give should NOT start with a "." and you should not use quotes.

RELIABLE_CLOCK

  • Type: boolean
  • Default: FALSE

You should really ONLY specify "TRUE" here when your system clock is stable and accurate at all times (within a few seconds). If you are running ntpdate on a regular basis, or an equivalent like xntpd, to keep your system clock synchronized over the network, then you might have an accurate clock. However, this is not guaranteed; for example, it is known that xntpd gives unstable results on Linux in some cases.

Note that an unstable clock is worse then an clock that has a constant offset, because the servers attempt to correct for a constant offset, but do not correct jumps of your system clock! In general you SHOULD be running ntpdate or equivalent AND make sure it works when you run a production server on DareNET. Otherwise leave your clock alone and specify "FALSE" here. If unsure specify "FALSE"!

BUFFERPOOL

  • Type: integer
  • Default: 27000000

This specifies the maximum amount of RAM that your server will allocate for buffering sendQs. Small leafs can use a value as little as 1000000, while large HUBs need to specify a value as high as 20000000. If you run out of memory, clients and/or servers are dropped with the error "Buffer allocation error"; then you will have to increase this number (and install more RAM if appropriate).

If you want a more educated guess for this value then realize that any valueis good if you _really_ would rather drop servers and clients than allocate more memory; this will be the case when there is the danger you may run out of memory for other allocations. Even if you run the daemon on a dedicated machine, specifying all of the RAM you have is a bad thing, because running out of memory is a lot worse than dropping clients in a controlled way; if possible you should have memory left for all the internal structures (channels, clients, ban lists, receive buffers) at all times.

On average, clients seem to use 150 bytes of sendQ, but at peak moments this can easily increase to 2032 bytes per client (sendQs are allocated in chunks of 2032 bytes). The maximum possible amount that can be allocated for sendQs is the number of connected clients times whatever you specified as the maximum sendQ in your Y: lines in the ircd.conf file. That value will likely be larger then the amount of RAM you have. The educated guess I talked about earlier would be "number of clients" times * 2048 bytes + "size of net.burst" * n, where "n" is 1 for leafs and up to 5 for HUBs. The "size of net.burst" is about 125 bytes per online client (on the whole network). For large HUBs with 4000 clients on a network with 30,000 users, this results in 27 Mb. Leafs could use 12 Mb. Of course you can use less when you have less than 4000 local clients. This value is in bytes.

HAS_FERGUSON_FLUSHER

  • Type: boolean
  • Default: FALSE

If you have a server with a lot of resources available, this option will cause the server to attempt to flush its internal buffers before dropping clients during a net break. Don't define this if you don't know for certain; if you're not careful this can end up rebooting FreeBSD boxes. For more information, refer to freebsd.txt, also in this directory.

CLIENT_FLOOD

  • Type: integer
  • Default: 1024

Currently, everything that a client sends to a server is read by the server and stored in a buffer (the clients receive queue). The server will process messages from this queue one by one (running over all clients each time). When a client sends new messages faster they get processed, and the size of its receive buffer reaches this value, the client is dropped with the error "Excess flood." A reasonable value is 1024 bytes. The maximum size is 8000 bytes.

SERVER_PORT

  • Type: integer
  • Default: 7325

When an IRC operator attempts a connect to another server, he or she may not know which port the connect should go to. In this server version, that operator may use the special port 0, in which case the server will take the port from the C-line. If no port is specified in the C-line, however, the port specified by this option will be used instead.

NODEFAULTMOTD

  • Type: boolean
  • Default: TRUE

Every time a client connects to your server, the full Message of the Day (as specified by the T-lines or by the file specified by the MPATH option) is sent to the client. The server sends the Message of the Day even though many clients permit the user to ignore it. Many users never read the message of the day anyway, making it a huge waste of bandwidth. If you specify "TRUE" here, then the server won't send the MOTD to the client by default; instead, it will only tell the client when the MOTD was last changed, and give instructions on how to obtain it by typing /MOTD.

MOTD_BANNER

  • Type: string
  • Default: NULL

If you enable NODEFAULTMOTD, this specifies a one-line banner to be sent to the client in addition to the instructions mentioned above.

REMOTE_MOTD

  • Type: boolean
  • Default: FALSE

Controls the use of remote message of the day's.

PROVIDER

  • Type: string
  • Default: NULL

This string is added to the 001 numeric prefixed with "via" before the nick. It's used for providing promotional space to providers.

GEO_LOCATION

  • Type: string
  • Default: NULL

This string as added to the 003 numeric. It's used for providing the location of the server, eg "Staunton, MI, United States."

KILL_IPMISMATCH

  • Type: boolean
  • Default: FALSE

When a client connects to your server, the IP address of the client is reverse-resolved to obtain a hostname. Then that hostname is resolved to an IP address and compared with the IP address of the client. If they don't match, the client will appear with the IP address instead of the hostname, unless KILL_IPMISMATCH is "TRUE," in which case the client is simply disconnected.

IDLE_FROM_MSG

  • Type: boolean
  • Default: TRUE

The IRC command WHOIS gives an idle time for clients. If you want this idle time to be set to zero only when the client sends a PRIVMSG, then you should specify "TRUE" here. If you specify "FALSE," then the idle time will be nullified on all messages except the server PING/PONG.

HUB

  • Type: boolean
  • Default: FALSE

All servers of an IRC "network" are connected in a "tree" (no loops). Servers that are only connected to one other server (called the "uplink") are called "leafs"; servers that are connected to more than one other server are called HUBs. If you specify "FALSE" here then your server will prevent itself from accidentally connecting to two servers at once, thus keeping servers in poor network locations from routing traffic. Note that on DareNET, all newly linked servers are linked as leafs during their test phase, and should specify "FALSE" here.

WALLOPS_OPER_ONLY

  • Type: boolean
  • Default: FALSE

Setting this option removes the ability for clients that are not IRC operators to see wallops messages.

NODNS

  • Type: boolean
  • Default: FALSE

If you are playing with the server off-line, and no DNS is available, then long delays occur before the server starts up because it tries to resolve the name given on the M-line (which usually isn't given in /etc/hosts) and for each connecting client. If you specify "TRUE" here, then a call to gethostbyname() will be done only for the real hostname, and the server will not try to resolve clients that connect to "localhost."

Note that other calls to gethostbyname() are still done if you use VIRTUAL_HOST; also note that the server still tries to resolve clients that connect to the real IP address of the server.

RANDOM_SEED

  • Type: string
  • Default: none

When a client connects, the server sends the client a "cookie," consisting of a random number. The client must return the cookie to the server verbatim. This is done to prevent IP spoofing. The cookie is generated by a pseudorandom number generator included in ircd. This generator must be seeded with a phrase that is kept secret, to ensure that the numbers it generates are not easily guessed.

The value given to RANDOM_SEED may be a string of any length.It should not contain any characters that are considered special by the configuration file system, such as ":" or "#"; the string should be at least 8 characters long, but longer strings are better. The RANDOM_SEED may not be retrieved online.

DEFAULT_LIST_PARAM

  • Type: string
  • Default: none

The LIST command takes a single optional argument. If given, that argument is either a channel or a filter. If that argument is not given, then by default, /LIST will list all channels on the network. Needless to say, this can generate a large amount of data on large networks with many channels, as well as chewing up a lot of CPU time. Server administrators can therefore set a default filter to be applied to the channel list if the optional argument to LIST is omitted.

NICKNAMEHISTORYLENGTH

  • Type: integer
  • Default: 800

This value specifies th