From f69a67b8acb472bd6557bb90538f6b885c9ff850 Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 15 Feb 2016 13:04:29 +0200 Subject: [PATCH] iptables rule --- README.md | 4 +++- novnc.py | 5 ++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ddc790e..6d3878b 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,7 @@ Python RESTful API for managing a grid of vm slaves 4. create nginx vhost via the provided template files: - config.ini.dist - nginx_example_vhost.txt -5. o/ +5. make sure this iptables rule is included: +iptables -A tcp_inbound -p TCP --match multiport --dports 6900:8000 -j ACCEPT #vnc range +6. o/ ``` diff --git a/novnc.py b/novnc.py index 1f88b91..4502d5a 100644 --- a/novnc.py +++ b/novnc.py @@ -23,6 +23,5 @@ def spawn(target, options): args = shlex.split(command_line) p = subprocess.Popen(args) print('spawned!') - -:w - + except: + raise