mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
fixed typo in README
This commit is contained in:
parent
cd292305c7
commit
a2b8407dd6
3 changed files with 14 additions and 12 deletions
|
|
@ -15,6 +15,8 @@ dispatch
|
|||
|
||||
* Added addtables script'
|
||||
|
||||
* Fixed typo in README.
|
||||
|
||||
|
||||
2012.04.22, v0.2.0
|
||||
|
||||
|
|
|
|||
12
README.md
12
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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
#sudo iptables -t nat -D PREROUTING 1
|
||||
#sudo iptables -t nat -D PREROUTING 2
|
||||
Loading…
Add table
Add a link
Reference in a new issue