Created
February 8, 2015 20:17
-
-
Save pjvds/7491de36bbef30f2b1a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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