...
Code Block |
---|
iptables -t nat -I PREROUTING -p tcp --destination-port 443 -j REDIRECT --to-ports 8443 |
Also saving iptables will ensure the setting stays after a unix server restart.
Code Block |
---|
iptables save |
To view the rule after:
Code Block |
---|
iptables -L -t nat |
...