如果我使用--duplicate-cn
我看到它对我的服务器的所有帐户生效。 我希望按每个客户端来做,所以我只能给这个选项select账户。 可能吗?
duplicate-cn
选项适用于整个服务器,所以为了做到这一点,你需要运行两个OpenVPN实例(并且必须在不同的端口上运行)。
如果你使用EL7或者Fedora,这个设置很容易。 使用您的独特configuration创build/etc/openvpn/server1.conf
和/etc/openvpn/server2.conf
,然后启用它们:
systemctl enable openvpn@server1 systemctl enable openvpn@server2 systemctl start openvpn@server1 systemctl start openvpn@server2