109
rated 0 times
[
109]
[
0]
/ answers: 1 / hits: 276939
/ 3 Years ago, sun, august 15, 2021, 4:26:00
I redirected traffic for port 80 to 8080 on my machine with
sudo iptables -A PREROUTING -t nat -p tcp --dport 80 -j REDIRECT --to-ports 8080
It works fine for all the world except my own machine. I am a developer and I need to redirect port 80 to 8080 for myself.
My IP is 192.168.0.111
My web server runs on port 8080
I wish to open website from http://192.168.0.111/
instead of http://192.168.0.111:8080/
from same machine where server runs.
More From » iptables