Users can redirect requests from HTTP to the HTTPS Controller port on Linux using Iptables.
- In your computer terminal, replace
eth0
with your actual interface name using the following command:
- If port 8090 and 8181 are not open, run the following command:
Example:
Note: Assuming interface "eth0," HTTP port "8090," and HTTPS port "8181."
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 8090 -j REDIRECT --to-port 8181
sudo iptables -A INPUT -i eth0 -p tcp --dport 8090 -j ACCEPT