-
Notifications
You must be signed in to change notification settings - Fork 86
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for different ports? #171
Comments
Just discovered that you have to fiddle with passthrough for this. I created this.
But the logs say the following:
It seems it reports VNC invalid auth despite it working with other programs, like guacamole? I am using mac os default vnc service. |
It seems that the authentication algorithm is not supported. Could you enable debug logs in the [debug]
mod_vnc=0x11 |
4 security types. |
We don't implement any of these authentication methods, but some are documented / reverse-engineered:
On the other hand, since VNC is not a priority, this won't be done for a while. You can configure your server with one of the methods known by the proxy:
Or configure with VNC over SSH by opening an ssh tunnel in passthrought.py (see |
is it okay to add it to the enum and give a more meaningful error message? something like diff --git a/src/mod/vnc/vnc.cpp b/src/mod/vnc/vnc.cpp
index 74b374518..337a49ca2 100644
--- a/src/mod/vnc/vnc.cpp
+++ b/src/mod/vnc/vnc.cpp
@@ -682,6 +682,8 @@ const char *mod_vnc::securityTypeString(int32_t t) {
case VeNCRYPT_X509None: return "X509 none";
case VeNCRYPT_X509Vnc: return "X509 VNC";
case VeNCRYPT_X509Plain: return "X509 plain";
+ case VNC_AUTH_DIFFIE_HELLMAN: return "Diffie-Hellman";
+ case VNC_AUTH_APPLE: return "Apple";
default:
snprintf(format, sizeof(format), "<unknown 0x%x>", uint32_t(t));
return format;
diff --git a/src/mod/vnc/vnc.hpp b/src/mod/vnc/vnc.hpp
index 8cd6537e4..6e1e00c50 100644
--- a/src/mod/vnc/vnc.hpp
+++ b/src/mod/vnc/vnc.hpp
@@ -281,6 +281,8 @@ private:
VNC_AUTH_ULTRA = 17,
VNC_AUTH_TLS = 18,
VNC_AUTH_VENCRYPT = 19,
+ VNC_AUTH_DIFFIE_HELLMAN = 30,
+ VNC_AUTH_APPLE = 33,
VNC_AUTH_ULTRA_MsLogonIAuth = 112,
VNC_AUTH_ULTRA_MsLogonIIAuth = 113,
VNC_AUTH_ULTRA_SecureVNCPluginAuth = 114, |
Done. |
What I mean is target ports, how can you change them?
other question, how do you connect to vnc?
The text was updated successfully, but these errors were encountered: