Nginx 用於在酪梨醬上進行反向代理,但 RDP 無法在具有代理的外部 LAN 上工作

Nginx 用於在酪梨醬上進行反向代理,但 RDP 無法在具有代理的外部 LAN 上工作

我在 Ubuntu 16.04 上使用 Nginx 將 Guacamole 用作 RDP 無客戶端。這在我位於外部區域網路中的電腦上運作得很好。但不能在另一個有代理(工作區)的外部區域網路中工作。

當我從瀏覽器訪問該應用程式時:http://myserverguaca/guacamole/ 我可以看到登入頁面並且可以登入。但是當我嘗試啟動 RDP 時,會出現加載情況,然後顯示一條訊息:

The server take to many to time to be respond.

您認為我必須轉發另一個連接埠嗎?我已將連接埠 8080 轉發到 80,RDP 使用:3389,但這是在本地主機中,不知道為什麼我也應該轉發它以及如何做到這一點。

這是我的 RDP 存取的配置(user-mapping.xml)

<user-mapping>
<connection name="rdp">
<protocol>rdp</protocol>
<param name="hostname">localhost</param>
<param name="port">3389</param>
<param name="server-layout">fr-fr-azerty</param>
<param name="ignore-cert">true</param>
</connection>
</user-mapping>

和我在 nginx 上的配置(啟用網站/酪梨醬)

server {
listen 80;
server_name vpsmyserver.net.com;

location /guacamole/ {
proxy_pass http://localhost:8080/guacamole/;
proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header X_Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $http_connection;
access_log off;
}
}

答案1

在 中user-mapping.xml,您可以新增

param name="security" nla   

如果不起作用,請新增 RDP 連線的使用者名稱和密碼。

相關內容