20
rated 0 times
[
20]
[
0]
/ answers: 1 / hits: 30246
/ 2 Years ago, wed, may 25, 2022, 12:48:28
I use amazon EC2 instance which works via ubuntu. By default according security restrictions I can't bin my application to port 80, so I just bind it port 8080 and then set routing redirect from port 80 to 8080 via the following command:
iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to 8080
But I found that when I reboot the server this settings no longer active untill I invoke this command again.
So my question is how to enable port's redirect work even if system was rebooted?
More From » 12.04