Limit IPSec or OpenVPN access with GeoIP location issue

Theres’ a similar post here but needs a script…