From a2b8407dd64baa7dbc00ca2a6464f4feccf0e7ba Mon Sep 17 00:00:00 2001 From: coderaiser Date: Wed, 8 May 2013 12:14:37 -0400 Subject: [PATCH] fixed typo in README --- ChangeLog | 2 ++ README.md | 12 ++++++------ shell/addtables.sh | 12 ++++++------ 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0228abfc..784432ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,8 @@ dispatch * Added addtables script' +* Fixed typo in README. + 2012.04.22, v0.2.0 diff --git a/README.md b/README.md index c59a8f6a..f590d9d0 100644 --- a/README.md +++ b/README.md @@ -137,10 +137,10 @@ to start Cloud Commander as non-root. How it could be solved? There is a couple easy and fast ways. One of them is port forwarding by iptables. ```sh -@:/tmp/cloudcmd (dev) $ su iptables -t nat -L # look rules before -@:/tmp/cloudcmd (dev) $ su iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000 -@:/tmp/cloudcmd (dev) $ su iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430 -@:/tmp/cloudcmd (dev) $ su iptables -t nat -L # look reles after +@:/tmp/cloudcmd (dev) $ sudo iptables -t nat -L # look rules before +@:/tmp/cloudcmd (dev) $ sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000 +@:/tmp/cloudcmd (dev) $ sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430 +@:/tmp/cloudcmd (dev) $ sudo iptables -t nat -L # look reles after ``` You should see somethins like this ( **8000** and **4430** should be in config as **port** and **sslPort** ) @@ -152,8 +152,8 @@ If you would want to get things back just clear rules ( **1** and **2** it's rul in your list they could differ). ```sh -@:/tmp/cloudcmd (dev) $ su iptables -t nat -D PREROUTING 1 -@:/tmp/cloudcmd (dev) $ su iptables -t nat -D PREROUTING 2 +@:/tmp/cloudcmd (dev) $ sudo iptables -t nat -D PREROUTING 1 +@:/tmp/cloudcmd (dev) $ sudo iptables -t nat -D PREROUTING 2 ``` To run Cloud Commander as daemon in linux you could set **log** to true in config and diff --git a/shell/addtables.sh b/shell/addtables.sh index f38def48..1d3d78c2 100755 --- a/shell/addtables.sh +++ b/shell/addtables.sh @@ -1,8 +1,8 @@ #!/bin/sh -su iptables -t nat -L # look rules before -su iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000 -su iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430 -su iptables -t nat -L # look reles after +sudo iptables -t nat -L # look rules before +sudo iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000 +sudo iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430 +sudo iptables -t nat -L # look reles after -#su iptables -t nat -D PREROUTING 1 -#su iptables -t nat -D PREROUTING 2 \ No newline at end of file +#sudo iptables -t nat -D PREROUTING 1 +#sudo iptables -t nat -D PREROUTING 2 \ No newline at end of file