Skip to content

Instantly share code, notes, and snippets.

@naitwo2
Last active August 30, 2016 07:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save naitwo2/301ad480a29a3c0683e2c90c1cae75f4 to your computer and use it in GitHub Desktop.
Save naitwo2/301ad480a29a3c0683e2c90c1cae75f4 to your computer and use it in GitHub Desktop.
Firewalld_TCP_6514
cat <<EOF> /etc/firewalld/services/syslog_tcp_ssl.xml
<?xml version="1.0" encoding="utf-8"?>
<service>
<short>SYSLOG_TCP_SSL</short>
<description>SYSLOG protocol</description>
<port protocol="tcp" port="6514"/>
</service>
EOF
firewall-cmd --reload > /dev/null
firewall-cmd --permanent --zone=public --add-service=syslog_tcp_ssl > /dev/null
firewall-cmd --reload > /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment