Regarding the issues encountered when using LVS to build a RustDesk cluster. #343
Unanswered
tangjunnan
asked this question in
Q&A
Replies: 1 comment
-
I am using the open-source version, RustDesk 1.1.9,Welcome everyone to explore together~! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Regarding the issues encountered when using LVS to build a RustDesk cluster.
Thank you to the author for providing such a good software. I encountered the following problem while testing and building the Rustdesk 1.19 cluster. The details are as follows:
My internal network segment is 192.168.10.0/24, and I have deployed a Rustdesk cluster in combination with LVS,
The IP of the Derictor scheduler is 192.168.10.19,
Virtual VIP: 192.168.10.20
The backend reale server IP addresses are 192.168.10.21 and 192.168.10.22, respectively,
The LVS cluster was built using the following command:
Iptables - t mangle - A PREOUTING - d 192.168.10.20- p TCP - m multiport -- dports 211152111621117- j MARK -- set mark 3
Iptables - t mangle - A PREOUTING - d 192.168.10.20- p udp - m multiport -- dports 21116- j MARK -- set mark 3
Iptables - t mangle - vnL -- line number
Ipvsadm - A - f 3- s sh - p 7200
Ipvsadm - a - f 3- r 10.94.11.21- g
Ipvsadm - a - f 3- r 10.94.11.22- g
After installation, it was tested on the internal network and the client was able to connect through virtual VIP: 10.94.11.20,
But when I mapped the TCP ports 21115, 21116, 21117, and UDP ports 21116 involved in 192.168.10.20 to the public network on the firewall, the public network clients were unable to connect properly. However, the public network clients tested through telnet and nc commands that the ports mapped to the public network IP were all accessible,
Could you please help me analyze what is probably the cause of the problem I encountered? Is it that the internal communication mechanism of Rustdesk is not limited to the ports I mapped?
The following is in Chinese
关于使用lvs搭建RustDesk集群遇到的问题。
感谢作者提供这么好的软件,我在测试搭建rustdesk1.19版本集群是遇到一下问题,详细如下:
我的内网网段为192.168.10.0/24 ,我在内网结合LVS 部署了rustdesk集群,
derictor调度器的IP为192.168.10.19,
虚拟VIP为:192.168.10.20
后端reale server IP地址分别为:192.168.10.21 、192.168.10.22,
通过一下命令搭建了LVS集群:
iptables -t mangle -A PREROUTING -d 192.168.10.20 -p tcp -m multiport --dports 21115,21116,21117 -j MARK --set-mark 3
iptables -t mangle -A PREROUTING -d 192.168.10.20 -p udp -m multiport --dports 21116 -j MARK --set-mark 3
iptables -t mangle -vnL --line-number
ipvsadm -A -f 3 -s sh -p 7200
ipvsadm -a -f 3 -r 10.94.11.21 -g
ipvsadm -a -f 3 -r 10.94.11.22 -g
搭建后在内网测试,客户端能通过虚拟VIP:10.94.11.20 进行连接,
但是我在防火墙将192.168.10.20涉及到的 TCP端口 21115、21116、21117和 UDP端口21116映射到公网后,公网的客户端却无法正常连接,但是公网的客户端通过telnet 和nc 命令测试公网IP映射的端口都是能通的,
请帮忙分析,我遇到问题大概是什么原因导致的呢,难道还是rustdesk内部通讯机制不止我映射的那几个端口吗?
Beta Was this translation helpful? Give feedback.
All reactions