Znc modules

From wikinotes

ZNC modules are third party extensions that can be loaded to customize:

  • all network connections
  • a single network connection
  • a specific user's network connection

NOTE:

After checking extensions, make sure to scroll to the bottom of ZNC and save your changes!

Documentation

ZNC modules https://wiki.znc.in/Modules

SASL

https://wiki.znc.in/Sasl

SASL allows you to authenticate with nickserv (and receive your cloak) before connecting to the irc network.

znc web admin:
  Your Settings:
    Networks: bitlbee (Edit)
      Modules: 
        - [x] sasl

Then from within your irc client (connected to znc)

# plaintext auth
/query *sasl
mechanism external plain
set MyNickservName pa$$w0rd

# certificate auth

You'll need to reconnect to ZNC for the change to take effect.

nickserv

https://wiki.znc.in/Nickserv

The nickserv module lets you auth with nickserv after you login.
SASL is preferred.

perform

The perform module lets you run commands on connect.

Enable the 'perform' module

znc web admin:
  Your Settings:
    Networks: bitlbee (Edit)
      Modules: 
        - [x] perform
# add rule
/msg *perform add PRIVMSG &bitlbee :identify <password>

# confirm rule saved
/msg *perform list


adminlog

Check adminlog from Global Settings .

From your irc client run the following to enable logging to syslog.

/msg *adminlog target syslog

You can now

sudo journalctl -u znc.service

fail2ban

Just check it from global settings. Fail2ban does not need to be installed, it is managed by ZNC itself.