S
S
sasha-ld2021-08-16 23:26:43
linux
sasha-ld, 2021-08-16 23:26:43

openvpn how to disconnect client from server?

How to forcibly break the connection with the client and block the login without revoking the certificate?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2021-08-16
@sasha-ld

if other methods of authorization except for the certificate are not configured, then only on the firewall block incoming from its IP address.
shooting a session is very simple if the management interface is enabled
, for example, in the config,
management localhost 7505
you can do this on the server like this
telnet localhost 7505
kill username

K
ky0, 2021-08-16
@ky0

Give him a static IP and kill him on the firewall.

K
Konstantin ™, 2021-08-17
@Energoblock

We write in the openvpn server config. Place a
client-config-dir ccd
text file in the ccd folder, the name of which should match the name of the client certificate, and the contents of the file should contain
disable
I don’t know if the openvpn server will immediately disconnect the client or not, but it won’t let you reconnect.
After deleting the file from ccd, the client will be able to connect again.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question