mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-19 09:24:51 +00:00
docs(help) "# iptables" -> "iptables"
This commit is contained in:
parent
7874bfcee3
commit
20e1a3d239
1 changed files with 6 additions and 6 deletions
12
HELP.md
12
HELP.md
|
|
@ -198,10 +198,10 @@ There is a couple easy and fast ways. One of them is port forwarding.
|
|||
Just run [shell/addtables.sh](shell/addtables.sh) for default options.
|
||||
|
||||
```sh
|
||||
# iptables -t nat -L # look rules before
|
||||
# iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
|
||||
# iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430
|
||||
# iptables -t nat -L # look rules after
|
||||
iptables -t nat -L # look rules before
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-ports 8000
|
||||
iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-ports 4430
|
||||
iptables -t nat -L # look rules after
|
||||
```
|
||||
|
||||
You should see something like this ( **8000** and **4430** should be in config as **port** and **sslPort** )
|
||||
|
|
@ -214,8 +214,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
|
||||
# iptables -t nat -D PREROUTING 2
|
||||
# iptables -t nat -D PREROUTING 1
|
||||
iptables -t nat -D PREROUTING 2
|
||||
iptables -t nat -D PREROUTING 1
|
||||
```
|
||||
|
||||
###nginx
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue