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

Feb 4, 2020
36
18
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...