[SOLVED] Change Spice Proxy port

Discussion in 'Proxmox VE: Installation and configuration' started by meepmeep, Oct 24, 2016.

  1. meepmeep

    meepmeep Member

    Joined:
    Apr 14, 2013
    Messages:
    30
    Likes Received:
    1
    Hi

    For network reasons, I would like to change the spice proxy port (from 3128 to 2288 for example)
    But I'm unable to find the configuration file setting this parameter...

    I have a workaround with an iptables rules (DNAT), but I have to manually edit the .vv file everytime I want to use it. So i'm looking for a better / simpler solution so i'll have the correct port on the .vv file :)

    (I'm using proxmox 4.3-7)
     
  2. spirit

    spirit Well-Known Member
    Proxmox VE Subscriber

    Joined:
    Apr 2, 2010
    Messages:
    3,196
    Likes Received:
    111
    try to hack theses files

    Code:
    /usr/share/perl5/PVE/HTTPServer.pm:    my $remport = $remip ? 3128 : $spiceport;
    /usr/share/perl5/PVE/AccessControl.pm:    proxy => "http://$proxy:3128",
    /usr/share/perl5/PVE/Service/spiceproxy.pm:    my $socket = $self->create_reusable_socket(3128, undef, $family);
    /usr/share/perl5/PVE/Service/spiceproxy.pm:SPICE proxy server for Proxmox VE. Listens on port 3128.
    /usr/share/perl5/PVE/API2Tools.pm:    my $port = $uri->port || 3128;
    
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. meepmeep

    meepmeep Member

    Joined:
    Apr 14, 2013
    Messages:
    30
    Likes Received:
    1
    Thank you Spirit, after a reboot it works :)
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice