Changing the WebGUI port

WatchDog

New Member
Sep 15, 2013
1
0
1
Hello you nice people!

I have a lot of luck beeing able to have a hardware server in a very fast network. The server is located behind a firewall.
The problem: I can not access the server GUI, because the ports are beeing blocked from the firewall.
There is absolutely no chance to have these ports opened, so i have to change the ports.
How can i change them?

Regards,

WatchDog
 
In theory you would need to edit /etc/apache2/sites-enabled/pve.conf and change <VirtualHost *:8006> by <VirtualHost *:443> for example.

This only applies to versions 2.x

For 3.x you would have to modify /usr/bin/pveproxy (not actually a binary, so vi will do), and modify line 83 where is says
Code:
    $daemon = PVE::APIDaemon->new(
        port => 8006,


Actually tho, Im having doubts whether the cluster communication has the port hard-coded or has it stored somewhere too. As it stands I really cant tell you whether this actually works. It just might be necessary to modify /usr/bin/pvebanner, /usr/share/perl5/PVE/HTTPServer.pm and /usr/share/perl5/PVE/API2Client.pm too. I really recommend waiting for somebody to confirm this first tho.
 
Last edited:
This only applies to versions 2.x

For 3.x you would have to modify /usr/bin/pveproxy (not actually a binary, so vi will do), and modify line 83 where is says
Code:
    $daemon = PVE::APIDaemon->new(
        port => 8006,


Actually tho, Im having doubts whether the cluster communication has the port hard-coded or has it stored somewhere too. As it stands I really cant tell you whether this actually works. It just might be necessary to modify /usr/bin/pvebanner, /usr/share/perl5/PVE/HTTPServer.pm and /usr/share/perl5/PVE/API2Client.pm too. I really recommend waiting for somebody to confirm this first tho.

Thanks mo.