0435.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <!DOCTYPE html>
  2. <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <title>Use IPTables to Redirect ProxMox HTTPS Web UI Traffic</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <meta charset="UTF-8">
  7. <meta name="keywords" content="Proxmox VE,IP Tables,Hypervisor,Port Forward,8006,Debian,Linux,HTTPS,SSL,Virtual Machine,VM,Proxmox,How To,Tutorial,i12bretro">
  8. <meta name="author" content="i12bretro">
  9. <meta name="description" content="Use IPTables to Redirect ProxMox HTTPS Web UI Traffic">
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
  12. <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
  13. <script type="text/javascript" src="includes/js/steps.js"></script>
  14. <link href="css/steps.css" rel="stylesheet" type="text/css" />
  15. </head>
  16. <body>
  17. <div id="gridContainer">
  18. <div class="topMargin"></div>
  19. <div id="listName" class="topMargin">
  20. <h1>Use IPTables to Redirect ProxMox HTTPS Web UI Traffic</h1>
  21. </div>
  22. <div></div>
  23. <div id="content">
  24. <ol>
  25. <li>Log into ProxMox VE, either at the console or the web UI and launch the web shell</li>
  26. <li>Run the following commands
  27. <div class="codeBlock"># add the ip tables rule<br />
  28. /sbin/iptables -F<br />
  29. /sbin/iptables -t nat -F<br />
  30. /sbin/iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8006<br />
  31. # install iptables-persistent<br />
  32. apt install iptables-persistent -y</div>
  33. </li>
  34. <li>When prompted, select Yes to save current IPv4 rules &gt; Press Enter</li>
  35. <li>When prompted, select Yes to save current IPv6 rules &gt; Press Enter</li>
  36. <li>Open a web browser and navigate to https://DNSorIP to verify the 443 to 8006 redirect is working</li>
  37. <li>Reboot the ProxMox host</li>
  38. <li>Once the host has rebooted, test that the web UI is still reachable without specifying the port (:8006)</li>
  39. </ol>
  40. </div>
  41. </div>
  42. </body>
  43. </html>