minor changes

This commit is contained in:
coderaiser 2013-03-12 12:21:07 +02:00
parent 822a655764
commit bca0e41b79

View file

@ -76,31 +76,31 @@ Right mouse click button show context menu with items:
- Upload to (Dropbox, Github, GDrive)
- Download
PORTS
Server ports
---------------
Standard practices say no non-root process gets to talk to
the Internet on a port less than 1024. Anyway I suggest you
to start Cloud Commander as non-root. How it could be soulved?
There is a couple easy and fast ways. One of them is port forwarding by iptables.
```
iptables -t nat -L # look rules before
@:/tmp/cloudcmd (dev) $ iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
@:/tmp/cloudcmd (dev) $ iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430
iptables -t nat -L # look reles after
```
You should see somethins like this (8000 and 4430 should be in config as port and sslPort)
```
target prot opt source destination
REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 8000
REDIRECT tcp -- anywhere anywhere tcp dpt:https redir ports 4430
```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
```
If you would want to get things back just clear rules (1 and 2 it's rules numbers,
You should see somethins like this ( **8000** and **4430** should be in config as **port** and **sslPort** )
target prot opt source destination
REDIRECT tcp -- anywhere anywhere tcp dpt:http redir ports 8000
REDIRECT tcp -- anywhere anywhere tcp dpt:https redir ports 4430
If you would want to get things back just clear rules ( **1** and **2** it's rules numbers,
in your list they could differ).
```
iptables -t nat -D PREROUTING 1
iptables -t nat -D PREROUTING 2
```sh
@:/tmp/cloudcmd (dev) $ su iptables -t nat -D PREROUTING 1
@:/tmp/cloudcmd (dev) $ su iptables -t nat -D PREROUTING 2
```