From: Paulo Vital <pvital(a)linux.vnet.ibm.com>
Fixed formattation of Run section to a better understand of firewall and SELinux
commands input.
Signed-off-by: Paulo Vital <pvital(a)linux.vnet.ibm.com>
---
docs/README.md | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
diff --git a/docs/README.md b/docs/README.md
index 1b31ccf..b128510 100644
--- a/docs/README.md
+++ b/docs/README.md
@@ -25,32 +25,34 @@ Run
If you cannot access Wok, take a look at these 2 points:
-1. Firewall
+1. Firewall:
Wok uses by default the ports 8000, 8001 and 64667. To allow incoming connections:
For system using firewalld, do:
- sudo firewall-cmd --add-port=8000/tcp --permanent
- sudo firewall-cmd --add-port=8001/tcp --permanent
- sudo firewall-cmd --add-port=64667/tcp --permanent
- sudo firewall-cmd --reload
+
+ $ sudo firewall-cmd --add-port=8000/tcp --permanent
+ $ sudo firewall-cmd --add-port=8001/tcp --permanent
+ $ sudo firewall-cmd --add-port=64667/tcp --permanent
+ $ sudo firewall-cmd --reload
For openSUSE systems, do:
- sudo /sbin/SuSEfirewall2 open EXT TCP 8000
- sudo /sbin/SuSEfirewall2 open EXT TCP 8001
- sudo /sbin/SuSEfirewall2 open EXT TCP 64667
+
+ $ sudo /sbin/SuSEfirewall2 open EXT TCP 8000
+ $ sudo /sbin/SuSEfirewall2 open EXT TCP 8001
+ $ sudo /sbin/SuSEfirewall2 open EXT TCP 64667
For system using iptables, do:
- sudo iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
- sudo iptables -A INPUT -p tcp --dport 8001 -j ACCEPT
- sudo iptables -A INPUT -p tcp --dport 64667 -j ACCEPT
- Don't forget to correctly save the rules.
+ $ sudo iptables -A INPUT -p tcp --dport 8000 -j ACCEPT
+ $ sudo iptables -A INPUT -p tcp --dport 8001 -j ACCEPT
+ $ sudo iptables -A INPUT -p tcp --dport 64667 -j ACCEPT
+ Don't forget to correctly save the rules.
-2. SELinux
+2. SELinux:
Allow httpd_t context for Wok web server:
- semanage permissive -a httpd_t
+ $ sudo semanage permissive -a httpd_t
Participating
--
2.4.3