mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
7 lines
No EOL
254 B
Bash
Executable file
7 lines
No EOL
254 B
Bash
Executable file
#!/bin/sh
|
|
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 -L # look reles after
|
|
|
|
#sudo iptables -t nat -D PREROUTING 1
|
|
#sudo iptables -t nat -D PREROUTING 2 |