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

Multiple Subnets on OpenVPN

· 52CE 我爱测

Let me start of by saying that I/m new to posting questions here. So if I do no post enough information, please let me know. Let me know what more I should post. I'm using OpenVPN for my VPN solution. We're about to add more remo…

问题原文

原帖链接 · Danny BoyWonder · CC BY-SA 3.0

Let me start of by saying that I/m new to posting questions here. So if I do no post enough information, please let me know. Let me know what more I should post.

I'm using OpenVPN for my VPN solution. We're about to add more remote devices which will exceed the maximum amount of IPs that the DHCP can hand out for one single subnet.

How can we config OpenVPN to start handing out IPs for another subnet?

For example, our subnets would be:

10.8.0.0/24
10.9.0.0/24
10.10.0.0/24
etc...

Currently we only have the single subnet of 10.8.0.0/24.

已采纳解答

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

Please check this part from OpenVPN official howto page.

Basically, you can use multiple ifconfig-push directives in your OpenVPN configuration to use multiple clients subnets. The pros of such approach is that it allows you to define different access policies for different subnets.

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

资料来源与适用范围

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

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

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