ZNC IRC Bouncer

Last modified date

ZNC IRC Bouncer is an application that acts as a middleman between your IRC client and an IRC server. Instead of connecting directly to IRC, your client connects to ZNC, and ZNC stays connected to the IRC network even when you disconnect.

This guide is intended for Debian and Ubuntu-based systems.


System

sudo apt update
sudo apt install -y cmake
sudo apt install -y build-essential libssl-dev libperl-dev pkg-config libicu-dev

    Setup

    wget https://znc.in/releases/znc-1.10.2.tar.gz
    tar -xzvf znc-1.10.2.tar.gz
    cd znc-1.10.2
    mkdir build
    cd build
    cmake .. -DCMAKE_INSTALL_PREFIX="$HOME/.local"
    make
    make install

    Make Configuration

    /home/YOUR_USER/.local/bin/znc --makeconf

    Uncomplicated Firewall:

    sudo ufw allow 5000/tcp comment "ZNC"

    Cronjob:

    Type command:

    crontab -e

    @reboot /usr/bin/znc --foreground
    */5 * * * * /usr/bin/pgrep -x znc >/dev/null || /usr/bin/znc --foreground

    How to connect using mIRC:

    /server -e <ip-address>:+<port> <username>/<network>:<password>

    https://wiki.znc.in/Installation#Debian