大网数据广告活动
服务器运维问答

How to scale OpenVPN when client-to-client is a must?

· 52CE 我爱测

I am trying to create an OpenVPN server cluster that can autoscale, I have found a lot of information online on how to create such a network. As far as I understand, you basically use a round-robin DNS, and few OpenVPN servers, t…

问题原文

原帖链接 · roee klinger · CC BY-SA 4.0

I am trying to create an OpenVPN server cluster that can autoscale, I have found a lot of information online on how to create such a network.

As far as I understand, you basically use a round-robin DNS, and few OpenVPN servers, the clients simply connect to the DNS and are assigned one of the OpenVPN servers to connect to.

However, my setup requires that all clients will be visible to each other, so I am using the client-to-client configuration. If each of the clients will be assigned a random OpenVPN server, they will not be able to communicate with each other, only clients that happened to be on the same exact server will be able to communicate.

How do I scale an OpenVPN cluster that needs client-to-client communication on all clients?

已采纳解答

原帖链接 · Zoredache · CC BY-SA 4.0

Have some name resolution, or name registration system so that clients on all VPN servers register their name and IP they get assigned, so they can resolve and connect to each other by IP.

Then just make sure you setup routing properly and don't use any NAT on the VPN servers. So if you have 192.168.100.0/24 on VPN, and 192.168.101.0/24, setup IP routing so those two subnets can reach each other.

This would mostly just be a standard site-to-site VPN routing setup which also requires proper routing setup. Just have multiple servers set up.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-09-02)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。