1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- <!DOCTYPE html>
- <html lang="en" xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Use IPTables to Redirect ProxMox HTTPS Web UI Traffic</title>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
- <meta charset="UTF-8">
- <meta name="keywords" content="Proxmox VE,IP Tables,Hypervisor,Port Forward,8006,Debian,Linux,HTTPS,SSL,Virtual Machine,VM,Proxmox,How To,Tutorial,i12bretro">
- <meta name="author" content="i12bretro">
- <meta name="description" content="Use IPTables to Redirect ProxMox HTTPS Web UI Traffic">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link rel="icon" type="image/x-icon" href="includes/favicon.ico">
- <script type="text/javascript" src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
- <script type="text/javascript" src="includes/js/steps.js"></script>
- <link href="css/steps.css" rel="stylesheet" type="text/css" />
- </head>
- <body>
- <div id="gridContainer">
- <div class="topMargin"></div>
- <div id="listName" class="topMargin">
- <h1>Use IPTables to Redirect ProxMox HTTPS Web UI Traffic</h1>
- </div>
- <div></div>
- <div id="content">
- <ol>
- <li>Log into ProxMox VE, either at the console or the web UI and launch the web shell</li>
- <li>Run the following commands
- <div class="codeBlock"># add the ip tables rule<br />
- /sbin/iptables -F<br />
- /sbin/iptables -t nat -F<br />
- /sbin/iptables -t nat -A PREROUTING -p tcp --dport 443 -j REDIRECT --to-port 8006<br />
- # install iptables-persistent<br />
- apt install iptables-persistent -y</div>
- </li>
- <li>When prompted, select Yes to save current IPv4 rules > Press Enter</li>
- <li>When prompted, select Yes to save current IPv6 rules > Press Enter</li>
- <li>Open a web browser and navigate to https://DNSorIP to verify the 443 to 8006 redirect is working</li>
- <li>Reboot the ProxMox host</li>
- <li>Once the host has rebooted, test that the web UI is still reachable without specifying the port (:8006)</li>
- </ol>
- </div>
- </div>
- </body>
- </html>
-
|