问题原文
原帖链接 · emmdee · CC BY-SA 3.0
Would like to forcefully kick a specific user connection.
OS is Ubuntu 16, OVPN Server is OpenVPN 2.3.10
I can see them connected in /etc/openvpn/openvpn-status.log which lists out current client status. And their persistent connection pool is saved to /etc/openvpn/ipp.txt
I can kick all users by simply cycling the openvpn daemon service openvpn restart however I want to kick ONE single user.
I've tried openvpn --help and man openvpn as well as searched google but not seeing anything.
OS is Ubuntu 16, Server is OpenVPN 2.3.10
已采纳解答
原帖链接 · Zoredache · CC BY-SA 3.0
Doing this requires some preparation ahead of time. Specifically you need to enable the Management port (--management IP port). With the management port enabled you can connect to that management port using telnet/netcat and then you can issue commands to disconnect a session (eg kill client-name).
See this page for more about the usage of that interface.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
