moonlightwatch 1191dc088b
All checks were successful
Build and Upload / Explore-Gitea-Actions (push) Successful in 7m0s
post: remmina-rdp-over-socks5
2025-05-21 00:23:38 +08:00

1.4 KiB
Raw Blame History

title, description, date, slug, image, keywords, categories, tags
title description date slug image keywords categories tags
Remmina 基于 socks5 代理进行 RDP连接 linux RDP over Socks5 2025-05-20 remmina-rdp-over-socks5 remmina3d_480p.png
RDP
SOCKS5
Linux
Remmina
Linux
linux
rdp

Remmina 基于 socks5 代理进行 RDP连接

一、Remmina

Remmina 是一个Linux下的图形化远程链接管理工具十分好用!!

它默认情况下支持 SSH、VNC、RDP 的远程链接方式。

二、需求

我需要使用 socks5 协议通过跳板机访问指定的RDP服务器远程使用其桌面环境。

但是 Remmina 在界面上,无法设定 socks5 代理模式。

三、修改配置文件

Remmina 会对每个连接产生一个配置文件,其路径在 ~/.local/share/remmina/ 下,配置文件名称会包含界面上显示的“连接名称”。

我们可以通过修改配置文件,实现 RDP over Socks5。操作如下:

打开你已经设定好的连接的配置文件,假设名称是 group_rdp_remote_xxx-xxx-xxx-xxx.remmina,则我们编辑它:

vim ~/.local/share/remmina/group_rdp_remote_xxx-xxx-xxx-xxx.remmina

在其中加入proxy配置

proxy_hostname=127.0.0.1
proxy_type=socks5
proxy_port=7890

需要注意的是,proxy_hostname 应该填写IP地址否则 RDP 连接会报安全问题。

添加完成后保存。从Remmina界面连接即可。