How to change Default Web console Port 8006 to different one

persevere

New Member
Sep 7, 2014
22
0
1
Hi Proxmox Friends,
Can any one please help me how to change the default port 8006 to some other number. No knowledge in proxy servers. Can any one please help me. Is there any way i change the configurations files?
Thanks for the support.






Thanks
Persevere
 
No, there is no configuration option for this. You have to change the sourcecode and also change it again after a package update.

What you can do is setting up a port mapping with iptables, e.g.

Code:
iptables -t nat -I PREROUTING -d <server ip> -p tcp --dport 443 -j DNAT --to-destination <server ip>:8006
 
No, there is no configuration option for this. You have to change the sourcecode and also change it again after a package update.

What you can do is setting up a port mapping with iptables, e.g.

Code:
iptables -t nat -I PREROUTING -d <server ip> -p tcp --dport 443 -j DNAT --to-destination <server ip>:8006



@LnxBil,
Thanks for taking time and answering here. It works but my requirement is pretty different.
We are having two proxmox servers [not clustered] running with following addresses
192.168.0.60:8006
192.168.0.13:8006

If we want to access these server from outside the network using port forwarding at router level we were able to connect to only one machine. In order to access second machine i want to change the port address.
But ip tables comes into the picture after this issue.
So please let me know if you guys have any idea.
Once again thanks.



Thanks
Persevere
 
Best way to do this is to setup a IPsec or SSL VPN to the internal network, after that you can reach the local IP's secure from anywhere in the world, but others can't.

Other possability is to NAT to local IP's in your WAN router. For example:

NAT 1.1.1.1:8001 to 192.168.0.60:8006 and 1.1.1.1:8002 to 192.168.0.13:8006 etc.

In this case, for security reasons you should setup a firewall on your WAN router that only allows traffic from known IP's. Otherwise the whole world can reach the PVE management interface. If you use a firewall on the PVE nodes also, note that you have to allow traffic from the internal router IP, since you are using NAT.
 
Easiest setup with a wan component will be a reverse proxy server, so please learn how to do this. It's very simple with Apache and only a few lines of code.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!