Debian文档https://wiki.debian.org/OpenVPN中的示例OpenVPNconfiguration提供了以下代码。
服务器/etc/openvpn/tun0.conf:
dev tun0 ifconfig 10.9.8.1 10.9.8.2 secret /etc/openvpn/static.key
客户端/etc/openvpn/tun0.conf:
remote your-server.org dev tun0 ifconfig 10.9.8.2 10.9.8.1 secret /etc/openvpn/static.key
我的问题:如何适应这个处理多个客户? 没有硬编码客户端上的IP?
尝试
server 10.9.8.0 255.255.255.0
在服务器上,和
client
在客户端。 服务器应该为自己的范围( 10.9.8.1 )的第一个地址,然后把其他人交给客户端; 客户应该接受这些指定。