Use IPTables to Redirect ProxMox HTTPS Web UI Traffic
#Proxmox #Hypervisor #IPTables
Full steps can be found at https://i12bretro.github.io/tutorials/0435.html
01. Log into ProxMox VE, either at the console or the web UI and launch the web shell
02. Run the following commands
# add the ip tables rule
/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8006
# install iptables-persistent
apt install iptables-persistent -y
03. When prompted, select Yes to save current IPv4 rules ≫ Press Enter
04. When prompted, select Yes to save current IPv6 rules ≫ Press Enter
05. Open a web browser and navigate to https://DNSorIP to verify the 443 to 8006 redirect is working
06. Reboot the ProxMox host
07. Once the host has rebooted, test that the web UI is still reachable without specifying the port (:8006)
### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro