openvpn block brutforce

I have read this
https://wiki.mikrotik.com/wiki/Bruteforce_login_prevention

But I have problem with setup similar blocking for OpenVPN after 3 failed login.

Does anyone have idea how to do this?