我正在使用Guacamole v0.9.9,并希望连接到我的ISP 的NAT后面的Win 10笔记本电脑.
我想我可能不得不使用Reverse VNC.这里给出了相关说明:https: //guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#vnc-reverse-connections
但我正在使用MYSQL Auth,如下所述:https: //guacamole.incubator.apache.org/doc/0.9.0/gug/mysql-auth.html
问题是我无法在VNC设置中看到反向连接的任何选项,并且没有XML文件来放入参数.
此后也没有说明该怎么做.在传统的VNC连接中,您将在目标中运行客户端,并在给出目标IP后以侦听/反向模式运行服务器.在这种情况下,没有客户端运行.所以我不知道下一步该做什么.
任何帮助都感激不尽.
为了设置该reverse-connect功能,您需要执行一些操作:
因此,在典型的授权场景中,您会看到类似这样的内容,其中包含user-mapping.xml反向连接的必要信息:
<authorize username="user" password="password">
    <connection name="reverse">
        <protocol>vnc</protocol>
        <param name="hostname">localhost</param>
        <param name="port">9999</param>
        <param name="reverse-connect">true</param>
        <param name="listen-timeout">30000</param>
        <param name="autoretry">true</param>
    </connection>
</authorize>
由于您是通过 MySQL 执行此操作,因此原理相同:
连接和参数
每个连接在 guacamole_connection 表中都有一个条目,与参数具有一对多关系,以名称/值对形式存储在 guacamole_connection_parameter 表中。
guacamole_connection 表只是唯一的描述性名称与用于连接的协议的配对。与添加用户相比,添加连接和相应的参数相对容易,因为不需要生成盐,也不需要哈希密码:
-- Create connection
INSERT INTO guacamole_connection (connection_name, protocol) VALUES ('reverse', 'vnc');
SET @id = LAST_INSERT_ID();
-- Add parameters
INSERT INTO guacamole_connection_parameter VALUES (@id, 'hostname', 'localhost');
INSERT INTO guacamole_connection_parameter VALUES (@id, 'port', '9999');
INSERT INTO guacamole_connection_parameter VALUES (@id, 'reverse-connect', 'true');
...
连接:
打开 Guacamole 内的连接,然后使用 VNC 客户端连接到 Guacamole 服务器上的端口(例如,:9999如上例所示)。如果您不首先在 Guacamole 中打开连接,guacd则不会侦听给定端口。
如果设置user-mapping.xml包含反向连接参数的MySQL授权后无法建立连接,建议安装最新版本的MySQL libvncserver,该版本已ENABLED_VNC_LISTEN定义。./configure如果未定义,执行鳄梨酱时您应该注意到警告:
--------------------------------------------
 No listening support found in libvncclient.
 Support for listen-mode connections will not be built.
--------------------------------------------
| 归档时间: | 
 | 
| 查看次数: | 1757 次 | 
| 最近记录: |