Debian

Openvpn使用相同的使用者名和密碼保持多個連接

  • December 3, 2020

我已經配置了我的 Open VPN。我可以連接到它,但我的問題是當我在 2 個不同的設備中使用相同的使用者名時,它總是重新連接

設備 1 已連接且設備 2 重新連接,然後 1 秒後設備 1 重新連接且設備 2 已連接

但如果我為每台設備使用 2 個不同的使用者名,它就可以正常工作,沒有人會斷開連接

這是否可以為每個設備創建 1 個使用者名和密碼,並且連接應該是穩定的

嘗試設置duplicate-cn

–duplicate-cn
Allow multiple clients with the same common name to concurrently connect. 
In the absence of this option, OpenVPN will disconnect a client instance upon
connection of a new client having the same common name.

引用自:https://serverfault.com/questions/1044784