Skip to content
Aline Manera edited this page Jan 6, 2020 · 3 revisions

Firewall

Wok uses by default the port 8001. To allow incoming connections:

For system using firewalld, do:

    $ sudo firewall-cmd --add-port=8001/tcp --permanent
    $ sudo firewall-cmd --reload

For openSUSE systems, do:

    $ sudo /sbin/SuSEfirewall2 open EXT TCP 8001

For system using iptables, do:

    $ sudo iptables -A INPUT -p tcp --dport 8001 -j ACCEPT

Don't forget to correctly save the rules.

SELinux

Either allow httpd_t context for Wok web server:

$ sudo semanage permissive -a httpd_t

Or change the listen port in /etc/wok/wok.conf to 9000 which is already covered by the correct port context on Fedora and CentOS.

Here is a list of ports in the correct SElinux context on CentOS 7 and Fedora 25.

$ sudo semanage port -l|grep http_port
http_port_t                    tcp      80, 81, 443, 488, 8008, 8009, 8443, 9000

If none of these fit your environment, add a new port into http_port_t context with this command.

$ sudo semanage port -a -t http_port_t -p tcp 9002

Just make sure no other context is using the port first.

Clone this wiki locally