Skip to content

Instantly share code, notes, and snippets.

@pjvds
Created February 8, 2015 20:17
Show Gist options
  • Save pjvds/7491de36bbef30f2b1a1 to your computer and use it in GitHub Desktop.
Save pjvds/7491de36bbef30f2b1a1 to your computer and use it in GitHub Desktop.
# adds epel and install znc
yum localinstall -y http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm
yum install -y znc
# configure firewalld
echo '<?xml version="1.0" encoding="utf-8"?> <service> <short>znc</short> <description>znc irc bouncer</description> <port protocol="udp" port="6666"/></service>' > /etc/firewalld/services/znc.xml
restorecon /etc/firewalld/services/znc.xml
chmod 640 /etc/firewalld/services/znc.xml
firewall-cmd --reload
firewall-cmd --permanent --add-service=znc
# run config wizard
sudo -u znc znc --makeconf # this creates /var/lib/znc/.znc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment