Corsinvest / cv4pve-pepper

Launching SPICE remote-viewer for Proxmox VE VDI client
https://www.corsinvest.it/cv4pve
GNU General Public License v3.0
105 stars 15 forks source link

Cannot connect if node firewall is on #7

Closed Silent-Hunter closed 4 years ago

Silent-Hunter commented 4 years ago

It says Error: unknown host x.x.x.x

If I set the node's firewall to No, it works fine. What firewall exceptions do I need to make?

franklupo commented 4 years ago

The spice in Proxmox VE web work?

Silent-Hunter commented 4 years ago

Yes it does, works fine. I'm just not sure what to put in the node's firewall to allow things outside of the web management to access it. -------- Original Message -------- On Sep 6, 2020, 10:16, Daniele Corsini wrote:

The spice in Proxmox VE web work?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

franklupo commented 4 years ago

What settings have you put in the firewall?

Silent-Hunter commented 4 years ago

I've tried a few. I tried putting just an IP range of 192.168.0.2-192.168.0.255, I've tried putting just port 8006, TCP and UDP. I'm not sure what to put under the network interface though. Maybe I'm getting that wrong. I didn't think I would need to make a firewall exception at all, since I assumed this program used the same management interface as the rest of Proxmox. -------- Original Message -------- On Sep 7, 2020, 01:21, Daniele Corsini wrote:

What settings have you put in the firewall?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

franklupo commented 4 years ago

test new relase with parameter --proxy

franklupo commented 4 years ago

Test new version. I imporve the log. Use the parameter --debug and attach me result.

Bets regards

Silent-Hunter commented 4 years ago

Apologies, was unable to access my computer for a while. For some reason, the versioon I was using now works. The new one does not.

It opens Spice, but then Spice just says: Unable to connect to the graphic server C:\Users\Silent\AppData\Local\Temp\tmp7427.vv

But since the old one works now, I'm not sure there's any issue anymore.

franklupo commented 4 years ago

Hi, use parameter --proxy

Silent-Hunter commented 4 years ago

Okay, it doesn't work with --proxy. I wasn't sure what to put for the proxy IP so I put the same one as --host. Old version still seems to be working, even though it wasn't before.

cv4pve-pepper.exe --host=192.168.0.X:8006 --api-token user@pam!user=token --vmid 101 --viewer "C:\Program Files\VirtViewer v9.0-256\bin\remote-viewer.exe" --proxy 192.168.0.X --debug Error: unknown host 192.168.0.X Problem connection! ================ EXCEPTION ================ System.ApplicationException Problem connection! at Corsinvest.ProxmoxVE.Api.Shell.Helpers.CommandOptionExtension.ClientTryLogin(CommandLineApplication command) at Corsinvest.ProxmoxVE.Pepper.Program.<>cDisplayClass0_0.

b0() at McMaster.Extensions.CommandLineUtils.CommandLineApplication.<>cDisplayClass144_0.b0(CancellationToken _) at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken) at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args) at Corsinvest.ProxmoxVE.Api.Shell.Helpers.ShellHelper.ExecuteConsoleApp(CommandLineApplication app, String[] args)

franklupo commented 4 years ago

The error is Error: unknown host 192.168.0.X

Silent-Hunter commented 4 years ago

Yeah, the new version can't see the host no matter what. The old one started working, with a firewall rule.