Firewall & SELinux
This is just a collection of snippets which might be useful for you. Feel free to skip parts and/or adapt it to your needs.
SELinux
INFO
The following commands only work on Ubuntu, Debian and CentOS. If you use a different distribution, please have a look at their documentation.
sh
sudo chcon -Rv --type=httpd_sys_content_t /opt/zammad/public/
sh
sudo setsebool httpd_can_network_connect on -P
sh
sudo semanage fcontext -a -t httpd_sys_content_t /opt/zammad/public/
sh
sudo restorecon -Rv /opt/zammad/public/
sh
sudo chmod -R a+r /opt/zammad/public/
Firewall
Ensure to open ports 80
and 443
(TCP & UDP) beside of the ports you need. Below you can find a few examples for different distributions. If you are using a different distribution, please have a look at their documentation.
Please note that the examples below only cover the distribution’s default firewall. It may not cover your case.
sh
sudo ufw allow 80
sh
sudo ufw allow 443
sh
sudo ufw reload