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

61 lines
1.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: Remmina 基于 socks5 代理进行 RDP连接
description: linux RDP over Socks5
date: 2025-05-20
slug: remmina-rdp-over-socks5
image: remmina3d_480p.png
keywords:
- RDP
- SOCKS5
- Linux
- Remmina
categories:
- Linux
tags:
- 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`,则我们编辑它:
```bash
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界面连接即可。