To create new wiki account, please join us on #znc at Libera.Chat and ask admins to create a wiki account for you. You can say thanks to spambots for this inconvenience.

Configuration: Difference between revisions

From ZNC
Jump to navigation Jump to search
>Jpnurmi
KindOne (talk | contribs)
m →‎Pass: Add Argon2 example.
 
(30 intermediate revisions by 8 users not shown)
Line 56: Line 56:
== Config file settings ==
== Config file settings ==


ZNC 1.6 configuration file consists of the following settings.
ZNC 1.6 configuration file consists of the following settings. All values are examples.


=== Global ===
=== Global ===


{| class="wikitable"
{| class="wikitable" style="width:100%"
|-
|-
! Key
| rowspan="2" style="width:20%" | '''AnonIPLimit'''
! Type
| The limit of anonymous unidentified connections per IP.
! Description
|-
|-
| '''AnonIPLimit'''
| <tt>AnonIPLimit = 10</tt>
| UInt
| Limits the number of unidentified connections per IP.
|-
|-
| '''BindHost'''
| rowspan="2" | '''AuthOnlyViaModule'''<br/><sub>(since 1.7)</sub>
| List
| Allow user authentication by external modules only.
| This is a list of allowed bindhosts. It is used by the [[webadmin]] module for users to select one. (Set different bindhosts in "Settings" on your Webadmin-Interface first - one per line - to make them appear in users configs afterwards)
|-
|-
| '''ConnectDelay'''
| <tt>AuthOnlyViaModule = false</tt>
| UInt
| The time every connection will be delayed, in seconds. Some servers refuse your connection if you reconnect too fast. This affects the connection between ZNC and the IRC server; not the connection between your IRC client and ZNC.
|-
|-
| '''LoadModule'''
| rowspan="2" | '''BindHost'''
| List
| The list of allowed bindhosts. Users can select one of these values.
| ...
|-
|-
| '''MaxBufferSize'''
| <tt>BindHost = ...<br/>BindHost = ...</tt>
| UInt
| Sets the global Max Buffer Size a user can have.
|-
|-
| '''Motd'''
| rowspan="2" | '''ConnectDelay'''
| List
| The number of seconds every IRC connection is delayed. IRC servers may refuse a connection when reconnecting too fast. NOTE: Affects connections between ZNC and IRC servers; not connections between IRC clients and ZNC.
| The "message of the day" which is sent to clients on connect via notice from *status. Can be specified multiple times.
|-
|-
| '''PidFile'''
| <tt>ConnectDelay = 5</tt>
| String
| Make ZNC write a pid file. ZNC does not need this itself. See [[FAQ#How_can_I_restart_ZNC_automatically_.28in_case_of_a_machine_reboot.2C_crash.2C_etc..29.3F|the FAQ]] on info how to crontab ZNC.
|-
|-
| '''ProtectedWebSessions'''
| rowspan="2" | '''HideVersion'''<br/><sub>(since 1.6)</sub>
| Bool
| Whether the version number is hidden from the web interface and CTCP VERSION replies.
| ...
|-
|-
| '''ServerThrottle'''
| <tt>HideVersion = true</tt>
| UInt
| The time between two connect attempts to the same hostname.
|-
|-
| '''Skin'''
| rowspan="2" | '''LoadModule'''
| String
| The list of global [[Modules|modules]] loaded on ZNC startup.
| ...
|-
|-
| '''SSLCertFile'''
| <tt>LoadModule = webadmin<br/>LoadModule = modperl<br/>LoadModule = modpython</tt>
| String
| It's the TLS/SSL certificate file from which ZNC reads its server certificate.
|-
|-
| '''SSLCiphers'''
| rowspan="2" | '''MaxBufferSize'''
| String
| The maximum playback buffer size. Only admin users can exceed the limit.
| Allowed SSL ciphers. For example <code>SSLCiphers = ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+3DES:DH+3DES:RSA+AESGCM:RSA+AES:RSA+3DES:!aNULL:!MD5:!DS</code>
|-
|-
| '''StatusPrefix'''
| <tt>MaxBufferSize = 500</tt>
| String
| The prefix for the status and module queries. This setting may be overwritten by users.
|-
|-
| '''TrustedProxy'''
| rowspan="2" | '''Motd'''
| List
| The list of "message of the day" lines that are sent to clients on connect via notice from *status.
| ...
|-
|-
| '''Version'''
| <tt>Motd = ...<br/>Motd = ...</tt>
| String
|-
| The ZNC version that wrote this file.
| rowspan="2" | '''PidFile'''
| An optional PID file location. See the [[FAQ#How_can_I_restart_ZNC_automatically_.28in_case_of_a_machine_reboot.2C_crash.2C_etc..29.3F|FAQ]] for how to crontab ZNC.
|-
| <tt>PidFile = /home/znc/.znc/znc.pid</tt>
|-
| rowspan="2" | '''ProtectWebSessions'''
| Whether IP changing during each web session is disallowed.
|-
| <tt> ProtectWebSessions = true</tt>
|-
| rowspan="2" | '''ServerThrottle'''
| The number of seconds between connect attempts to the same hostname.
|-
| <tt>ServerThrottle = 30</tt>
|-
| rowspan="2" | '''Skin'''
| The default web interface skin. Users can override the value.
|-
| <tt>Skin = _default_</tt>
|-
| rowspan="2" | '''SSLCertFile'''
| The file with SSL/TLS certificate, used for ZNC's listening port. Defaults to ~/.znc/znc.pem
|-
| <tt>SSLCertFile = /home/znc/.znc/znc.pem</tt>
|-
| rowspan="2" | '''SSLCiphers'''<br/><sub>(since 1.6)</sub>
| The allowed [https://www.openssl.org/docs/apps/ciphers.html SSL ciphers]. Default value is from [https://wiki.mozilla.org/Security/Server_Side_TLS#Intermediate_compatibility_.28default.29 Mozilla's recomendations]
|-
| <tt>SSLCiphers = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305</tt>
|-
| rowspan="2" | '''SSLDHParamFile'''<br/><sub>(since 1.7)</sub>
| The file with Diffie-Hellman parameters of SSL/TLS, used for ZNC's listening port. Defaults to ~/.znc/znc.pem. If the file doesn't contain DH parameters, ciphers which use DH can't be used.
|-
| <tt>SSLDHParamFile = /home/znc/.znc/znc.pem</tt>
|-
| rowspan="2" | '''SSLKeyFile'''<br/><sub>(since 1.7)</sub>
| The file with private key of SSL/TLS certificate, used for ZNC's listening port. Defaults to ~/.znc/znc.pem
|-
| <tt>SSLKeyFile = /home/znc/.znc/znc.pem</tt>
|-
| rowspan="2" | '''SSLProtocols'''<br/><sub>(since 1.6)</sub>
| The accepted SSL protocols. Available protocols are All, SSLv2, SSLv3, TLSv1, TLSv1.1 and TLSv1.2. A non-prefixed value overrides any existing values, whereas a '-' or '+' prefixed value disables or enables an additional protocol. It is recommended to keep the ZNC defaults that may change in future versions, and only disable (or enable) additional protocols if necessary. NOTE: ZNC 1.6 disables SSLv2 and SSLv3 by default.
|-
| <tt>SSLProtocols = +SSLv2 -SSLv3 -TLSv1 +TLSv1.1 +TLSv1.2</tt>
|-
| rowspan="2" | '''StatusPrefix'''
| The default prefix for status and module queries. Users can override the value.
|-
| <tt>StatusPrefix = *</tt>
|-
| rowspan="2" | '''TrustedProxy'''<br/><sub>(since 1.6)</sub>
| The list of trusted proxies.
|-
| <tt>TrustedProxy = ...<br/>TrustedProxy = ...</tt>
|-
| rowspan="2" | '''Version'''
| The version of ZNC that was used to write the config file.
|-
| <tt>Version = 1.6.0</tt>
|}
|}


=== Listener ===
=== Listener ===


Definition of a port that znc should listen on.
Definition of a port that ZNC listens on. There can be multiple ports, and they can allow different protocols.


{| class="wikitable"
{| class="wikitable" style="width:100%"
|-
| rowspan="2" style="width:20%" | '''AllowIRC'''
| Whether the port allows IRC connections.
|-
| <tt>AllowIRC  = true</tt>
|-
|-
! Key
| rowspan="2" | '''AllowWeb'''
! Type
| Whether the port allows web connections.
! Description
|-
|-
| '''AllowIRC'''
| <tt>AllowWeb  = true</tt>
| Bool
| If IRC connections are allowed on this listener.
|-
|-
| '''AllowWeb'''
| rowspan="2" | '''Host'''
| Bool
| An optional host or IP on which ZNC listens.
| If web connections are allowed on this listener.
|-
|-
| '''Host'''
| <tt>Host = ...</tt>
| String
| The host or IP on which ZNC listens.
|-
|-
| '''IPv4'''
| rowspan="2" | '''IPv4'''
| Bool
| Whether the port listens using IPv4.
| If this port is listening using IPv4.
|-
|-
| '''IPv6'''
| <tt>IPv4 = true</tt>
| Bool
| If this port is listening using IPv6.
|-
|-
| '''Port'''
| rowspan="2" | '''IPv6'''
| UInt
| Whether the port listens using IPv6.
| The port number used.
|-
|-
| '''SSL'''
| <tt>IPv6 = true</tt>
| Bool
| If this port is listening using SSL.
|-
|-
| '''URIPrefix'''
| rowspan="2" | '''Port'''
| String
| The port number. WARNING: Some web browsers reject port 6667.
| Prefix that ZNC should make the web interface available under. This can be used to make ZNC available behind a reverse proxy.
|-
| <tt>Port = 12345</tt>
|-
| rowspan="2" | '''SSL'''
| Whether the port is listening using SSL.
|-
| <tt>SSL = true</tt>
|-
| rowspan="2" | '''URIPrefix'''<br/><sub>(since 1.6)</sub>
| An optional URI prefix for the ZNC web interface. Can be used to make ZNC available behind a reverse proxy.
|-
| <tt>URIPrefix = /znc/</tt>
|}
|}


=== User ===
=== User ===


The user definition, you can have more than one. Each user may only connect to one network, so you need a separate user for each network. This is intended behavior! (See the [[FAQ]] about multiple networks)
Definition of a user. There can be multiple users and each can have multiple networks.


{| class="wikitable"
{| class="wikitable" style="width:100%"
|-
| rowspan="2" style="width:20%" | '''Admin'''
| Whether the user has admin rights.
|-
| <tt>Admin = true</tt>
|-
| rowspan="2" | '''Allow'''
| The list of allowed IPs for the user. Wildcards (*) are supported.
|-
| <tt>Allow = *</tt>
|-
| rowspan="2" | '''AltNick'''
| The default alternate nick used if the primary nick is reserved. Networks can override the value.
|-
| <tt>AltNick = somebody_</tt>
|-
| rowspan="2" | '''AppendTimestamp'''
| Whether [[timestamps]] are appended to buffer playback messages. NOTE: Only used for clients that do not support server-time.
|-
| <tt>AppendTimestamp = false</tt>
|-
| rowspan="2" | '''AuthOnlyViaModule'''<br/><sub>(since 1.7)</sub>
| Allow user authentication by external modules only.
|-
| <tt>AuthOnlyViaModule = false</tt>
|-
| rowspan="2" | '''AutoClearChanBuffer'''
| Whether channel buffers are automatically cleared after playback. When disabled, messages are buffered even while clients are attached, and already seen messages may be repeated each time clients connect.
|-
| <tt>AutoClearChanBuffer = true</tt>
|-
| rowspan="2" | '''AutoClearQueryBuffer'''<br/><sub>(since 1.6)</sub>
| Whether [[query buffers]] are automatically cleared after playback. When disabled, messages are buffered even while clients are attached, and already seen messages may be repeated each time clients connect.
|-
| <tt>AutoClearQueryBuffer = true</tt>
|-
| rowspan="2" | '''BindHost'''
| An optional bindhost for the user. Must be one of the values specified in the global list of allowed bindhosts.
|-
| <tt>BindHost = ...</tt>
|-
| rowspan="2" | '''Buffer'''
| The maximum amount of lines stored for each channel or query playback buffer. The buffers are stored in memory, and oldest lines are discarded when the limit is reached. Only admin users can exceed the maximum buffer size specified in the global section.
|-
| <tt>Buffer = 300</tt>
|-
| rowspan="2" | '''ChanBufferSize'''<br/><sub>(since 1.7)</sub>
| The maximum amount of lines stored for each channel playback buffer. The buffers are stored in memory, and oldest lines are discarded when the limit is reached. Only admin users can exceed the maximum buffer size specified in the global section.
|-
| <tt> ChanBufferSize = 300</tt>
|-
| rowspan="2" | '''ChanModes'''
| The default modes ZNC sets when joining an empty channel.
|-
| <tt>ChanModes = +stn</tt>
|-
| rowspan="2" | '''ClientEncoding'''<br/><sub>(since 1.6)</sub>
| The client encoding.
|-
| <tt>ClientEncoding = UTF-8</tt>
|-
| rowspan="2" | '''CTCPReply'''
| An optional list of CTCP request-reply-pairs. Syntax: <tt><request> <reply></tt>.
|-
| <tt>CTCPReply = VERSION unknown v1.0</tt>
|-
| rowspan="2" | '''DCCBindHost'''
| An optional bindhost for DCC connections.
|-
| <tt>DCCBindHost = ...</tt>
|-
| rowspan="2" | '''DenyLoadMod'''
| Whether the user is denied access to load modules.
|-
| <tt>DenyLoadMod = false</tt>
|-
| rowspan="2" | '''DenySetBindHost'''
| Whether the user is denied access to set a bindhost.
|-
| <tt>DenySetBindHost = false</tt>
|-
| rowspan="2" | '''DenySetCTCPReplies'''<br/><sub>(since 1.9)</sub>
| Whether the user is denied access to adding/removing CTCP replies.
|-
| <tt> DenySetCTCPReplies = false</tt>
|-
| rowspan="2" | '''DenySetIdent'''<br/><sub>(since 1.9)</sub>
| Whether the user is denied access to setting a ident.
|-
| <tt> DenySetIdent = false</tt>
|-
| rowspan="2" | '''DenySetNetwork'''<br/><sub>(since 1.9)</sub>
| Whether the user is denied access to adding/removing networks/servers.
|-
| <tt> DenySetNetwork = false</tt>
|-
| rowspan="2" | '''DenySetQuitMsg'''<br/><sub>(since 1.9)</sub>
| Whether the user is denied access to setting a quitmsg.
|-
| <tt> DenySetQuitMsg = false</tt>
|-
| rowspan="2" | '''DenySetRealName'''<br/><sub>(since 1.9)</sub>
| Whether the user is denied access to setting a realname.
|-
| <tt> DenySetRealName = false</tt>
|-
| rowspan="2" | '''Ident'''
| The default ident. Networks can override the value.
|-
| <tt>Ident = znc</tt>
|-
| rowspan="2" | '''JoinTries'''
| The amount of times channels are attempted to join in case of a failure eg. due to channel modes +i/+k/+b.
|-
| <tt>JoinTries = 3</tt>
|-
| rowspan="2" | '''Language'''<br/><sub>(since 1.7)</sub>
| Language of UI translation shown for this user. If not specified, English is used.
|-
| <tt>Language = ru-RU</tt>
|-
| rowspan="2" | '''LoadModule'''
| The list of user [[Modules|modules]] loaded on ZNC startup.
|-
| <tt>LoadModule = controlpanel<br/>LoadModule = chansaver</tt>
|-
|-
! Key
| rowspan="2" | '''MaxJoins'''<br/><sub>(since 1.2)</sub>
! Type
| The maximum number of channels ZNC joins at once. Lower the value in case getting disconnected for 'Excess flood'.
! Description
|-
|-
| '''Admin'''
| <tt>MaxJoins = 3</tt>
| Bool
| If set to <code>true</code>, the user has admin rights (e.g. in the [[webadmin]] module).
|-
|-
| '''Allow'''
| rowspan="2" | '''MaxNetworks'''
| List
| The maximum number of networks the user is allowed to have.
| By default everyone is able to connect to ZNC as this user. With an ''Allow'' line you can restrict access to the specified IPs. Wildcards (*) are supported and multiple ''Allow'' lines can be set up.
|-
|-
| '''AltNick'''
| <tt>MaxNetworks = 5</tt>
| String
| The alternate nick ZNC will use if your main nick is in use.
|-
|-
| '''AppendTimestamp'''
| rowspan="2" | '''MaxQueryBuffers'''<br/><sub>(since 1.6)</sub>
| Bool
| The maximum number of query buffers that are stored. <code>0</code> is unlimited.
| Whether to append the [[timestamps]] to the message or not
|-
|-
| '''AutoClearChanBuffer'''
| <tt>MaxQueryBuffers = 50</tt>
| Bool
| If set to <code>false</code>, it will buffer channels even while you are attached, and play the whole buffer back to you each time you connect. If set to <code>true</code>, it won't buffer channels while you are attached, and the buffer will be reset upon each playback.
|-
|-
| '''AutoClearQueryBuffer'''
| rowspan="2" | '''MultiClients'''
| Bool
| Whether multiple clients are allowed to connect simultaneously.
| If set to <code>false</code>, it will buffer queries even while you are attached, and play the whole buffer back to you each time you connect. If set to <code>true</code>, it won't buffer queries while you are attached, and the buffer will be reset upon each playback.
|-
|-
| '''BindHost'''
| <tt>MultiClients = true</tt>
| String
| ...
|-
|-
| '''Buffer'''
| rowspan="2" | '''Nick'''
| UInt
| The default primary nick. Networks can override the value.
| This is the amount of lines that the playback buffer will store before dropping off the oldest line. The buffers are stored in the memory by default.
|-
|-
| '''ChanModes'''
| <tt>Nick = somebody</tt>
| String
| Default modes ZNC will set when you join an empty channel.
|-
|-
| '''ClientEncoding'''
| rowspan="2" | '''NoTrafficTimeout'''<br/><sub>(since 1.7)</sub>
| String
| How much time ZNC waits (in seconds) until it receives something from network or declares the connection timeout. This happens after attempts to ping the peer.
| ...
|-
|-
| '''CTCPReply'''
| <tt>NoTrafficTimeout = 180</tt>
| List
| A request-reply-pair for CTCP-requests. Format: <code><request> <reply></code>, e.g. <code>VERSION unknown v1.0</code>
|-
|-
| '''DCCBindHost'''
| rowspan="2" | '''Pass'''<br/>
| String
| The password for the user account. It can be in plaintext or hashed with md5 or sha256.<br/>
| ...
If using hash, prefix the hash with <hash>#.<br/>
Optionally a salt can be specified just after the salt, in the form: <hash name>#<salted hash>#<salt>#<br/>
An md5 hast type can be specified with a dash after the hash
|-
|-
| '''DenyLoadMod'''
| <tt>Pass = hunter2</tt><br/>
| Bool
<tt>Pass = 2ab96390c7dbe3439de74d0c9b0b1767 -</tt><br/>
| If set to <code>true</code>, the user isn't able to load modules.
<tt>Pass = plain#hunter2</tt><br/>
<tt>Pass = md5#2ab96390c7dbe3439de74d0c9b0b1767</tt><br/>
<tt>Pass = sha256#f52fbd32b2b3b86ff88ef6c490628285f482af15ddcb29541f94bcf526a3f6c7</tt><br/>
<tt>Pass = sha256#7e0b4f79376c001055fc47c44a95487e8fe99173c6360176f77e86ad44db5bb1#salt#</tt>
|-
|-
| '''DenySetBindHost'''
| rowspan="2" | '''PrependTimestamp'''
| Bool
| Whether [[timestamps]] are prepended to buffer playback messages. NOTE: Only used for clients that do not support server-time.
| If set to <code>true</code>, the user isn't able to change his vhost.
|-
|-
| '''Ident'''
| <tt>PrependTimestamp = true</tt>
| String
| ...
|-
|-
| '''JoinTries'''
| rowspan="2" | '''QueryBufferSize'''<br/><sub>(since 1.7)</sub>
| UInt
| The maximum amount of lines stored for each query playback buffer. The buffers are stored in memory, and oldest lines are discarded when the limit is reached. Only admin users can exceed the maximum buffer size specified in the global section.
| How often should ZNC try to join if the first join failed, e.g. due to channel mode +i/+k or if you're banned.
|-
|-
| '''LoadModule'''
| <tt> QueryBufferSize = 300</tt>
| List
| Load a [[Modules|module]] for this user on startup.
|-
|-
| '''MaxJoins'''
| rowspan="2" | '''QuitMsg'''
| UInt
| The default quit message ZNC uses when disconnecting or shutting down. Networks can override the value.
| How many channels should ZNC join at once. Lower this if you get disconnected for 'Excess flood.
|-
|-
| '''MaxNetworks'''
| <tt>QuitMsg = ZNC - http://znc.in</tt>
| UInt
| Maximum number of networks a user is allowed to have.
|-
|-
| '''MaxQueryBuffers'''
| rowspan="2" | '''RealName'''
| UInt
| The default real name. Networks can override the value.
| Maximum number of query buffers that are stored. <code>0</code> is unlimited.
|-
|-
| '''MultiClients'''
| <tt>Real Name = Got ZNC?</tt>
| Bool
| Set this to <code>true</code>, if you want to be able to connect with multiple clients at once.
|-
|-
| '''Nick'''
| rowspan="2" | '''Skin'''
| String
| The web interface skin.
| Your primary nick.
|-
|-
| '''PrependTimestamp'''
| <tt>Skin = _default_</tt>
| Bool
| Whether to prepend the [[timestamps]] to the message or not
|-
|-
| '''QuitMsg'''
| rowspan="2" | '''StatusPrefix'''
| String
| The prefix for status and module queries.
| The default quit message ZNC will use when you jump servers or call shutdown.
|-
|-
| '''RealName'''
| <tt>StatusPrefix = *</tt>
| String
| ...
|-
|-
| '''Skin'''
| rowspan="2" | '''TimestampFormat'''
| String
| The format of the [[timestamps]] used in buffer playback messages. NOTE: Only used for clients that do not support server-time.
| ...
|-
|-
| '''StatusPrefix'''
| <tt>TimestampFormat = [%H:%M:%S]</tt>
| String
| The prefix for the status and module queries.
|-
|-
| '''TimestampFormat'''
| rowspan="2" | '''Timezone'''
| String
| The timezone used for [[timestamps]] in buffer playback messages. NOTE: Only used for clients that do not support server-time.
| The format for the [[timestamps]] used in buffers, for example <code>[%H:%M:%S]</code>
|-
|-
| '''Timezone'''
| <tt>Timezone = Europe/Berlin</tt>
| String
| Set this to your local setting, so you'll get correct times in your [[timestamps]]. Format is Europe/Berlin, and is case sensitive, dropdown box will not work in IE.
|}
|}


=== Network ===
=== Network ===


The user definition, you can have more than one. Each user may only connect to one network, so you need a separate user for each network. This is intended behavior! (See the [[FAQ]] about multiple networks)
Definition of a network. A user can have multiple networks, up to the limit specified by '''MaxNetworks'''.


{| class="wikitable"
{| class="wikitable" style="width:100%"
|-
|-
! Key
| rowspan="2" style="width:20%" | '''AltNick'''
! Type
| An optional network specific alternate nick used if the primary nick is reserved.
! Description
|-
|-
| '''AltNick'''
| <tt>AltNick = somebody_</tt>
| String
| Overrides the '''AltNick''' setting in the User section.
|-
|-
| '''BindHost'''
| rowspan="2" | '''BindHost'''
| String
| An optional bindhost for the network. Must be one of the values specified in the global list of allowed bindhosts.
| Overrides the '''BindHost''' setting in the User section.
|-
|-
| '''Encoding'''
| <tt>BindHost = ...</tt>
| String
| ...
|-
|-
| '''FloodBurst'''
| rowspan="2" | '''Encoding'''<br/><sub>(since 1.6)</sub>
| Double
| An optional network specific encoding.
| How many lines ZNC sends at once.
|-
|-
| '''FloodRate'''
| <tt>Encoding = UTF-8</tt>
| Double
| How many lines per second ZNC sends after the FloodBurst
|-
|-
| '''Ident'''
| rowspan="2" | '''FloodBurst'''
| String
| The maximum amount of lines ZNC sends at once.
| Overrides the '''Ident''' setting in the User section.
|-
|-
| '''IRCConnectEnabled'''
| <tt>FloodBurst = 4</tt>
| Bool
| If set to <code>false</code>, user doesn't connect to IRC servers.
|-
|-
| '''JoinDelay'''
| rowspan="2" | '''FloodRate'''
| UInt
| The seconds between lines ZNC sends after reaching the '''FloodBurst''' limit.
| Defines the delay in seconds, until channels are joined after getting connected.
|-
|-
| '''LoadModule'''
| <tt>FloodRate = 1.00</tt>
| List
| Load a [[Modules|module]] for this network on startup.
|-
|-
| '''Nick'''
| rowspan="2" | '''Ident'''
| String
| An optional network specific ident.
| Overrides the '''Nick''' setting in the User section.
|-
|-
| '''QuitMsg'''
| <tt>Ident = znc</tt>
| String
| Overrides the '''QuitMsg''' setting in the User section.
|-
|-
| '''RealName'''
| rowspan="2" | '''IRCConnectEnabled'''
| String
| Whether the network is enabled ie. connects to IRC.
| Overrides the '''RealName''' setting in the User section.
|-
|-
| '''Server'''
| <tt>IRCConnectEnabled = false</tt>
| List
|-
| Adds a server to the list of servers this user will be able to connect to. If you want ZNC to connect to the IRC server using SSL, put '+' in front of the port number. The IP can be IPv6. If the server requires a password, just add it as the third argument. Format: <code>Server = <IP-Address/Host> [+]<Port> [<Password>]</code>
| rowspan="2" | '''JoinDelay'''<br/><sub>(since 1.6)</sub>
| The delay in seconds, until channels are joined after getting connected.
|-
| <tt>JoinDelay = 0</tt>
|-
| rowspan="2" | '''LoadModule'''
| The list of network [[Modules|modules]] loaded on ZNC startup.
|-
| <tt>LoadModule = simple_away<br/>LoadModule = route_replies</tt>
|-
| rowspan="2" | '''Nick'''
| An optional network specific primary nick.
|-
| <tt>Nick = somebody</tt>
|-
| rowspan="2" | '''QuitMsg'''<br/><sub>(since 1.6)</sub>
| An optional network specific quit message  ZNC uses when disconnecting or shutting down.
|-
| <tt>QuitMsg = ZNC - http://znc.in</tt>
|-
| rowspan="2" | '''RealName'''
| An optional network specific real name.
|-
| <tt>RealName = Got ZNC?</tt>
|-
| rowspan="2" | '''Server'''
| The list of IRC servers. Prefix the port number with a '+' to enable SSL. Syntax: <tt><host> [[+]port] [password]</tt>.
|-
| <tt>Server = irc.libera.chat +6697</tt>
|-
| rowspan="2" | '''TrustAllCerts'''<br/><sub>(since 1.7)</sub>
| Disable certificate validation (takes precedence over TrustPKI). INSECURE!
|-
| <tt>TrustAllCerts = false</tt>
|-
| rowspan="2" | '''TrustPKI'''<br/><sub>(since 1.7)</sub>
| Setting this to false will trust only certificates you added fingerprints for.
|-
| <tt>TrustPKI = true</tt>
|-
| rowspan="2" | '''TrustedServerFingerprint'''<br/><sub>(since 1.6)</sub>
| The list of trusted server fingerprints.
|-
| <tt>TrustedServerFingerprint = fi:ng:er</tt>
|}
|}


=== Chan ===
=== Chan ===


Channels you want ZNC to join when connecting.
Definition of a channel that ZNC joins when it connects to IRC. A network can have multiple channels.


{| class="wikitable"
{| class="wikitable" style="width:100%"
|-
| rowspan="2" style="width:20%" | '''AutoClearChanBuffer'''
| Whether the channel specific buffer is automatically cleared after playback.
|-
|-
! Key
| <tt>AutoClearChanBuffer = false</tt>
! Type
! Description
|-
|-
| '''AutoClearChanBuffer'''
| rowspan="2" | '''Buffer'''
| Bool
| The maximum amount of lines stored for the channel specific playback buffer.
| Use this to override the '''AutoClearChanBuffer''' setting set in the User section.
|-
|-
| '''Buffer'''
| <tt>Buffer = 100</tt>
| UInt
| Use this to override the '''Buffer''' setting set in the User section.
|-
|-
| '''Detached'''
| rowspan="2" | '''Detached'''
| Bool
| Whether the channel is [[Detaching|detached]]. Detached channels are not visible to clients.
| If <code>true</code>, ZNC will join this channel as [[Detaching|detached]] so that the IRC client will not be bothered by it.
|-
|-
| '''Disabled'''
| <tt>Detached = true</tt>
| Bool
| If <code>true</code>, ZNC will not join this channel at all.
|-
|-
| '''Key'''
| rowspan="2" | '''Disabled'''<br/><sub>(since 1.6)</sub>
| String
| Whether the channel is disabled. ZNC does not join disabled channels.
| Key for the channel.
|-
|-
| '''Modes'''
| <tt>Disabled = true</tt>
| String
|-
| Use this to override the '''ChanModes''' setting set in the User section.
| rowspan="2" | '''Key'''
| An optional channel key.
|-
| <tt>Key = secret</tt>
|-
| rowspan="2" | '''Modes'''
| An optional set of default channel modes ZNC sets when joining an empty channel.
|-
| <tt>Modes = +stn</tt>
|}
|}


=== Pass ===
=== Pass ===


Used by the client to connect to ZNC. A hash may be generated using <code>znc --makepass</code>.
Definition of a password, used by clients to connect to ZNC. Generated using <code>znc --makepass</code>.


{| class="wikitable"
ZNC 1.9.0 added support for libargon2. If your ZNC was compiled with argon2 ( <code>/msg *status version</code> or <code>znc -v</code> ) your ZNC will use argon2. All existing user passwords will be transparently upgraded upon login.
 
SHA-256:
 
{| class="wikitable alternating" style="width:100%"
|-
| rowspan="2" style="width:20%" | '''Hash'''
| The hash of a salted password.
|-
| <tt>Hash = 44ccdd8655fb2c9bf8e6026fc51dfeabfd3e361f696c9373c00a496a4dcaed6f</tt>
|-
| rowspan="2" | '''Method'''
| The password hashing method.
|-
| <tt>Method = sha256</tt>
|-
| rowspan="2" | '''Salt'''
| A random set of 20 characters for salting the password.
|-
|-
! Key
| <tt>Salt = ,e9a+t9WwSCjR_5:XAQu</tt>
! Type
|}
! Description
 
 
Argon2:
 
{| class="wikitable alternating" style="width:100%"
|-
|-
| '''Hash'''
| rowspan="2" style="width:20%" | '''Hash'''
| String
| The hash of a salted password.
| ...
|-
|-
| '''Method'''
| <tt>Hash = $argon2id$v=19$m=6144,t=6,p=1$ZXhhbXBsZTEyMzQ1$HOZjBzWTZBs+407psfw5VQ</tt>
| String
| ...
|-
|-
| '''Salt'''
| rowspan="2" | '''Method'''
| String
| The password hashing method.
| ...
|-
| <tt>Method = Argon2id</tt>
|}
|}


== Config file change history ==
== Config file change history ==
=== Added in 1.9 ===
* '''DenySetCTCPReplies''' (User)
* '''DenySetIdent''' (User)
* '''DenySetNetwork''' (User)
* '''DenySetQuitMsg''' (User)
* '''DenySetRealName''' (User)
=== Added in 1.7 ===
* '''SSLDHParamFile''' and '''SSLKeyFile''' (Global)
* '''ChanBufferSize''', '''Language''',  '''NoTrafficTimeout''' and '''QueryBufferSize''' (User)
* '''TrustAllCerts''' and '''TrustPKI''' (Network)
* '''AuthOnlyViaModule''' (Global, User)


=== Added in 1.6 ===
=== Added in 1.6 ===
* '''SSLCiphers''' and '''TrustedProxy''' (Global)
* '''HideVersion''', '''SSLCiphers''', '''SSLProtocols''' and '''TrustedProxy''' (Global)
* '''URIPrefix''' (Listener)
* '''URIPrefix''' (Listener)
* '''AutoClearQueryBuffer''', '''ClientEncoding''', and '''MaxQueryBuffers''' (User)
* '''AutoClearQueryBuffer''', '''ClientEncoding''' and '''MaxQueryBuffers''' (User)
* '''Encoding''', '''JoinDelay''' and '''QuitMsg''' (Network)
* '''Encoding''', '''JoinDelay''', '''QuitMsg''' and '''TrustedServerFingerprint''' (Network)
* '''Disabled''' (Chan)
* '''Disabled''' (Chan)



Latest revision as of 03:42, 22 September 2024

Creating a config file

To generate a basic configuration file, run znc --makeconf after installation. It is NOT a good idea to create a new config file manually, please use znc --makeconf!

File locations

  • Configuration - ZNC gets its configuration by reading the file ~/.znc/configs/znc.conf.
  • Misc - Other files are also stored in the ~/.znc directory, such as the SSL certificate (znc.pem) and the PidFile (znc.pid).
  • Local Modules - Stored in ~/.znc/modules. ZNC will look in the local module directory first when trying to load a module.
  • Global Modules - Stored in /usr/local/lib/znc by default (where /usr/local is the prefix you chose). This is /usr/lib/znc if you used the Debian package.
  • Binaries - znc, znc-config, and znc-buildmod are all stored in /usr/local/bin (or in /usr/bin) by default. You can change this when you configure by using ./configure --prefix=/whatever/path/you/want.

Editing config

In most cases you should NOT edit znc.conf directly. Use webadmin instead.

If you really need to edit znc.conf by hand, do the following:

  1. pkill -SIGUSR1 znc
    to save current runtime configuration to znc.conf
  2. pkill znc
    to shutdown running ZNC instance
  3. Edit znc.conf
  4. znc
    to start it again with new configuration

Config file structure

The following pseudo content illustrates the config structure with single listener, user, network and channel. Naturally, there can be multiple instances of each.

Key = Value

<Listener name>
    Key = Value
</Listener>

<User name>
    Key = Value

    <Network name>
        Key = Value

        <Chan name>
            Key = Value
        </Chan>
    </Network>
    
    <Pass password>
        Key = Value
    </Pass>
</User>

Config file settings

ZNC 1.6 configuration file consists of the following settings. All values are examples.

Global

AnonIPLimit The limit of anonymous unidentified connections per IP.
AnonIPLimit = 10
AuthOnlyViaModule
(since 1.7)
Allow user authentication by external modules only.
AuthOnlyViaModule = false
BindHost The list of allowed bindhosts. Users can select one of these values.
BindHost = ...
BindHost = ...
ConnectDelay The number of seconds every IRC connection is delayed. IRC servers may refuse a connection when reconnecting too fast. NOTE: Affects connections between ZNC and IRC servers; not connections between IRC clients and ZNC.
ConnectDelay = 5
HideVersion
(since 1.6)
Whether the version number is hidden from the web interface and CTCP VERSION replies.
HideVersion = true
LoadModule The list of global modules loaded on ZNC startup.
LoadModule = webadmin
LoadModule = modperl
LoadModule = modpython
MaxBufferSize The maximum playback buffer size. Only admin users can exceed the limit.
MaxBufferSize = 500
Motd The list of "message of the day" lines that are sent to clients on connect via notice from *status.
Motd = ...
Motd = ...
PidFile An optional PID file location. See the FAQ for how to crontab ZNC.
PidFile = /home/znc/.znc/znc.pid
ProtectWebSessions Whether IP changing during each web session is disallowed.
ProtectWebSessions = true
ServerThrottle The number of seconds between connect attempts to the same hostname.
ServerThrottle = 30
Skin The default web interface skin. Users can override the value.
Skin = _default_
SSLCertFile The file with SSL/TLS certificate, used for ZNC's listening port. Defaults to ~/.znc/znc.pem
SSLCertFile = /home/znc/.znc/znc.pem
SSLCiphers
(since 1.6)
The allowed SSL ciphers. Default value is from Mozilla's recomendations
SSLCiphers = ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:DHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-CHACHA20-POLY1305
SSLDHParamFile
(since 1.7)
The file with Diffie-Hellman parameters of SSL/TLS, used for ZNC's listening port. Defaults to ~/.znc/znc.pem. If the file doesn't contain DH parameters, ciphers which use DH can't be used.
SSLDHParamFile = /home/znc/.znc/znc.pem
SSLKeyFile
(since 1.7)
The file with private key of SSL/TLS certificate, used for ZNC's listening port. Defaults to ~/.znc/znc.pem
SSLKeyFile = /home/znc/.znc/znc.pem
SSLProtocols
(since 1.6)
The accepted SSL protocols. Available protocols are All, SSLv2, SSLv3, TLSv1, TLSv1.1 and TLSv1.2. A non-prefixed value overrides any existing values, whereas a '-' or '+' prefixed value disables or enables an additional protocol. It is recommended to keep the ZNC defaults that may change in future versions, and only disable (or enable) additional protocols if necessary. NOTE: ZNC 1.6 disables SSLv2 and SSLv3 by default.
SSLProtocols = +SSLv2 -SSLv3 -TLSv1 +TLSv1.1 +TLSv1.2
StatusPrefix The default prefix for status and module queries. Users can override the value.
StatusPrefix = *
TrustedProxy
(since 1.6)
The list of trusted proxies.
TrustedProxy = ...
TrustedProxy = ...
Version The version of ZNC that was used to write the config file.
Version = 1.6.0

Listener

Definition of a port that ZNC listens on. There can be multiple ports, and they can allow different protocols.

AllowIRC Whether the port allows IRC connections.
AllowIRC = true
AllowWeb Whether the port allows web connections.
AllowWeb = true
Host An optional host or IP on which ZNC listens.
Host = ...
IPv4 Whether the port listens using IPv4.
IPv4 = true
IPv6 Whether the port listens using IPv6.
IPv6 = true
Port The port number. WARNING: Some web browsers reject port 6667.
Port = 12345
SSL Whether the port is listening using SSL.
SSL = true
URIPrefix
(since 1.6)
An optional URI prefix for the ZNC web interface. Can be used to make ZNC available behind a reverse proxy.
URIPrefix = /znc/

User

Definition of a user. There can be multiple users and each can have multiple networks.

Admin Whether the user has admin rights.
Admin = true
Allow The list of allowed IPs for the user. Wildcards (*) are supported.
Allow = *
AltNick The default alternate nick used if the primary nick is reserved. Networks can override the value.
AltNick = somebody_
AppendTimestamp Whether timestamps are appended to buffer playback messages. NOTE: Only used for clients that do not support server-time.
AppendTimestamp = false
AuthOnlyViaModule
(since 1.7)
Allow user authentication by external modules only.
AuthOnlyViaModule = false
AutoClearChanBuffer Whether channel buffers are automatically cleared after playback. When disabled, messages are buffered even while clients are attached, and already seen messages may be repeated each time clients connect.
AutoClearChanBuffer = true
AutoClearQueryBuffer
(since 1.6)
Whether query buffers are automatically cleared after playback. When disabled, messages are buffered even while clients are attached, and already seen messages may be repeated each time clients connect.
AutoClearQueryBuffer = true
BindHost An optional bindhost for the user. Must be one of the values specified in the global list of allowed bindhosts.
BindHost = ...
Buffer The maximum amount of lines stored for each channel or query playback buffer. The buffers are stored in memory, and oldest lines are discarded when the limit is reached. Only admin users can exceed the maximum buffer size specified in the global section.
Buffer = 300
ChanBufferSize
(since 1.7)
The maximum amount of lines stored for each channel playback buffer. The buffers are stored in memory, and oldest lines are discarded when the limit is reached. Only admin users can exceed the maximum buffer size specified in the global section.
ChanBufferSize = 300
ChanModes The default modes ZNC sets when joining an empty channel.
ChanModes = +stn
ClientEncoding
(since 1.6)
The client encoding.
ClientEncoding = UTF-8
CTCPReply An optional list of CTCP request-reply-pairs. Syntax: <request> <reply>.
CTCPReply = VERSION unknown v1.0
DCCBindHost An optional bindhost for DCC connections.
DCCBindHost = ...
DenyLoadMod Whether the user is denied access to load modules.
DenyLoadMod = false
DenySetBindHost Whether the user is denied access to set a bindhost.
DenySetBindHost = false
DenySetCTCPReplies
(since 1.9)
Whether the user is denied access to adding/removing CTCP replies.
DenySetCTCPReplies = false
DenySetIdent
(since 1.9)
Whether the user is denied access to setting a ident.
DenySetIdent = false
DenySetNetwork
(since 1.9)
Whether the user is denied access to adding/removing networks/servers.
DenySetNetwork = false
DenySetQuitMsg
(since 1.9)
Whether the user is denied access to setting a quitmsg.
DenySetQuitMsg = false
DenySetRealName
(since 1.9)
Whether the user is denied access to setting a realname.
DenySetRealName = false
Ident The default ident. Networks can override the value.
Ident = znc
JoinTries The amount of times channels are attempted to join in case of a failure eg. due to channel modes +i/+k/+b.
JoinTries = 3
Language
(since 1.7)
Language of UI translation shown for this user. If not specified, English is used.
Language = ru-RU
LoadModule The list of user modules loaded on ZNC startup.
LoadModule = controlpanel
LoadModule = chansaver
MaxJoins
(since 1.2)
The maximum number of channels ZNC joins at once. Lower the value in case getting disconnected for 'Excess flood'.
MaxJoins = 3
MaxNetworks The maximum number of networks the user is allowed to have.
MaxNetworks = 5
MaxQueryBuffers
(since 1.6)
The maximum number of query buffers that are stored. 0 is unlimited.
MaxQueryBuffers = 50
MultiClients Whether multiple clients are allowed to connect simultaneously.
MultiClients = true
Nick The default primary nick. Networks can override the value.
Nick = somebody
NoTrafficTimeout
(since 1.7)
How much time ZNC waits (in seconds) until it receives something from network or declares the connection timeout. This happens after attempts to ping the peer.
NoTrafficTimeout = 180
Pass
The password for the user account. It can be in plaintext or hashed with md5 or sha256.

If using hash, prefix the hash with <hash>#.
Optionally a salt can be specified just after the salt, in the form: <hash name>#<salted hash>#<salt>#
An md5 hast type can be specified with a dash after the hash

Pass = hunter2

Pass = 2ab96390c7dbe3439de74d0c9b0b1767 -
Pass = plain#hunter2
Pass = md5#2ab96390c7dbe3439de74d0c9b0b1767
Pass = sha256#f52fbd32b2b3b86ff88ef6c490628285f482af15ddcb29541f94bcf526a3f6c7
Pass = sha256#7e0b4f79376c001055fc47c44a95487e8fe99173c6360176f77e86ad44db5bb1#salt#

PrependTimestamp Whether timestamps are prepended to buffer playback messages. NOTE: Only used for clients that do not support server-time.
PrependTimestamp = true
QueryBufferSize
(since 1.7)
The maximum amount of lines stored for each query playback buffer. The buffers are stored in memory, and oldest lines are discarded when the limit is reached. Only admin users can exceed the maximum buffer size specified in the global section.
QueryBufferSize = 300
QuitMsg The default quit message ZNC uses when disconnecting or shutting down. Networks can override the value.
QuitMsg = ZNC - http://znc.in
RealName The default real name. Networks can override the value.
Real Name = Got ZNC?
Skin The web interface skin.
Skin = _default_
StatusPrefix The prefix for status and module queries.
StatusPrefix = *
TimestampFormat The format of the timestamps used in buffer playback messages. NOTE: Only used for clients that do not support server-time.
TimestampFormat = [%H:%M:%S]
Timezone The timezone used for timestamps in buffer playback messages. NOTE: Only used for clients that do not support server-time.
Timezone = Europe/Berlin

Network

Definition of a network. A user can have multiple networks, up to the limit specified by MaxNetworks.

AltNick An optional network specific alternate nick used if the primary nick is reserved.
AltNick = somebody_
BindHost An optional bindhost for the network. Must be one of the values specified in the global list of allowed bindhosts.
BindHost = ...
Encoding
(since 1.6)
An optional network specific encoding.
Encoding = UTF-8
FloodBurst The maximum amount of lines ZNC sends at once.
FloodBurst = 4
FloodRate The seconds between lines ZNC sends after reaching the FloodBurst limit.
FloodRate = 1.00
Ident An optional network specific ident.
Ident = znc
IRCConnectEnabled Whether the network is enabled ie. connects to IRC.
IRCConnectEnabled = false
JoinDelay
(since 1.6)
The delay in seconds, until channels are joined after getting connected.
JoinDelay = 0
LoadModule The list of network modules loaded on ZNC startup.
LoadModule = simple_away
LoadModule = route_replies
Nick An optional network specific primary nick.
Nick = somebody
QuitMsg
(since 1.6)
An optional network specific quit message ZNC uses when disconnecting or shutting down.
QuitMsg = ZNC - http://znc.in
RealName An optional network specific real name.
RealName = Got ZNC?
Server The list of IRC servers. Prefix the port number with a '+' to enable SSL. Syntax: <host> [[+]port] [password].
Server = irc.libera.chat +6697
TrustAllCerts
(since 1.7)
Disable certificate validation (takes precedence over TrustPKI). INSECURE!
TrustAllCerts = false
TrustPKI
(since 1.7)
Setting this to false will trust only certificates you added fingerprints for.
TrustPKI = true
TrustedServerFingerprint
(since 1.6)
The list of trusted server fingerprints.
TrustedServerFingerprint = fi:ng:er

Chan

Definition of a channel that ZNC joins when it connects to IRC. A network can have multiple channels.

AutoClearChanBuffer Whether the channel specific buffer is automatically cleared after playback.
AutoClearChanBuffer = false
Buffer The maximum amount of lines stored for the channel specific playback buffer.
Buffer = 100
Detached Whether the channel is detached. Detached channels are not visible to clients.
Detached = true
Disabled
(since 1.6)
Whether the channel is disabled. ZNC does not join disabled channels.
Disabled = true
Key An optional channel key.
Key = secret
Modes An optional set of default channel modes ZNC sets when joining an empty channel.
Modes = +stn

Pass

Definition of a password, used by clients to connect to ZNC. Generated using znc --makepass.

ZNC 1.9.0 added support for libargon2. If your ZNC was compiled with argon2 ( /msg *status version or znc -v ) your ZNC will use argon2. All existing user passwords will be transparently upgraded upon login.

SHA-256:

Hash The hash of a salted password.
Hash = 44ccdd8655fb2c9bf8e6026fc51dfeabfd3e361f696c9373c00a496a4dcaed6f
Method The password hashing method.
Method = sha256
Salt A random set of 20 characters for salting the password.
Salt = ,e9a+t9WwSCjR_5:XAQu


Argon2:

Hash The hash of a salted password.
Hash = $argon2id$v=19$m=6144,t=6,p=1$ZXhhbXBsZTEyMzQ1$HOZjBzWTZBs+407psfw5VQ
Method The password hashing method.
Method = Argon2id

Config file change history

Added in 1.9

  • DenySetCTCPReplies (User)
  • DenySetIdent (User)
  • DenySetNetwork (User)
  • DenySetQuitMsg (User)
  • DenySetRealName (User)

Added in 1.7

  • SSLDHParamFile and SSLKeyFile (Global)
  • ChanBufferSize, Language, NoTrafficTimeout and QueryBufferSize (User)
  • TrustAllCerts and TrustPKI (Network)
  • AuthOnlyViaModule (Global, User)

Added in 1.6

  • HideVersion, SSLCiphers, SSLProtocols and TrustedProxy (Global)
  • URIPrefix (Listener)
  • AutoClearQueryBuffer, ClientEncoding and MaxQueryBuffers (User)
  • Encoding, JoinDelay, QuitMsg and TrustedServerFingerprint (Network)
  • Disabled (Chan)

Added in 1.2

  • MaxJoins (User)

Older pre 1.x settings

  • DCCVHost - This is the IP address used for DCC bouncing.
  • BounceDCCs - If set to true, the DCCs will be bounced by ZNC.
  • DCCLookupMethod - If set to default, ZNC will use the IP the clients sends for the DCC connections; if set to client, ZNC will use the IP the client connects from.
  • Listener = [web_only|irc_only] [host or IP] [+]port - Configuration of listening port. Use web_only or irc_only, if you don't want port to be universal. Put host/IP before the port with a space between to bind to a specific IP (notice that in this case the listener can't listen on both ipv4 and ipv6). Then goes the port ZNC will listen on. If the port is prepended with a '+' (without space) then ZNC listens using SSL. You can have several listeners in one ZNC. (Introduced in 0.090, see next chapter for older versions)
  • Listener4 or Listener6 - Exactly the same as Listener, but will use only IPv4 or IPv6.
  • ISpoofFile - ZNC will write the ident of the user trying to connect to this file. Very useful if your shell supports oidentd.
  • ISpoofFormat - The format of the ISpoofFile.

Before 0.096

  • BindHost was named vHost

Before 0.090:

  • Listen was similar to Listener4 from last version, without irc_only/web_only support.
  • Listen6 was similar to Listener or Listener6 (depending on your OS) from last version, without irc_only/web_only support.
  • TODO: When did Listeners become their own substructure?