Change proxmox web interface port 8006 (release 6.1) [Proposal]

Feb 4, 2020
36
16
13
Hamburg, Germany
Hi, I was wondering why it shouldn't be easy to change the port of the web managment gui.

Looking at source /usr/share/perl5/PVE/Service/pveproxy.pm the initial code line (73) is:

Code:
my $socket = $self->create_reusable_socket(8006, undef, $family);

has a fixed port 8006.

Why isn't this also configurable via /etc/default/pveproxy?

I would like to propose this change to code:

Code:
my $socket = $self->create_reusable_socket(defined($proxyconf->{PORT}) ? $proxyconf->{PORT} : 8006, undef, $family);

The port could be defined by /etc/default/pveproxy

The code also may be used to update /usr/bin/pvebanner.
 
sadly it is not as easy... what about clustered environments? (we use https on port 8006 for relaying api requests to different nodes)
what about automatic firewall rules to allow cluster api traffic?

not saying it is impossible, but the gains are not that big while the work needed is..
also, you can always use a reverse proxy/nat/etc to get the webinterface on another port...
 

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!