2016-08-28 41 views
9

我使用鱷梨v0.9.9,想連接到我的運10檯筆記本電腦這背後是我的ISP的NAT無法使用鱷梨逆向VNC連接

我想我可能不得不使用反向VNC爲此。該指令在這裏給出: https://guacamole.incubator.apache.org/doc/gug/configuring-guacamole.html#vnc-reverse-connections

但是我使用MYSQL驗證如下所述: https://guacamole.incubator.apache.org/doc/0.9.0/gug/mysql-auth.html

的問題是,我無法看到在VNC設置反向連接的任何選項,也沒有XML文件,把參數。

enter image description here

也沒有指令後做什麼。在傳統的VNC連接中,您可以在目的地運行客戶端,並在發送目的地IP後以偵聽/反向模式運行服務器。在這種情況下,沒有客戶端正在運行。所以我無能爲力下一步該做什麼。

任何幫助將不勝感激。

+0

或者你可以[* *如本答案所述,使用vnc中繼器**(https:// stackove rflow.com/a/18046562/319204)。 – TheCodeArtist

回答

1

有你需要爲了做來設置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. 
-------------------------------------------- 
1

爲了節省自己的一些麻煩,你可以使用VNC轉發器,它會偵聽來自VNC服務器和觀衆連接,並連接服務器和使用相同ID

觀衆你可以得到一個從here

獲取構建軟件包

對於Debian使用

apt-get install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential 

爲CentOS使用:

yum install linux-headers-`uname -r` libx11-6 libx11-dev x-window-system-core x-window-system xspecs libxtst6 psmisc build-essential 

獲取源到/ usr/local/src目錄

cd /usr/local/src 
wget http://www.wisdomsoftware.gr/download/uvncrep017-ws.tar.gz 

解壓源文件

gunzip uvncrep017-ws.tar.gz 
tar -xvf uvncrep017-ws.tar 

安裝啓動腳本

cd uvncrep017-ws 
make; make install; 

根據你的需要添加用戶的服務

useradd uvncrep 

編輯/etc/uvnc/uvncrepeater.ini。

檢查下列參數:

viewerport = 5901 
maxsessions = 10 
runasuser = uvncrep 
logginglevel = 2 
srvListAllow1 = 192.168.0.0 ;Allow network 192.168.x.x 
srvListDeny0 = 127.0.0.1 ;Deny loopback 
requirelistedserver=1 

啓動服務

/etc/init.d/uvncrepeater start 

原文鏈接:here

探討一個關於此:here