ZNC is an IRC bouncer. An IRC bouncer allows you to remain connected to an IRC network even when you aren’t running a client on your device. You may want to do this as it allows you to keep your status and modes. You can also use playback buffers which allows you to see what has been going on in a channel while you were away. An IRC bouncer like ZNC also allows you to simply connect to your bouncer server, and have all your networks and channels available regardless of what client or device you are using. Overall, an IRC bouncer is a good thing to use, and in this tutorial I am going to explain how to set one up using ZNC on CentOS 6.
- Note: All commands are to be run in a terminal. Commands starting with sudo must be run as root. If you don’t have sudo setup, you can use su -c “command” instead.
The first step is to add the EPEL repository to your CentOS 6 installation.
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
sudo rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
After you have added the EPEL repository, you just simply install ZNC.
sudo yum install znc
When ZNC has finished installing you will now create the configuration file.
You will now be asked to setup ZNC, this is done easily following the onscreen instructions. There are a few options that may be confusing however. I’ll go over those questions that may be confusing.
ZNC will ask which port you want it to listen on. You can use any unused port within the range it tells you.
Next it will ask if you want ZNC to listen using SSL. Enter yes here.
When you are asked if you would like to load the global modules “partyline” and “webadmin” type in yes and press enter.
ZNC will ask about bind host after you setup your IRC network. In most cases you will use the default option here and just press enter. If you need to though, you can specify an IP address or hostname to bind ZNC to here.
Now ZNC will ask which default channel modes you want to use. In most cases, you can just press enter here to accept the defaults. If you have specific modes you must use, enter them here.
You will now be asked to load specific user modules such as “chansaver”, “controlpanel”, and “perform.” Enter yes to enable these modules.
During the network setup steps you will see a list of network modules that can be loaded. Read the descriptions for each module and decide which ones you would like to enable.
The last question ZNC will ask is if you want to launch it now. Enter yes here and press enter.
ZNC should now start, and you can connect to the webadmin interface via a web browser at https://server-ip:ZNC-port
That’s it! You should now be able to administrate your ZNC bouncer server using the webadmin interface, and connect to your ZNC server via your IRC client. If you cannot connect, check your firewall settings and make sure it is allowing connections from the port you chose during setup.