有你需要爲了做來設置reverse-connect
功能的幾件事情:
因此,在一個典型的授權情況下,您有這樣的事情在user-mapping.xml
與反轉的必要信息-connect:
<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');
...
連接:
打開內鱷梨的連接,然後與添加用戶因爲沒有鹽生成也不密碼散列添加連接和對應的參數是相對容易使用VNC客戶端連接到Guacamole服務器上的端口(例如,:9999
,如上例所示)。如果您沒有先打開鱷梨醬內的連接,guacd
將不會在給定端口上偵聽。
如果不能建立建立user-mapping.xml
或MySQL授權,其中包括反向連接參數連接後,它建議安裝最新版本的libvncserver
,已ENABLED_VNC_LISTEN
定義。你應該注意到執行,如果它沒有定義鱷梨的./configure
警告時:
--------------------------------------------
No listening support found in libvncclient.
Support for listen-mode connections will not be built.
--------------------------------------------
或者你可以[* *如本答案所述,使用vnc中繼器**(https:// stackove rflow.com/a/18046562/319204)。 – TheCodeArtist